View | Details | Raw Unified | Return to bug 73533 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile.common (-5 / +22 lines)
Lines 1-4 Link Here
1
# $FreeBSD: /repoman/r/pcvs/ports/devel/pear-PEAR/Makefile.common,v 1.7 2004/08/26 22:29:13 thierry Exp $
1
# $FreeBSD: ports/devel/pear-PEAR/Makefile.common,v 1.7 2004/08/26 22:29:13 thierry Exp $
2
2
3
# Common code for pear- ports.
3
# Common code for pear- ports.
4
4
Lines 22-27 Link Here
22
LDOCSDIR=	share/doc/pear/${PORTNAME}
22
LDOCSDIR=	share/doc/pear/${PORTNAME}
23
LEXAMPLESDIR=	share/examples/pear/${PORTNAME}
23
LEXAMPLESDIR=	share/examples/pear/${PORTNAME}
24
LSQLSDIR=	${LPEARDIR}/sql/${PORTNAME}
24
LSQLSDIR=	${LPEARDIR}/sql/${PORTNAME}
25
LSCRIPTSDIR=	bin
25
LTESTSDIR=	${LPEARDIR}/tests/${PORTNAME}
26
LTESTSDIR=	${LPEARDIR}/tests/${PORTNAME}
26
PEARDIR=	${PHP_BASE}/${LPEARDIR}
27
PEARDIR=	${PHP_BASE}/${LPEARDIR}
27
PKGREGDIR=	${PHP_BASE}/${LPKGREGDIR}
28
PKGREGDIR=	${PHP_BASE}/${LPKGREGDIR}
Lines 29-34 Link Here
29
DOCSDIR=	${PHP_BASE}/${LDOCSDIR}
30
DOCSDIR=	${PHP_BASE}/${LDOCSDIR}
30
EXAMPLESDIR=	${PHP_BASE}/${LEXAMPLESDIR}
31
EXAMPLESDIR=	${PHP_BASE}/${LEXAMPLESDIR}
31
SQLSDIR=	${PHP_BASE}/${LSQLSDIR}
32
SQLSDIR=	${PHP_BASE}/${LSQLSDIR}
33
SCRIPTFILESDIR=	${LOCALBASE}/bin
32
TESTSDIR=	${PHP_BASE}/${LTESTSDIR}
34
TESTSDIR=	${PHP_BASE}/${LTESTSDIR}
33
.if defined(CATEGORY) && !empty(CATEGORY)
35
.if defined(CATEGORY) && !empty(CATEGORY)
34
LINSTDIR=	${LPEARDIR}/${CATEGORY}
36
LINSTDIR=	${LPEARDIR}/${CATEGORY}
Lines 41-47 Link Here
41
PLIST=		${WRKDIR}/PLIST
43
PLIST=		${WRKDIR}/PLIST
42
.endif
44
.endif
43
PLIST_SUB=	PEARDIR=${LPEARDIR} PKGREGDIR=${LPKGREGDIR} \
45
PLIST_SUB=	PEARDIR=${LPEARDIR} PKGREGDIR=${LPKGREGDIR} \
44
		TESTSDIR=${LTESTSDIR} INSTDIR=${LINSTDIR} SQLSDIR=${LSQLSDIR}
46
		TESTSDIR=${LTESTSDIR} INSTDIR=${LINSTDIR} SQLSDIR=${LSQLSDIR} \
47
		SCRIPTFILESDIR=${LCRIPTSDIR}
45
48
46
PKGINSTALL=	${PORTSDIR}/devel/pear-PEAR/pkg-install
49
PKGINSTALL=	${PORTSDIR}/devel/pear-PEAR/pkg-install
47
PKGDEINSTALL=	${PORTSDIR}/devel/pear-PEAR/pkg-deinstall
50
PKGDEINSTALL=	${PORTSDIR}/devel/pear-PEAR/pkg-deinstall
Lines 51-56 Link Here
51
DOCS?=
54
DOCS?=
52
EXAMPLES?=
55
EXAMPLES?=
53
SQLS?=
56
SQLS?=
57
SCRIPTFILES?=
54
TESTS?=
58
TESTS?=
55
_DATADIR?=	data
59
_DATADIR?=	data
56
_DOCSDIR?=	docs
60
_DOCSDIR?=	docs
Lines 61-67 Link Here
61
# this is an easy way to eliminate duplicate entries in a variable :)
65
# this is an easy way to eliminate duplicate entries in a variable :)
62
# if someone knows how to achieve the result without this terrible
66
# if someone knows how to achieve the result without this terrible
63
# hack, please tell me!
67
# hack, please tell me!
64
.for v in FILES DOCS TESTS EXAMPLES SQLS DATA
68
.for v in FILES DOCS TESTS EXAMPLES SQLS SCRIPTFILES DATA
65
X${v}DIRS=	${${v}:M*/*:C;/[^/]+$;;}
69
X${v}DIRS=	${${v}:M*/*:C;/[^/]+$;;}
66
. for XD in ${X${v}DIRS}
70
. for XD in ${X${v}DIRS}
67
ALREADYTHERE=	0
71
ALREADYTHERE=	0
Lines 99-104 Link Here
99
	for file in ${TESTS}; do echo "${LTESTSDIR}/$${file}"; done; \
