aboutsummaryrefslogtreecommitdiff
path: root/chinese/xsim
diff options
context:
space:
mode:
Diffstat (limited to 'chinese/xsim')
-rw-r--r--chinese/xsim/Makefile13
-rw-r--r--chinese/xsim/distinfo1
2 files changed, 8 insertions, 6 deletions
diff --git a/chinese/xsim/Makefile b/chinese/xsim/Makefile
index 50ef6c4cd769..65f0065a589d 100644
--- a/chinese/xsim/Makefile
+++ b/chinese/xsim/Makefile
@@ -10,6 +10,8 @@ PORTVERSION= 0.3.9.4
CATEGORIES= chinese
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
+DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz \
+ ${PORTNAME}-data-freebsd-gb2312.tar.gz
MAINTAINER= statue@freebsd.sinica.edu.tw
COMMENT= A simple and fast GBK Chinese XIM server
@@ -24,14 +26,13 @@ CONFIGURE_ARGS= --with-cn-locale=EUC
post-patch:
@${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,' \
${WRKSRC}/xsim/IMdkit/IMConn.c
- @${FIND} ${WRKSRC} -type f -name Makefile.in | ${XARGS} \
- ${REINPLACE_CMD} -e 's,@prefix@/plugins,${DATADIR}/plugins,g' \
- -e 's,@prefix@/dat,${DATADIR}/dat,g' \
- -e 's,@prefix@/bin,${DATADIR}/bin,g'
+ @${FIND} ${WRKSRC} -name xsimrc.in -or -name Makefile.in | ${XARGS} \
+ ${REINPLACE_CMD} -Ee 's,@prefix@/(plugins|dat|bin),${DATADIR}/\1,g'
post-install:
- @${LN} -s ${PREFIX}/share/xsim/bin/xsim ${PREFIX}/bin/xsim
- @cd ${WRKSRC} && make install-data
+ @${LN} -s ${DATADIR}/bin/xsim ${PREFIX}/bin/xsim
+ @${MKDIR} ${DATADIR}/dat
+ @${CP} -R ${WRKDIR}/usr/local/xsim/dat/* ${DATADIR}/dat
@${SED} -e 's,%%X11BASE%%,${X11BASE},g' < ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/chinese/xsim/distinfo b/chinese/xsim/distinfo
index 2f6d0872a2ef..5ace17e7e6c3 100644
--- a/chinese/xsim/distinfo
+++ b/chinese/xsim/distinfo
@@ -1 +1,2 @@
MD5 (xsim-0.3.9.4.tar.gz) = a0b430eeff8bf8beccedfe5f4f1668e7
+MD5 (xsim-data-freebsd-gb2312.tar.gz) = 191c6b697e134e6f4dbeceb9e8b2ccdd