aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/xsim/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'chinese/xsim/Makefile')
-rw-r--r--chinese/xsim/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/chinese/xsim/Makefile b/chinese/xsim/Makefile
index 087d2d03556b..c2bcfa8f131d 100644
--- a/chinese/xsim/Makefile
+++ b/chinese/xsim/Makefile
@@ -22,6 +22,8 @@ USE_REINPLACE= yes
USE_XLIB= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-cn-locale=eucCN
+PKGMESSAGE= ${WRKDIR}/pkg-message
+SUB_FILES= pkg-message xsim.sh
.include <bsd.port.pre.mk>
@@ -39,10 +41,9 @@ post-patch:
@${REINPLACE_CMD} "s/-O2/${CFLAGS}/g" ${WRKSRC}/configure
post-install:
- @${SED} "s|%%PREFIX%%|${PREFIX}|g" <${FILESDIR}/xsim.sh \
- >${PREFIX}/bin/xsim && ${CHMOD} 555 ${PREFIX}/bin/xsim
+ ${INSTALL_DATA} ${WRKDIR}/xsim.sh ${PREFIX}/bin/xsim
@${MKDIR} ${DATADIR}/dat
@${CP} -R ${WRKDIR}/usr/local/xsim/dat/* ${DATADIR}/dat
- @${SED} -e 's,%%X11BASE%%,${X11BASE},g' < ${PKGMESSAGE}
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>