2004-08-01 19:41:50 +02:00
|
|
|
# New ports collection makefile for: gcin
|
|
|
|
# Date created: Feb 18 2004
|
|
|
|
# Whom: Shen Chuan-Hsing
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gcin
|
2007-01-04 04:56:41 +01:00
|
|
|
PORTVERSION= 1.3.2
|
2006-01-14 13:01:27 +01:00
|
|
|
CATEGORIES= chinese textproc gnome
|
2006-12-03 13:10:41 +01:00
|
|
|
MASTER_SITES= http://cle.linux.org.tw/gcin/download/:main \
|
2007-01-04 04:56:41 +01:00
|
|
|
http://ftp.twaren.net/local-distfiles/gcin/:main \
|
2006-12-03 13:10:41 +01:00
|
|
|
http://yilan.twbbs.org/chinsan/gcin/:main \
|
|
|
|
LOCAL/chinsan:main
|
2006-08-20 11:29:45 +02:00
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:main
|
2006-09-05 10:55:56 +02:00
|
|
|
EXTRACT_ONLY= gcin-${PORTVERSION}.tar.bz2
|
2004-08-01 19:41:50 +02:00
|
|
|
|
2006-10-03 17:34:44 +02:00
|
|
|
MAINTAINER= chinsan@FreeBSD.org
|
2005-05-05 18:40:20 +02:00
|
|
|
COMMENT= A traditional chinese input utility in X
|
2004-08-01 19:41:50 +02:00
|
|
|
|
|
|
|
USE_BZIP2= YES
|
2007-01-07 08:13:47 +01:00
|
|
|
GZIP_CMD?= /usr/bin/gzip
|
2004-11-14 16:58:39 +01:00
|
|
|
GNU_CONFIGURE= YES
|
2006-10-31 07:02:23 +01:00
|
|
|
USE_GNOME= gtk20
|
2004-08-01 19:41:50 +02:00
|
|
|
USE_GMAKE= YES
|
2006-07-15 05:31:13 +02:00
|
|
|
USE_GCC= 3.4+
|
|
|
|
INSTALLS_ICONS= YES
|
2006-08-23 14:37:53 +02:00
|
|
|
USE_LDCONFIG= YES
|
2006-07-15 05:31:13 +02:00
|
|
|
OPTIONS= BOSHIAMY "enable Boshiamy Input Method" off
|
2006-02-22 16:15:43 +01:00
|
|
|
|
|
|
|
CONFIGURE_ENV+= "--new_gtk_im=Y"
|
2004-08-01 19:41:50 +02:00
|
|
|
|
2005-06-14 03:40:06 +02:00
|
|
|
MAN1= gcin.1 gcin2tab.1
|
|
|
|
|
2004-08-01 19:41:50 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-05-19 09:59:51 +02:00
|
|
|
.if defined(WITH_BOSHIAMY)
|
2007-01-07 08:13:47 +01:00
|
|
|
MASTER_SITES+= http://edt1023.sayya.org/gcin/:boshiamy
|
|
|
|
DISTFILES+= noseeing-7.cin.gz:boshiamy
|
2005-05-19 09:59:51 +02:00
|
|
|
post-extract:
|
2007-01-07 08:13:47 +01:00
|
|
|
cd ${WRKSRC}/data && ${GZIP_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/noseeing-7.cin.gz \
|
|
|
|
> noseeing.cin
|
2005-09-16 04:57:35 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,cj.gtab,cj.gtab noseeing.gtab,' \
|
|
|
|
${WRKSRC}/data/Makefile
|
2005-05-19 09:59:51 +02:00
|
|
|
.endif
|
|
|
|
|
2006-05-03 09:16:23 +02:00
|
|
|
pre-patch:
|
2007-01-04 04:56:41 +01:00
|
|
|
${MV} ${WRKSRC}/icons/3/pingin.png ${WRKSRC}/icons/3/pinyin.png
|
2006-12-03 13:10:41 +01:00
|
|
|
@${REINPLACE_CMD} -e 's,&,,; 1 s,bash,sh,; \
|
|
|
|
s,QT_IM_DIR=/usr,QT_IM_DIR=$$prefix,; \
|
|
|
|
s,mandir=$$datadir,mandir=$$prefix,; \
|
2007-01-04 04:56:41 +01:00
|
|
|
s,/usr/share,$$prefix/share,; 164 s,/gcin,,; \
|
2006-12-03 13:10:41 +01:00
|
|
|
133,134 s,control-center-2\.0,gnome\/control-center-2\.0,g; \
|
|
|
|
s,gcc,$$CC,; s,gcin-$$GCIN_VERSION,gcin,' ${WRKSRC}/configure
|
2006-10-24 09:21:29 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,\/usr\/share,$$(prefix)\/share,' ${WRKSRC}/Makefile
|
2006-12-03 13:10:41 +01:00
|
|
|
@${REINPLACE_CMD} -e 's,/usr/local,/usr,g' \
|
2007-01-04 04:56:41 +01:00
|
|
|
${WRKSRC}/gtk-im/Makefile ${WRKSRC}/menu/Makefile
|
2006-12-03 13:10:41 +01:00
|
|
|
@${REINPLACE_CMD} -e 's,/usr/lib,${LOCALBASE}/lib,g; \
|
|
|
|
s,/usr/include,${X11BASE}/include,g; s,Xft2/X11/Xft,X11/Xft,' \
|
|
|
|
${WRKSRC}/qt-im/Makefile
|
|
|
|
@${REINPLACE_CMD} -e 's,modify-XIM ,,; 8,10 d' ${WRKSRC}/scripts/Makefile
|
|
|
|
@${REINPLACE_CMD} -e 's,bash,sh,; s/&//; s,/opt/gnome,${X11BASE},;' \
|
2007-01-04 04:56:41 +01:00
|
|
|
${WRKSRC}/scripts/utf8-edit ${WRKSRC}/scripts/gcin-user-setup \
|
|
|
|
${WRKSRC}/scripts/gtab.append_prepare
|
2006-10-31 07:02:23 +01:00
|
|
|
@${REINPLACE_CMD} -e 's,wget,fetch,' ${WRKSRC}/scripts/noseeing-inst
|
2006-05-03 09:16:23 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,gcin-im-client.h,im-client/gcin-im-client.h,' \
|
|
|
|
${WRKSRC}/gtk-im/gtkimcontextgcin.c
|
2006-11-29 05:24:57 +01:00
|
|
|
@${REINPLACE_CMD} -e 's,/usr/X11R6,${X11BASE},' \
|
|
|
|
${WRKSRC}/IMdkit/lib/Makefile \
|
|
|
|
${WRKSRC}/IMdkit/Xi18n_sample/Makefile ${WRKSRC}/Makefile \
|
|
|
|
${WRKSRC}/qt-im/Makefile ${WRKSRC}/scripts/modify-XIM \
|
|
|
|
${WRKSRC}/scripts/utf8-edit
|
2006-05-03 09:16:23 +02:00
|
|
|
|
|
|
|
.if defined(WITH_BOSHIAMY)
|
|
|
|
post-patch:
|
|
|
|
PLIST_SUB+= BOSHIAMY=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= BOSHIAMY="@comment "
|
|
|
|
.endif
|
2005-09-16 04:57:35 +02:00
|
|
|
|
2005-05-05 15:52:08 +02:00
|
|
|
post-install:
|
2005-05-12 08:51:20 +02:00
|
|
|
.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
|
2005-05-05 15:52:08 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${ECHO} To display this message again, type \`pkg_info -D ${PKGNAME}\'
|
|
|
|
|
2004-08-01 19:41:50 +02:00
|
|
|
.include <bsd.port.post.mk>
|