diff options
author | makc <makc@FreeBSD.org> | 2009-12-19 21:40:33 +0000 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2009-12-19 21:40:33 +0000 |
commit | 7e15778befad6affc000c2a651ace2dad9edf4df (patch) | |
tree | a018092ec3ccb7ef0fc0d484192ed48ffb746de7 /chinese | |
parent | 62bc2b5c54b6dc78264582ec7a415d0de9385da6 (diff) | |
download | FreeBSD-ports-7e15778befad6affc000c2a651ace2dad9edf4df.zip FreeBSD-ports-7e15778befad6affc000c2a651ace2dad9edf4df.tar.gz |
Fix QT4 option usage (in preparation for Qt-4.6.0 update)
Replace strip with ${STRIP_CMD} while here
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/gcin/Makefile | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/chinese/gcin/Makefile b/chinese/gcin/Makefile index 2131387..3f804e5 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) |