aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 44a14eacd99c..dd79e109f123 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 b837d4ad3655..ae3e7909bad8 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 927f771f2796..9a8b5d8c9b0d 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 dec91a1f5ca6..7c869d1ffe31 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 d4b6b6ab582f..a84479e5efb0 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 bb39f0e2aa5e..bb39f0e2aa5e 100644
--- a/devel/php-xdebug/pkg-message
+++ b/devel/php-xdebug/files/pkg-message.in