aboutsummaryrefslogtreecommitdiff
path: root/chinese
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2009-12-19 21:40:33 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2009-12-19 21:40:33 +0000
commit6e124b0aa2f8c3afe5987cf74136c6bb5076cfbf (patch)
treec6d724491658c39459cf2385835aeac9da0c52ec /chinese
parent6bf700669fb1fffc93b313afc5ad4f0359dd3ac2 (diff)
downloadports-6e124b0aa2f8c3afe5987cf74136c6bb5076cfbf.tar.gz
ports-6e124b0aa2f8c3afe5987cf74136c6bb5076cfbf.zip
Notes
Diffstat (limited to 'chinese')
-rw-r--r--chinese/gcin/Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/chinese/gcin/Makefile b/chinese/gcin/Makefile
index 213138763716..3f804e584b86 100644
--- a/chinese/gcin/Makefile
+++ b/chinese/gcin/Makefile
@@ -36,6 +36,14 @@ MAN1= gcin.1 gcin2tab.1 gcin-gb-toggle.1 gcin-kbm-toggle.1 \
gcin-message.1 gcin-setup.1 gtab-merge.1 juyin-learn.1 \
phoa2d.1 sim2trad.1 tsa2d32.1 tslearn.1
+.include <bsd.port.options.mk>
+
+.if defined(WITH_QT_IM_MODULE)
+USE_QT_VER= 4
+QT_COMPONENTS= inputmethods qmake_build moc_build corelib gui
+LIB_DEPENDS+= mng:${PORTSDIR}/graphics/libmng
+.endif
+
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 700000
@@ -64,12 +72,6 @@ post-extract:
${WRKSRC}/scripts/Makefile
.endif
-.if defined(WITH_QT_IM_MODULE)
-USE_QT_VER= 4
-QT_COMPONENTS= inputmethods qmake_build moc_build corelib gui
-LIB_DEPENDS+= mng:${PORTSDIR}/graphics/libmng
-.endif
-
post-patch:
@${REINPLACE_CMD} -e 's,&,,; 1 s,bash,sh,; \
s,QT_IM_DIR=/usr,QT_IM_DIR=$$prefix,; \
@@ -115,13 +117,13 @@ PLIST_SUB+= QT_IM_MODULE="@comment "
post-build:
.if !defined(DEBUG_FLAGS)
- @${FIND} ${WRKSRC} -name "*.so*" | ${XARGS} strip
+ @${FIND} ${WRKSRC} -name "*.so*" | ${XARGS} ${STRIP_CMD}
.endif
post-install:
.if !defined(DEBUG_FLAGS)
.for f in gcin* gtab-merge juyin-learn phoa2* sim2trad trad2sim ts*
- @strip ${PREFIX}/bin/${f}
+ @${STRIP_CMD} ${PREFIX}/bin/${f}
.endfor
.endif
.if !defined(NOPORTDOCS)