freebsd-ports/chinese/gcin-devel/Makefile

93 lines
3 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: gcin
# Date created: Feb 18 2004
# Whom: Shen Chuan-Hsing
#
# $FreeBSD$
#
PORTNAME= gcin
PORTVERSION= 1.3.2
CATEGORIES= chinese textproc gnome
MASTER_SITES= http://cle.linux.org.tw/gcin/download/:main \
http://ftp.twaren.net/local-distfiles/gcin/:main \
http://yilan.twbbs.org/chinsan/gcin/:main \
LOCAL/chinsan:main
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:main
EXTRACT_ONLY= gcin-${PORTVERSION}.tar.bz2
Change the following ports to my FreeBSD.org email. Approved by: delphij (mentor) archivers/pecl-bz2/Makefile archivers/pecl-lzf/Makefile archivers/pecl-rar/Makefile audio/fapg/Makefile audio/pecl-id3/Makefile chinese/CJKUnifonts/Makefile chinese/auto-tw-l10n/Makefile chinese/dfsongsd/Makefile chinese/fortunetw/Makefile chinese/gcin/Makefile chinese/joe/Makefile chinese/joe2/Makefile chinese/pcmanx/Makefile chinese/phpbb-tw/Makefile chinese/tatter-tools/Makefile chinese/ve/Makefile chinese/zhcon/Makefile devel/pear-Console_Getopt/Makefile devel/pear-Console_Table/Makefile devel/pear-PEAR_Info/Makefile devel/pecl-expect/Makefile games/p5-Baseball-Sabermetrics/Makefile graphics/epdfview/Makefile graphics/p5-Chart-Clicker/Makefile graphics/p5-GD-Thumbnail/Makefile graphics/p5-Visio/Makefile mail/pecl-esmtp/Makefile math/pecl-stats/Makefile misc/pear-Services_Weather/Makefile net/ldapdiff/Makefile net/p5-RRD-Simple/Makefile net/pear-Net_CDDB/Makefile net/pear-Net_SMS/Makefile net/pecl-cvsclient/Makefile security/gwee/Makefile security/p5-GSSAPI/Makefile security/pam-pgsql/Makefile security/pecl-ssh2/Makefile security/pecl-tcpwrap/Makefile sysutils/p5-BSD-Sysctl/Makefile sysutils/p5-File-Next/Makefile textproc/csvdiff/Makefile textproc/p5-CSS/Makefile textproc/p5-Pod-XML/Makefile textproc/p5-SGML-DTDParse/Makefile textproc/p5-Text-Emoticon-GoogleTalk/Makefile textproc/p5-XML-Handler-Dtd2DocBook/Makefile textproc/p5-XML-Handler-Dtd2Html/Makefile textproc/p5-XML-SAXDriver-CSV/Makefile textproc/p5-XML-SAXDriver-Excel/Makefile textproc/p5-ack/Makefile textproc/pear-XML_DTD/Makefile textproc/pecl-stem/Makefile textproc/scim-input-pad/Makefile textproc/sdcv/Makefile www/b2evolution/Makefile www/dokuwiki/Makefile www/dokuwiki-devel/Makefile www/lilurl/Makefile www/p5-HTML-TableParser/Makefile www/p5-HTML-WikiConverter/Makefile www/p5-HTML-WikiConverter-DokuWiki/Makefile www/p5-HTML-WikiConverter-Kwiki/Makefile www/p5-HTML-WikiConverter-Markdown/Makefile www/p5-HTML-WikiConverter-MediaWiki/Makefile www/p5-HTML-WikiConverter-MoinMoin/Makefile www/p5-HTML-WikiConverter-Oddmuse/Makefile www/p5-HTML-WikiConverter-PbWiki/Makefile www/p5-HTML-WikiConverter-PhpWiki/Makefile www/p5-HTML-WikiConverter-PmWiki/Makefile www/p5-HTML-WikiConverter-SnipSnap/Makefile www/p5-HTML-WikiConverter-Socialtext/Makefile www/p5-HTML-WikiConverter-TikiWiki/Makefile www/p5-HTML-WikiConverter-UseMod/Makefile www/p5-HTML-WikiConverter-WakkaWiki/Makefile www/p5-HTML-WikiConverter-WikkaWiki/Makefile www/p5-WWW-Baseball-NPB/Makefile www/p5-WWW-Comic/Makefile www/p5-WWW-VenusEnvy/Makefile www/pear-Services_Delicious/Makefile www/pear-UDDI/Makefile www/xpi-cssviewer/Makefile www/xpi-gmail-manager/Makefile www/xpi-google-notebook/Makefile www/xpi-mrtech-local-install/Makefile www/xpi-no-referrer/Makefile www/xpi-server_switcher/Makefile www/xpi-unplug/Makefile www/xpi-videodownloader/Makefile www/xpi-web_developer/Makefile x11/xdialog/Makefile x11-fm/pcmanfm/Makefile
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
USE_BZIP2= YES
GZIP_CMD?= /usr/bin/gzip
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/gcin/:boshiamy
DISTFILES+= noseeing-7.cin.gz:boshiamy
post-extract:
cd ${WRKSRC}/data && ${GZIP_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/noseeing-7.cin.gz \
> noseeing.cin
@${REINPLACE_CMD} -e 's,cj.gtab,cj.gtab noseeing.gtab,' \
${WRKSRC}/data/Makefile
.endif
pre-patch:
${MV} ${WRKSRC}/icons/3/pingin.png ${WRKSRC}/icons/3/pinyin.png
@${REINPLACE_CMD} -e 's,&,,; 1 s,bash,sh,; \
s,QT_IM_DIR=/usr,QT_IM_DIR=$$prefix,; \
s,mandir=$$datadir,mandir=$$prefix,; \
s,/usr/share,$$prefix/share,; 164 s,/gcin,,; \
133,134 s,control-center-2\.0,gnome\/control-center-2\.0,g; \
s,gcc,$$CC,; s,gcin-$$GCIN_VERSION,gcin,' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's,\/usr\/share,$$(prefix)\/share,' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's,/usr/local,/usr,g' \
${WRKSRC}/gtk-im/Makefile ${WRKSRC}/menu/Makefile
@${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},;' \
${WRKSRC}/scripts/utf8-edit ${WRKSRC}/scripts/gcin-user-setup \
${WRKSRC}/scripts/gtab.append_prepare
@${REINPLACE_CMD} -e 's,wget,fetch,' ${WRKSRC}/scripts/noseeing-inst
@${REINPLACE_CMD} -e 's,gcin-im-client.h,im-client/gcin-im-client.h,' \
${WRKSRC}/gtk-im/gtkimcontextgcin.c
@${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
.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>