aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2010-02-14 03:09:45 +0800
committermiwi <miwi@FreeBSD.org>2010-02-14 03:09:45 +0800
commitaa5e589ff327172ad194fc2d91abdeeea7c6b3f7 (patch)
treeb99ea1141e97e347df5f3c9eadfd5e8d569d1a00 /java
parent1fd05402e1c9a1ea4e152d028766f736edafc87f (diff)
downloadfreebsd-ports-gnome-aa5e589ff327172ad194fc2d91abdeeea7c6b3f7.tar.gz
freebsd-ports-gnome-aa5e589ff327172ad194fc2d91abdeeea7c6b3f7.tar.zst
freebsd-ports-gnome-aa5e589ff327172ad194fc2d91abdeeea7c6b3f7.zip
- Use $SUB_FILES to dynamically adjust pkg-message
PR: 142623 Submitted by: Sevan Janiyan <venture37@geeklan.co.uk>
Diffstat (limited to 'java')
-rw-r--r--java/eclipseme/Makefile5
-rw-r--r--java/eclipseme/files/pkg-message.in (renamed from java/eclipseme/pkg-message)2
2 files changed, 4 insertions, 3 deletions
diff --git a/java/eclipseme/Makefile b/java/eclipseme/Makefile
index 20feda73ad37..44ea50fefa4b 100644
--- a/java/eclipseme/Makefile
+++ b/java/eclipseme/Makefile
@@ -22,7 +22,8 @@ RUN_DEPENDS= ${LOCALBASE}/bin/eclipse:${PORTSDIR}/java/eclipse \
NO_BUILD= yes
USE_ZIP= yes
NO_WRKSUBDIR= yes
-PKGMESSAGE= ${WRKDIR}/pkg-message
+SUB_FILES= pkg-message
+SUB_LIST= APP_HOME=${APP_HOME}
APP_HOME= ${PREFIX}/eclipse/plugins/${PORTNAME}_${PORTVERSION}
.if defined(WITH_PROGUARD)
@@ -34,6 +35,6 @@ do-install:
@${CP} -R ${WRKSRC}/${PORTNAME}_${PORTVERSION} ${PREFIX}/eclipse/plugins/
post-install:
- @${CAT} ./pkg-message | ${SED} -e 's|%%PREFIX%%|${APP_HOME}|'
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/java/eclipseme/pkg-message b/java/eclipseme/files/pkg-message.in
index 6a45e568d217..8bd48ffd5859 100644
--- a/java/eclipseme/pkg-message
+++ b/java/eclipseme/files/pkg-message.in
@@ -1,6 +1,6 @@
================================================================
Initial configuration instructions for the Eclipse J2ME plugin
are in the file:
-%%PREFIX%%/doc/index.html
+%%APP_HOME%%/doc/index.html
================================================================