103
	for file in ${TESTS}; do echo "${LTESTSDIR}/$${file}"; done; \
100
	for file in ${DATA}; do echo "${LDATADIR}/$${file}"; done; \
104
	for file in ${DATA}; do echo "${LDATADIR}/$${file}"; done; \
101
	for file in ${SQLS}; do echo "${LSQLSDIR}/$${file}"; done; \
105
	for file in ${SQLS}; do echo "${LSQLSDIR}/$${file}"; done; \
106
	for file in ${SCRIPTFILES}; do echo "${LSCRIPTSDIR}/$${file}"; done; \
102
	for file in ${DOCS}; do echo "%%PORTDOCS%%${LDOCSDIR}/$${file}"; done; \
107
	for file in ${DOCS}; do echo "%%PORTDOCS%%${LDOCSDIR}/$${file}"; done; \
103
	for file in ${EXAMPLES}; do echo "%%PORTDOCS%%${LEXAMPLESDIR}/$${file}"; done; \
108
	for file in ${EXAMPLES}; do echo "%%PORTDOCS%%${LEXAMPLESDIR}/$${file}"; done; \
104
	echo "${LPKGREGDIR}/package.xml"; \
109
	echo "${LPKGREGDIR}/package.xml"; \
Lines 128-137 Link Here
128
	echo "@unexec rmdir %D/${LEXAMPLESDIR:H} 2> /dev/null || true"; \
133
	echo "@unexec rmdir %D/${LEXAMPLESDIR:H} 2> /dev/null || true"; \
129
	echo "@unexec rmdir %D/${LTESTSDIR:H} 2> /dev/null || true"; \
134
	echo "@unexec rmdir %D/${LTESTSDIR:H} 2> /dev/null || true"; \
130
	echo "@unexec rmdir %D/${LDATADIR:H} 2> /dev/null || true"; \
135
	echo "@unexec rmdir %D/${LDATADIR:H} 2> /dev/null || true"; \
136
	echo "@unexec rmdir %D/${LSCRIPTSDIR:H} 2> /dev/null || true"; \
131
	echo "@unexec rmdir %D/${LSQLSDIR:H} 2> /dev/null || true") > ${PLIST}
137
	echo "@unexec rmdir %D/${LSQLSDIR:H} 2> /dev/null || true") > ${PLIST}
132
. endif
138
. endif
133
139
134
. for t in files docs tests sqls examples data
140
. for t in files docs tests sqls scriptfiles examples data
135
.  if !target(do-install-${t}-msg)
141
.  if !target(do-install-${t}-msg)
136
do-install-${t}-msg: .USE
142
do-install-${t}-msg: .USE
137
.  endif
143
.  endif
Lines 139-145 Link Here
139
145
140
pre-install: 	do-generate-plist
146
pre-install: 	do-generate-plist
141
do-install: 	do-install-files do-install-docs do-install-tests do-install-sqls \
147
do-install: 	do-install-files do-install-docs do-install-tests do-install-sqls \
142
		do-install-examples do-install-data
148
		do-install-scriptfiles do-install-examples do-install-data
143
149
144
do-install-files: do-install-files-msg
150
do-install-files: do-install-files-msg
145
	@${MKDIR} ${INSTDIR}
151
	@${MKDIR} ${INSTDIR}
Lines 195-200 Link Here
195
.  endfor
201
.  endfor
196
.  for file in ${SQLS}
202
.  for file in ${SQLS}
197
	@${INSTALL_DATA} ${WRKSRC}/${_SQLSDIR}/${file} ${SQLSDIR}/${file}
203
	@${INSTALL_DATA} ${WRKSRC}/${_SQLSDIR}/${file} ${SQLSDIR}/${file}
204
.  endfor
205
. endif
206
207
do-install-scriptfiles: do-install-scriptfiles-msg
208
. if !empty(SCRIPTFILES)
209
	@${ECHO_MSG} "===> Installing scripts in ${SCRIPTFILESDIR}."
210
.  for file in ${SCRIPTFILES}
211
	@${MV} ${WRKSRC}/pear-${file} ${WRKSRC}/${file}
212
	@${REINPLACE_CMD} -e "s|@php_bin@|${SCRIPTFILESDIR}/php|g" ${WRKSRC}/${file}
213
	@${INSTALL_DATA} ${WRKSRC}/${file} ${SCRIPTFILESDIR}/${file}
214
	@${CHMOD} 555 ${SCRIPTFILESDIR}/${file}
198
.  endfor
215
.  endfor
199
. endif
216
. endif

Return to bug 73533