diff options
author | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-09-30 12:52:43 +0800 |
---|---|---|
committer | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-09-30 12:52:43 +0800 |
commit | 39dfaca9d7337b5cbfac644953a106f2d4ea18a8 (patch) | |
tree | 4e6e4508d09d0b3fa1dcf7d0e16fe9b694eb419f /chinese/gcin/Makefile | |
parent | 41e3fece19dcd8b76033eb5a9f28e398d8ddca42 (diff) | |
download | marcuscom-ports-39dfaca9d7337b5cbfac644953a106f2d4ea18a8.tar marcuscom-ports-39dfaca9d7337b5cbfac644953a106f2d4ea18a8.tar.gz marcuscom-ports-39dfaca9d7337b5cbfac644953a106f2d4ea18a8.tar.bz2 marcuscom-ports-39dfaca9d7337b5cbfac644953a106f2d4ea18a8.tar.lz marcuscom-ports-39dfaca9d7337b5cbfac644953a106f2d4ea18a8.tar.xz marcuscom-ports-39dfaca9d7337b5cbfac644953a106f2d4ea18a8.tar.zst marcuscom-ports-39dfaca9d7337b5cbfac644953a106f2d4ea18a8.zip |
-USE_X_PREFIX -> USE_XLIB, chase gtk20/gnome's new home.
-Bump the PORTREVISION.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7398 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'chinese/gcin/Makefile')
-rw-r--r-- | chinese/gcin/Makefile | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/chinese/gcin/Makefile b/chinese/gcin/Makefile new file mode 100644 index 000000000..12e33ee53 --- /dev/null +++ b/chinese/gcin/Makefile @@ -0,0 +1,80 @@ +# New ports collection makefile for: gcin +# Date created: Feb 18 2004 +# Whom: Shen Chuan-Hsing +# +# $FreeBSD$ +# + +PORTNAME= gcin +PORTVERSION= 1.2.6 +PORTREVISION= 1 +CATEGORIES= chinese textproc gnome +MASTER_SITES= http://www.csie.nctu.edu.tw/~cp76/gcin/download/:main +DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:main +EXTRACT_ONLY= gcin-${PORTVERSION}.tar.bz2 + +MAINTAINER= chinsan.tw@gmail.com +COMMENT= A traditional chinese input utility in X + +USE_XLIB= YES +USE_BZIP2= YES +GNU_CONFIGURE= YES +USE_GNOME= gtk20 +USE_GMAKE= YES +USE_GCC= 3.4+ +INSTALLS_ICONS= YES +USE_LDCONFIG= YES +OPTIONS= BOSHIAMY "enable Boshiamy Input Method" off + +CONFIGURE_ENV+= "--new_gtk_im=Y" + +MAN1= gcin.1 gcin2tab.1 + +.include <bsd.port.pre.mk> + +.if defined(WITH_BOSHIAMY) +MASTER_SITES+= http://edt1023.sayya.org/misc/:boshiamy +DISTFILES+= noseeing-6.tar.gz:boshiamy +post-extract: + @${TAR} -C ${WRKSRC}/data/ -zxf ${DISTDIR}/noseeing-6.tar.gz \ + noseeing.cin + @${REINPLACE_CMD} -e 's,cj.gtab,cj.gtab noseeing.gtab,' \ + ${WRKSRC}/data/Makefile +.endif + +pre-patch: + @${REINPLACE_CMD} -e 's,gcin.png,${PREFIX}/share/icons/gcin.png,' \ + ${WRKSRC}/menu/gcin-setup.desktop + @${REINPLACE_CMD} -e 's/&//; s/bash/sh/; \ + s/QT_IM_DIR=\/usr/QT_IM_DIR=$$prefix/; \ + s/mandir=$$datadir/mandir=$$prefix/; \ + s/\/usr\/share/$$prefix\/share/; \ + 109,110 s/control-center-2\.0/gnome\/control-center-2\.0/; \ + s/gcc/$$CC/; s/gcin-$$GCIN_VERSION/gcin/' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's/qsort/mergesort/' ${WRKSRC}/gcin2tab.c + @${REINPLACE_CMD} -e 's/modify-XIM //; 8,10 d' ${WRKSRC}/scripts/Makefile + @${REINPLACE_CMD} -e 's/bash/sh/;' ${WRKSRC}/scripts/gcin-user-setup + @${REINPLACE_CMD} -e 's/bash/sh/; s/&//; s/opt\/gnome/usr\/X11R6/;' \ + ${WRKSRC}/scripts/utf8-edit + @${REINPLACE_CMD} -e 's,gcin-im-client.h,im-client/gcin-im-client.h,' \ + ${WRKSRC}/gtk-im/gtkimcontextgcin.c + +.if defined(WITH_BOSHIAMY) +post-patch: +PLIST_SUB+= BOSHIAMY="" +.else +PLIST_SUB+= BOSHIAMY="@comment " +.endif + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for file in Changelog README + ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} +.endfor +.endif + @gtk-query-immodules-2.0 > ${PREFIX}/etc/gtk-2.0/gtk.immodules + @${CAT} ${PKGMESSAGE} + @${ECHO} To display this message again, type \`pkg_info -D ${PKGNAME}\' + +.include <bsd.port.post.mk> |