Lines 21-31
Link Here
|
21 |
LDOCSDIR= share/doc/pear/${PORTNAME} |
21 |
LDOCSDIR= share/doc/pear/${PORTNAME} |
22 |
LEXAMPLESDIR= share/examples/pear/${PORTNAME} |
22 |
LEXAMPLESDIR= share/examples/pear/${PORTNAME} |
23 |
LTESTSDIR= ${LPEARDIR}/tests/${PORTNAME} |
23 |
LTESTSDIR= ${LPEARDIR}/tests/${PORTNAME} |
|
|
24 |
LDATADIR= ${LPEARDIR}/data/${PORTNAME} |
25 |
LSQLSDIR= ${LPEARDIR}/sql/${PORTNAME} |
24 |
PEARDIR= ${PHP_BASE}/${LPEARDIR} |
26 |
PEARDIR= ${PHP_BASE}/${LPEARDIR} |
25 |
PKGREGDIR= ${PHP_BASE}/${LPKGREGDIR} |
27 |
PKGREGDIR= ${PHP_BASE}/${LPKGREGDIR} |
26 |
DOCSDIR= ${PHP_BASE}/${LDOCSDIR} |
28 |
DOCSDIR= ${PHP_BASE}/${LDOCSDIR} |
27 |
EXAMPLESDIR= ${PHP_BASE}/${LEXAMPLESDIR} |
29 |
EXAMPLESDIR= ${PHP_BASE}/${LEXAMPLESDIR} |
28 |
TESTSDIR= ${PHP_BASE}/${LTESTSDIR} |
30 |
TESTSDIR= ${PHP_BASE}/${LTESTSDIR} |
|
|
31 |
DATADIR= ${PHP_BASE}/${LDATADIR} |
32 |
SQLSDIR= ${PHP_BASE}/${LSQLSDIR} |
29 |
.if defined(CATEGORY) && !empty(CATEGORY) |
33 |
.if defined(CATEGORY) && !empty(CATEGORY) |
30 |
LINSTDIR= ${LPEARDIR}/${CATEGORY} |
34 |
LINSTDIR= ${LPEARDIR}/${CATEGORY} |
31 |
.else |
35 |
.else |
Lines 38-44
Link Here
|
38 |
.endif |
42 |
.endif |
39 |
PLIST_SUB= PEARDIR=${LPEARDIR} PKGREGDIR=${LPKGREGDIR} \ |
43 |
PLIST_SUB= PEARDIR=${LPEARDIR} PKGREGDIR=${LPKGREGDIR} \ |
40 |
TESTSDIR=${LTESTSDIR} EXAMPLESDIR=${LEXAMPLESDIR} \ |
44 |
TESTSDIR=${LTESTSDIR} EXAMPLESDIR=${LEXAMPLESDIR} \ |
41 |
INSTDIR=${LINSTDIR} |
45 |
INSTDIR=${LINSTDIR} SQLSDIR=${LSQLSDIR} \ |
|
|
46 |
DATADIR=${LDATADIR} |
42 |
|
47 |
|
43 |
PKGINSTALL= ${PORTSDIR}/devel/pear-PEAR/pkg-install |
48 |
PKGINSTALL= ${PORTSDIR}/devel/pear-PEAR/pkg-install |
44 |
PKGDEINSTALL= ${PORTSDIR}/devel/pear-PEAR/pkg-deinstall |
49 |
PKGDEINSTALL= ${PORTSDIR}/devel/pear-PEAR/pkg-deinstall |
Lines 46-60
Link Here
|
46 |
FILES?= |
51 |
FILES?= |
47 |
DOCS?= |
52 |
DOCS?= |
48 |
TESTS?= |
53 |
TESTS?= |
|
|
54 |
DATA?= |
55 |
SQLS?= |
49 |
EXAMPLES?= |
56 |
EXAMPLES?= |
50 |
_TESTSDIR?= tests |
57 |
_TESTSDIR?= tests |
|
|
58 |
_DATADIR?= data |
59 |
_SQLSDIR?= sql |
51 |
_DOCSDIR?= docs |
60 |
_DOCSDIR?= docs |
52 |
_EXAMPLESDIR?= examples |
61 |
_EXAMPLESDIR?= examples |
53 |
|
62 |
|
54 |
# this is an easy way to eliminate duplicate entries in a variable :) |
63 |
# this is an easy way to eliminate duplicate entries in a variable :) |
55 |
# if someone knows how to achieve the result without this terrible |
64 |
# if someone knows how to achieve the result without this terrible |
56 |
# hack, please tell me! |
65 |
# hack, please tell me! |
57 |
.for v in FILES DOCS TESTS EXAMPLES |
66 |
.for v in FILES DOCS TESTS EXAMPLES SQLS DATA |
58 |
X${v}DIRS= ${${v}:M*/*:C;/[^/]+$;;} |
67 |
X${v}DIRS= ${${v}:M*/*:C;/[^/]+$;;} |
59 |
. for XD in ${X${v}DIRS} |
68 |
. for XD in ${X${v}DIRS} |
60 |
ALREADYTHERE= 0 |
69 |
ALREADYTHERE= 0 |
Lines 90-95
Link Here
|
90 |
@${ECHO_MSG} "===> Generating packing list"; \ |
99 |
@${ECHO_MSG} "===> Generating packing list"; \ |
91 |
(for file in ${FILES}; do echo "${LINSTDIR}/$${file}"; done; \ |
100 |
(for file in ${FILES}; do echo "${LINSTDIR}/$${file}"; done; \ |
92 |
for file in ${TESTS}; do echo "${LTESTSDIR}/$${file}"; done; \ |
101 |
for file in ${TESTS}; do echo "${LTESTSDIR}/$${file}"; done; \ |
|
|
102 |
for file in ${DATA}; do echo "${LDATADIR}/$${file}"; done; \ |
103 |
for file in ${SQLS}; do echo "${LSQLSDIR}/$${file}"; done; \ |
93 |
for file in ${DOCS}; do echo "%%PORTDOCS%%${LDOCSDIR}/$${file}"; done; \ |
104 |
for file in ${DOCS}; do echo "%%PORTDOCS%%${LDOCSDIR}/$${file}"; done; \ |
94 |
for file in ${EXAMPLES}; do echo "%%PORTDOCS%%${LEXAMPLESDIR}/$${file}"; done; \ |
105 |
for file in ${EXAMPLES}; do echo "%%PORTDOCS%%${LEXAMPLESDIR}/$${file}"; done; \ |
95 |
echo "${LPKGREGDIR}/package.xml"; \ |
106 |
echo "${LPKGREGDIR}/package.xml"; \ |
Lines 97-107
Link Here
|
97 |
while read dir; do echo "@dirrm ${LINSTDIR}/$${dir}"; done; \ |
108 |
while read dir; do echo "@dirrm ${LINSTDIR}/$${dir}"; done; \ |
98 |
for d in ${TESTS}; do echo $${d}; done | ${DIRFILTER} | \ |
109 |
for d in ${TESTS}; do echo $${d}; done | ${DIRFILTER} | \ |
99 |
while read dir; do echo "@dirrm ${LTESTSDIR}/$${dir}"; done; \ |
110 |
while read dir; do echo "@dirrm ${LTESTSDIR}/$${dir}"; done; \ |
|
|
111 |
for d in ${DATA}; do echo $${d}; done | ${DIRFILTER} | \ |
112 |
while read dir; do echo "@dirrm ${LDATADIR}/$${dir}"; done; \ |
113 |
for d in ${SQLS}; do echo $${d}; done | ${DIRFILTER} | \ |
114 |
while read dir; do echo "@dirrm ${LSQLSDIR}/$${dir}"; done; \ |
100 |
for d in ${DOCS}; do echo $${d}; done | ${DIRFILTER} | \ |
115 |
for d in ${DOCS}; do echo $${d}; done | ${DIRFILTER} | \ |
101 |
while read dir; do echo "%%PORTDOCS%%@dirrm ${LDOCSDIR}/$${dir}"; done; \ |
116 |
while read dir; do echo "%%PORTDOCS%%@dirrm ${LDOCSDIR}/$${dir}"; done; \ |
102 |
for d in ${EXAMPLES}; do echo $${d}; done | ${DIRFILTER} | \ |
117 |
for d in ${EXAMPLES}; do echo $${d}; done | ${DIRFILTER} | \ |
103 |
while read dir; do echo "%%PORTDOCS%%@dirrm ${LEXAMPLESDIR}/$${dir}"; done; \ |
118 |
while read dir; do echo "%%PORTDOCS%%@dirrm ${LEXAMPLESDIR}/$${dir}"; done; \ |
104 |
if [ -n "${TESTS}" ]; then echo "@dirrm ${LTESTSDIR}"; fi; \ |
119 |
if [ -n "${TESTS}" ]; then echo "@dirrm ${LTESTSDIR}"; fi; \ |
|
|
120 |
if [ -n "${DATA}" ]; then echo "@dirrm ${LDATADIR}"; fi; \ |
121 |
if [ -n "${SQLS}" ]; then echo "@dirrm ${LSQLSDIR}"; fi; \ |
105 |
if [ -n "${DOCS}" ]; then echo "%%PORTDOCS%%@dirrm ${LDOCSDIR}"; fi; \ |
122 |
if [ -n "${DOCS}" ]; then echo "%%PORTDOCS%%@dirrm ${LDOCSDIR}"; fi; \ |
106 |
if [ -n "${EXAMPLES}" ]; then echo "%%PORTDOCS%%@dirrm ${LEXAMPLESDIR}"; fi; \ |
123 |
if [ -n "${EXAMPLES}" ]; then echo "%%PORTDOCS%%@dirrm ${LEXAMPLESDIR}"; fi; \ |
107 |
echo "@dirrm ${LPKGREGDIR}"; \ |
124 |
echo "@dirrm ${LPKGREGDIR}"; \ |
Lines 111-127
Link Here
|
111 |
echo "@unexec rmdir %D/${LPEARDIR} 2> /dev/null || true"; \ |
128 |
echo "@unexec rmdir %D/${LPEARDIR} 2> /dev/null || true"; \ |
112 |
echo "@unexec rmdir %D/${LDOCSDIR:H} 2> /dev/null || true"; \ |
129 |
echo "@unexec rmdir %D/${LDOCSDIR:H} 2> /dev/null || true"; \ |
113 |
echo "@unexec rmdir %D/${LEXAMPLESDIR:H} 2> /dev/null || true"; \ |
130 |
echo "@unexec rmdir %D/${LEXAMPLESDIR:H} 2> /dev/null || true"; \ |
114 |
echo "@unexec rmdir %D/${LTESTSDIR:H} 2> /dev/null || true") > ${PLIST} |
131 |
echo "@unexec rmdir %D/${LTESTSDIR:H} 2> /dev/null || true"; \ |
|
|
132 |
echo "@unexec rmdir %D/${LDATADIR:H} 2> /dev/null || true"; \ |
133 |
echo "@unexec rmdir %D/${LSQLSDIR:H} 2> /dev/null || true") > ${PLIST} |
115 |
. endif |
134 |
. endif |
116 |
|
135 |
|
117 |
. for t in files docs tests examples |
136 |
. for t in files docs tests sqls examples data |
118 |
. if !target(do-install-${t}-msg) |
137 |
. if !target(do-install-${t}-msg) |
119 |
do-install-${t}-msg: .USE |
138 |
do-install-${t}-msg: .USE |
120 |
. endif |
139 |
. endif |
121 |
. endfor |
140 |
. endfor |
122 |
|
141 |
|
123 |
pre-install: do-generate-plist |
142 |
pre-install: do-generate-plist |
124 |
do-install: do-install-files do-install-docs do-install-tests do-install-examples |
143 |
do-install: do-install-files do-install-docs do-install-tests do-install-sqls \ |
|
|
144 |
do-install-examples do-install-data |
125 |
|
145 |
|
126 |
do-install-files: do-install-files-msg |
146 |
do-install-files: do-install-files-msg |
127 |
@${MKDIR} ${INSTDIR} |
147 |
@${MKDIR} ${INSTDIR} |
Lines 153-158
Link Here
|
153 |
. endfor |
173 |
. endfor |
154 |
. for file in ${TESTS} |
174 |
. for file in ${TESTS} |
155 |
@${INSTALL_DATA} ${WRKSRC}/${_TESTSDIR}/${file} ${TESTSDIR}/${file} |
175 |
@${INSTALL_DATA} ${WRKSRC}/${_TESTSDIR}/${file} ${TESTSDIR}/${file} |
|
|
176 |
. endfor |
177 |
. endif |
178 |
|
179 |
do-install-data: do-install-data-msg |
180 |
. if !empty(DATA) |
181 |
@${ECHO_MSG} "===> Installing data in ${DATADIR}." |
182 |
@${MKDIR} ${DATADIR} |
183 |
. for dir in ${DATADIRS} |
184 |
@${MKDIR} ${DATADIR}/${dir} |
185 |
. endfor |
186 |
. for file in ${DATA} |
187 |
@${INSTALL_DATA} ${WRKSRC}/${_DATADIR}/${file} ${DATADIR}/${file} |
188 |
. endfor |
189 |
. endif |
190 |
|
191 |
do-install-sqls: do-install-sqls-msg |
192 |
. if !empty(SQLS) |
193 |
@${ECHO_MSG} "===> Installing sqls in ${SQLSDIR}." |
194 |
@${MKDIR} ${SQLSDIR} |
195 |
. for dir in ${SQLSDIRS} |
196 |
@${MKDIR} ${SQLSDIR}/${dir} |
197 |
. endfor |
198 |
. for file in ${SQLS} |
199 |
@${INSTALL_DATA} ${WRKSRC}/${_SQLSDIR}/${file} ${SQLSDIR}/${file} |
156 |
. endfor |
200 |
. endfor |
157 |
. endif |
201 |
. endif |
158 |
|
202 |
|