aboutsummaryrefslogtreecommitdiff
path: root/chinese/chinput2
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2004-10-12 18:37:52 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2004-10-12 18:37:52 +0000
commit118956d4a726aaaa95cb2957d9f266a135ef4123 (patch)
tree77c1048e6037b059d0d045b4ff1583edc9e25486 /chinese/chinput2
parent8cf56cfd8184c48555ba2016a8c220496699a300 (diff)
Notes
Diffstat (limited to 'chinese/chinput2')
-rw-r--r--chinese/chinput2/Makefile43
-rw-r--r--chinese/chinput2/pkg-plist5
2 files changed, 24 insertions, 24 deletions
diff --git a/chinese/chinput2/Makefile b/chinese/chinput2/Makefile
index b8b0493fb64d..9ffdec9907b3 100644
--- a/chinese/chinput2/Makefile
+++ b/chinese/chinput2/Makefile
@@ -15,29 +15,34 @@ DISTNAME= zh-chinput2-1.3.1
MAINTAINER= phj@cn.FreeBSD.org
COMMENT= Another Chinese GB2312 and Big5 X11 input server
-BUILD_DEPENDS= mysql:${PORTSDIR}/databases/mysql323-client
-RUN_DEPENDS= mysql:${PORTSDIR}/databases/mysql323-client
-
+USE_MYSQL= yes
+USE_REINPLACE= yes
USE_XLIB= yes
-
WRKSRC= ${WRKDIR}/${PORTNAME}
+PLIST_FILES= bin/chinput2 bin/add_items etc/chinput2.conf share/${PORTNAME}/README
+PLIST_DIRS= share/${PORTNAME}
-.include <bsd.port.pre.mk>
+post-extract:
+ @${FIND} ${WRKSRC} -name CVS | ${XARGS} ${RM} -rf
-.if ${OSVERSION} >= 500113
-BROKEN= "Does not build"
-.endif
+post-patch:
+ @${REINPLACE_CMD} -Ee 's,^((BIN|CONF|DOC_)(DIR|PATH)=)/usr/local,\1${PREFIX},g' \
+ ${WRKSRC}/util/pydb/Makefile ${WRKSRC}/src/Makefile ${WRKSRC}/Makefile
-post-extract:
- ${FIND} ${WRKSRC} -name CVS | ${XARGS} ${RM} -rf
+pre-build:
+ @${RM} -f ${WRKSRC}/src/.depend
+
+pre-install:
+ @${REINPLACE_CMD} -Ee 's,^((BIN|CONF|DOC_)(DIR|PATH)=)/usr/local,\1${PREFIX},g' \
+ ${WRKSRC}/src/Makefile
post-install:
- @echo
- @echo
- @echo "Please refer to /usr/local/share/chinput2/README for "
- @echo "how to use chinput2,thanks for using this software."
- @echo
- @echo " -phj@cn.freebsd.org"
- @echo
-
-.include <bsd.port.post.mk>
+ @${ECHO_MSG}
+ @${ECHO_MSG}
+ @${ECHO_MSG} "Please refer to ${PREFIX}/share/chinput2/README for "
+ @${ECHO_MSG} "how to use chinput2,thanks for using this software."
+ @${ECHO_MSG}
+ @${ECHO_MSG} " -phj@cn.freebsd.org"
+ @${ECHO_MSG}
+
+.include <bsd.port.mk>
diff --git a/chinese/chinput2/pkg-plist b/chinese/chinput2/pkg-plist
deleted file mode 100644
index 27ee51155e7a..000000000000
--- a/chinese/chinput2/pkg-plist
+++ /dev/null
@@ -1,5 +0,0 @@
-bin/chinput2
-bin/add_items
-etc/chinput2.conf
-share/chinput2/README
-@dirrm share/chinput2