summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2006-04-01 13:07:13 +0000
committeredwin <edwin@FreeBSD.org>2006-04-01 13:07:13 +0000
commit4edc9f9bd52c1b1037f78f1135540d0728dc06a6 (patch)
tree785c861628da9941f82d356b59906384492f7a3e
parent7f2e67e7d312d635c16f95debd4471d5a7b27be4 (diff)
downloadFreeBSD-ports-4edc9f9bd52c1b1037f78f1135540d0728dc06a6.zip
FreeBSD-ports-4edc9f9bd52c1b1037f78f1135540d0728dc06a6.tar.gz
use SUB_FILES for pkg-message
-rw-r--r--devel/cvs2p4/Makefile2
-rw-r--r--devel/cvs2p4/files/pkg-message.in (renamed from devel/cvs2p4/pkg-message)4
-rw-r--r--devel/p4db/Makefile5
-rw-r--r--devel/p4db/files/pkg-message.in (renamed from devel/p4db/pkg-message)9
-rw-r--r--devel/php-xdebug/Makefile6
-rw-r--r--devel/php-xdebug/files/pkg-message.in (renamed from devel/php-xdebug/pkg-message)0
6 files changed, 12 insertions, 14 deletions
diff --git a/devel/cvs2p4/Makefile b/devel/cvs2p4/Makefile
index 44a14ea..dd79e10 100644
--- a/devel/cvs2p4/Makefile
+++ b/devel/cvs2p4/Makefile
@@ -17,6 +17,8 @@ COMMENT= CVS to Perforce Converter
USE_REINPLACE= yes
REINPLACE_ARGS= -i ""
NO_BUILD= yes
+SUB_FILES= pkg-message
+PKGMESSAGE= ${WRKDIR}/pkg-message
PERFORCE_PORT?= 1666
diff --git a/devel/cvs2p4/pkg-message b/devel/cvs2p4/files/pkg-message.in
index b837d4a..ae3e790 100644
--- a/devel/cvs2p4/pkg-message
+++ b/devel/cvs2p4/files/pkg-message.in
@@ -1,6 +1,4 @@
************************************************************************
-Go to /usr/local/cvs2p4, and follow the instructions described in the
+Go to %%PREFIX%%/cvs2p4, and follow the instructions described in the
README file.
-
-(Replace /usr/local above with ${PREFIX} as appropriate)
************************************************************************
diff --git a/devel/p4db/Makefile b/devel/p4db/Makefile
index 927f771..9a8b5d8 100644
--- a/devel/p4db/Makefile
+++ b/devel/p4db/Makefile
@@ -17,13 +17,14 @@ COMMENT= Web/Perforce Browser
RUN_DEPENDS= p4:${.CURDIR}/../perforce
USE_PERL5= yes
-
NO_BUILD= yes
NO_WRKSUBDIR= yes
PATCH_WRKSRC= ${WRKSRC}/${PORTNAME}
+SUB_FILES= pkg-message
+PKGMESSAGE= ${WRKDIR}/pkg-message
FQDN!= hostname
-P4DB_HOME= ${LOCALBASE}/perforce/${PORTNAME}
+P4DB_HOME= ${PREFIX}/perforce/${PORTNAME}
# These variables are all configurable.
PERFORCE_USER?= p4admin
diff --git a/devel/p4db/pkg-message b/devel/p4db/files/pkg-message.in
index dec91a1..7c869d1 100644
--- a/devel/p4db/pkg-message
+++ b/devel/p4db/files/pkg-message.in
@@ -1,10 +1,10 @@
************************************************************************
-To launch your p4db site, edit /usr/local/perforce/p4db/P4DB.conf and
-configure the web server to make /usr/local/perforce/p4db/www
+To launch your p4db site, edit %%LOCALBASE%%/perforce/p4db/P4DB.conf and
+configure the web server to make %%LOCALBASE%%/perforce/p4db/www
viewable. For example:
- Alias /p4db/ "/usr/local/perforce/p4db/www/"
- <Directory "/usr/local/perforce/p4db/www">
+ Alias /p4db/ "%%LOCALBASE%%/perforce/p4db/www/"
+ <Directory "%%LOCALBASE%%/perforce/p4db/www">
AddHandler cgi-script .cgi
DirectoryIndex index.cgi
Options ExecCGI
@@ -13,5 +13,4 @@ viewable. For example:
Allow from all
</Directory>
-(Replace /usr/local with your ${PREFIX} as appropriate)
************************************************************************
diff --git a/devel/php-xdebug/Makefile b/devel/php-xdebug/Makefile
index d4b6b6a..a84479e 100644
--- a/devel/php-xdebug/Makefile
+++ b/devel/php-xdebug/Makefile
@@ -19,11 +19,9 @@ USE_PHP= yes
USE_PHPIZE= yes
CONFIGURE_ARGS= --enable-xdebug --with-php-config=${PREFIX}/bin/php-config
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
+SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
-
-post-build:
- @${SED} "s|%%PREFIX%%|${PREFIX}|g;s|%%PHP_EXT_DIR%%|${PHP_EXT_DIR}|g" \
- < ${.CURDIR}/pkg-message > ${PKGMESSAGE}
+SUB_LIST= PHP_EXT_DIR=${PHP_EXT_DIR}
do-install:
@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}
diff --git a/devel/php-xdebug/pkg-message b/devel/php-xdebug/files/pkg-message.in
index bb39f0e..bb39f0e 100644
--- a/devel/php-xdebug/pkg-message
+++ b/devel/php-xdebug/files/pkg-message.in
OpenPOWER on IntegriCloud