aboutsummaryrefslogtreecommitdiffstats
path: root/editors/openoffice.org-2
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2010-02-17 07:21:22 +0800
committermaho <maho@FreeBSD.org>2010-02-17 07:21:22 +0800
commitd89f067cc2bf22227e28176201b3e4390fb8208b (patch)
treea89a8256efa01926ea515e05c647414d12ca3899 /editors/openoffice.org-2
parent0246bd96a4d27524bf41ee54ef490753d46d08c8 (diff)
downloadfreebsd-ports-graphics-d89f067cc2bf22227e28176201b3e4390fb8208b.tar.gz
freebsd-ports-graphics-d89f067cc2bf22227e28176201b3e4390fb8208b.tar.zst
freebsd-ports-graphics-d89f067cc2bf22227e28176201b3e4390fb8208b.zip
Use $SUB_FILES & $SUB_LIST to dynamically adjust pkg-message.
PR: 142449, 142450, 142451 and 142452 Submitted by: Sevan Janiyan <venture37@geeklan.co.uk> Feature safe: yes
Diffstat (limited to 'editors/openoffice.org-2')
-rw-r--r--editors/openoffice.org-2/Makefile10
1 files changed, 2 insertions, 8 deletions
diff --git a/editors/openoffice.org-2/Makefile b/editors/openoffice.org-2/Makefile
index 5d9cdca8850..7c1f6cbb486 100644
--- a/editors/openoffice.org-2/Makefile
+++ b/editors/openoffice.org-2/Makefile
@@ -122,7 +122,8 @@ GNU_CONFIGURE= yes
WRKSRC?= ${WRKDIR}/${OOOTAG}
CONFIGURE_WRKSRC= ${WRKSRC}/config_office
TCSH?= /bin/tcsh
-PKGMESSAGE= ${WRKDIR}/pkg-message
+SUB_FILES= pkg-message
+SUB_LIST= EXECBASE=${EXECBASE} INSTALLATION_BASEDIR=${INSTALLATION_BASEDIR} OOOTAG=${OOOTAG} OOOVERSION=${OOOVERSION}
CONFIGURE_ARGS+= --with-gnu-cp=${LOCALBASE}/bin/gcp \
--with-gnu-patch=${LOCALBASE}/bin/gpatch \
@@ -271,13 +272,6 @@ post-install:
@${ECHO_CMD} "@unexec ${RM} %D/share/icons/hicolor/icon-theme.cache 2>/dev/null || ${TRUE}" >> ${TMPPLIST}
@${ECHO_CMD} "@exec ${PREFIX}/bin/gtk-update-icon-cache -q -f %D/share/icons/hicolor 2>/dev/null || ${TRUE}" >> ${TMPPLIST}
@${ECHO_CMD} "@unexec ${PREFIX}/bin/gtk-update-icon-cache -q -f %D/share/icons/hicolor 2>/dev/null || ${TRUE}" >> ${TMPPLIST}
- @${CP} ${FILESDIR}/pkg-message.in ${PKGMESSAGE}
- @${REINPLACE_CMD} -e 's#%%PREFIX%%#${PREFIX}#g' \
- -e 's#%%INSTALLATION_BASEDIR%%#${INSTALLATION_BASEDIR}#g' \
- -e 's#%%EXECBASE%%#${EXECBASE}#g' \
- -e 's#%%OOOTAG%%#${OOOTAG}#g' \
- -e 's#%%OOOVERSION%%#${OOOVERSION}#g' \
- ${PKGMESSAGE}
@${ECHO_CMD}
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD}