2013-09-15 14:27:30 +02:00
|
|
|
# Created by: Shen Chuan-Hsing
|
2004-08-01 19:41:50 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gcin
|
2018-05-21 17:36:12 +02:00
|
|
|
PORTVERSION= 2.8.6
|
2006-01-14 13:01:27 +01:00
|
|
|
CATEGORIES= chinese textproc gnome
|
2014-04-12 05:09:06 +02:00
|
|
|
MASTER_SITES= http://hyperrate.com/gcin-source/
|
2012-01-30 16:52:29 +01:00
|
|
|
EXTRACT_ONLY= gcin-${PORTVERSION}.tar.xz
|
2004-08-01 19:41:50 +02:00
|
|
|
|
2012-02-11 15:26:51 +01:00
|
|
|
MAINTAINER= vanilla@FreeBSD.org
|
2012-07-29 13:17:02 +02:00
|
|
|
COMMENT= Traditional Chinese input utility in X
|
2004-08-01 19:41:50 +02:00
|
|
|
|
2011-02-09 11:53:09 +01:00
|
|
|
LICENSE= LGPL21
|
2008-08-11 05:40:56 +02:00
|
|
|
|
2018-06-05 00:58:16 +02:00
|
|
|
BROKEN_powerpc64= fails to build: gmake[3]: *** [Makefile:30: en-american] Error 255
|
|
|
|
|
2018-05-21 17:36:12 +02:00
|
|
|
LIB_DEPENDS= libcurl.so:ftp/curl
|
|
|
|
|
|
|
|
USES= gmake pkgconfig tar:xz
|
2007-04-13 03:54:14 +02:00
|
|
|
HAS_CONFIGURE= YES
|
2017-09-23 16:25:09 +02:00
|
|
|
CONFIGURE_ARGS+= --use_gtk3=N --use_qt3=N --use_qt4=N --use_qt5=N
|
2006-10-31 07:02:23 +01:00
|
|
|
USE_GNOME= gtk20
|
2011-02-15 23:18:24 +01:00
|
|
|
USE_XORG= x11 xtst xext
|
2006-07-15 05:31:13 +02:00
|
|
|
INSTALLS_ICONS= YES
|
2017-09-23 16:25:09 +02:00
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/gcin
|
2015-08-19 15:29:59 +02:00
|
|
|
|
2018-05-21 17:36:12 +02:00
|
|
|
OPTIONS_DEFINE= ANTHY
|
2015-08-19 15:29:59 +02:00
|
|
|
OPTIONS_SUB= yes
|
2012-07-16 05:08:56 +02:00
|
|
|
ANTHY_DESC= Japanese anthy IM module
|
2009-12-19 22:40:33 +01:00
|
|
|
|
2016-04-01 15:29:15 +02:00
|
|
|
ANTHY_BUILD_DEPENDS= ${LOCALBASE}/include/anthy/anthy.h:japanese/anthy
|
|
|
|
ANTHY_LIB_DEPENDS= libanthy.so:japanese/anthy
|
2015-08-19 15:29:59 +02:00
|
|
|
ANTHY_CONFIGURE_OFF= --use_anthy=N
|
2012-01-30 16:52:29 +01:00
|
|
|
|
2009-02-01 02:10:45 +01:00
|
|
|
post-patch:
|
2012-01-30 16:52:29 +01:00
|
|
|
@${REINPLACE_CMD} -e 's,&,,; 1 s,##!/bin/bash,#!/bin/sh,; \
|
|
|
|
s,-ldl,,; \
|
2006-12-03 13:10:41 +01:00
|
|
|
s,mandir=$$datadir,mandir=$$prefix,; \
|
2011-02-15 23:18:24 +01:00
|
|
|
s,/usr/share,$$prefix/share,; \
|
2011-03-05 08:05:47 +01:00
|
|
|
1, 300 s,gcc,$$CC,; s,gcin-$$GCIN_VERSION,gcin,; \
|
|
|
|
/GCIN_DEBUG/ d' ${WRKSRC}/configure
|
2014-04-12 05:09:06 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,\/usr\/share,$$(prefix)\/share,; \
|
|
|
|
s,%%PREFIX%%,${PREFIX},;' \
|
2007-10-25 19:26:19 +02:00
|
|
|
${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
|
2007-10-25 19:26:19 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,modify-XIM ,,; 8,10 d' \
|
|
|
|
${WRKSRC}/scripts/Makefile
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,bash,sh,; s/&//; s,/opt/gnome,${LOCALBASE},;' \
|
2007-01-04 04:56:41 +01:00
|
|
|
${WRKSRC}/scripts/utf8-edit ${WRKSRC}/scripts/gcin-user-setup \
|
2011-02-09 11:53:09 +01:00
|
|
|
${WRKSRC}/scripts/gtab.append_prepare \
|
|
|
|
${WRKSRC}/scripts/tsin-gtab-import \
|
|
|
|
${WRKSRC}/scripts/tsin-gtab-edit
|
2009-02-01 02:10:45 +01:00
|
|
|
@${REINPLACE_CMD} -e 's,bash,sh,; s/&//; 12,13 s/=/ /; \
|
2011-02-15 23:18:24 +01:00
|
|
|
s/export/setenv/; s/$$UTF8ED/xdg-open/' \
|
2009-02-01 02:10:45 +01:00
|
|
|
${WRKSRC}/scripts/html-browser
|
2007-04-13 03:54:14 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,gcin-im-client.h,im-client/gcin-im-client.h,;' \
|
|
|
|
${WRKSRC}/gtk-im/gtkimcontextgcin.c
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},' \
|
2007-02-01 05:06:25 +01:00
|
|
|
${WRKSRC}/IMdkit/lib/Makefile ${WRKSRC}/Makefile \
|
2006-11-29 05:24:57 +01:00
|
|
|
${WRKSRC}/qt-im/Makefile ${WRKSRC}/scripts/modify-XIM \
|
|
|
|
${WRKSRC}/scripts/utf8-edit
|
2007-02-01 05:06:25 +01:00
|
|
|
@${REINPLACE_CMD} -e '/make/ d' ${WRKSRC}/IMdkit/lib/Makefile
|
2012-01-30 16:52:29 +01:00
|
|
|
@${REINPLACE_CMD} -e 's,/usr/X11R6/lib,${LOCALBASE}/lib,' ${WRKSRC}/im-client/Makefile
|
2017-03-05 16:03:25 +01:00
|
|
|
|
2009-02-01 02:10:45 +01:00
|
|
|
post-build:
|
|
|
|
.if !defined(DEBUG_FLAGS)
|
2009-12-19 22:40:33 +01:00
|
|
|
@${FIND} ${WRKSRC} -name "*.so*" | ${XARGS} ${STRIP_CMD}
|
2009-02-01 02:10:45 +01:00
|
|
|
.endif
|
|
|
|
|
2005-05-05 15:52:08 +02:00
|
|
|
post-install:
|
2009-02-01 02:10:45 +01:00
|
|
|
.if !defined(DEBUG_FLAGS)
|
2012-01-31 13:52:37 +01:00
|
|
|
.for f in gcin* gtab-merge juyin-learn phoa2* sim2trad trad2sim ts-edit tsa2d32 tsd2a32 tsin2gtab-phrase tslearn
|
2014-01-05 00:27:58 +01:00
|
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${f}
|
2005-05-12 08:51:20 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
2005-05-05 15:52:08 +02:00
|
|
|
|
2014-01-16 00:15:25 +01:00
|
|
|
.include <bsd.port.mk>
|