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 diff --git a/java/eclipseme/pkg-message b/java/eclipseme/files/pkg-message.in similarity index 88% rename from java/eclipseme/pkg-message rename to 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 ================================================================