diff options
author | Max Brazhnikov <makc@FreeBSD.org> | 2009-12-19 21:38:20 +0000 |
---|---|---|
committer | Max Brazhnikov <makc@FreeBSD.org> | 2009-12-19 21:38:20 +0000 |
commit | 6bf700669fb1fffc93b313afc5ad4f0359dd3ac2 (patch) | |
tree | 8579e9ff7eb7307a305c667d650a3c03f1b7d09e /chinese/gcin-devel | |
parent | a56264dca85ad60eb0bb6e2e77146f1bec7dc2b8 (diff) | |
download | ports-6bf700669fb1fffc93b313afc5ad4f0359dd3ac2.tar.gz ports-6bf700669fb1fffc93b313afc5ad4f0359dd3ac2.zip |
Fix QT4 option usage (in preparation for Qt-4.6.0 update)
While here:
Replace strip with ${STRIP_CMD}
Use DISTVERSION
Mark IGNORE, chinese/gcin is newer
Notes
Notes:
svn path=/head/; revision=246262
Diffstat (limited to 'chinese/gcin-devel')
-rw-r--r-- | chinese/gcin-devel/Makefile | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/chinese/gcin-devel/Makefile b/chinese/gcin-devel/Makefile index a97eea1a8f17..195170a2c1a4 100644 --- a/chinese/gcin-devel/Makefile +++ b/chinese/gcin-devel/Makefile @@ -6,14 +6,14 @@ # PORTNAME= gcin -PORTVERSION= 1.4.5.pre2 +DISTVERSION= 1.4.5.pre2 PORTREVISION= 1 CATEGORIES= chinese textproc gnome MASTER_SITES= http://www.csie.nctu.edu.tw/~cp76/gcin/download/:main \ http://cle.linux.org.tw/gcin/download/:main \ LOCAL/chinsan/gcin:main PKGNAMESUFFIX= -devel -DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:main +DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}:main EXTRACT_ONLY= gcin-${PORTVERSION}.tar.bz2 MAINTAINER= ports@FreeBSD.org @@ -41,7 +41,17 @@ 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 -WRKSRC= ${WRKDIR}/gcin-${PORTVERSION} +WRKSRC= ${WRKDIR}/gcin-${DISTVERSION} + +IGNORE= is older than chinese/gcin + +.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> @@ -70,12 +80,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,; \ @@ -122,13 +126,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} .endif post-install: .if !defined(DEBUG_FLAGS) .for f in gcin* gtab-merge juyin-learn phoa2* sim2trad trad2sim ts* - @strip ${PREFIX}/bin/${f} + @${STRIP} ${PREFIX}/bin/${f} .endfor .endif .if !defined(NOPORTDOCS) |