freebsd-ports/chinese/gcin/Makefile

79 lines
2.5 KiB
Makefile
Raw Normal View History

# Created by: Shen Chuan-Hsing
# $FreeBSD$
PORTNAME= gcin
2018-05-21 17:36:12 +02:00
PORTVERSION= 2.8.6
CATEGORIES= chinese textproc gnome
2014-04-12 05:09:06 +02:00
MASTER_SITES= http://hyperrate.com/gcin-source/
EXTRACT_ONLY= gcin-${PORTVERSION}.tar.xz
MAINTAINER= vanilla@FreeBSD.org
COMMENT= Traditional Chinese input utility in X
2011-02-09 11:53:09 +01:00
LICENSE= LGPL21
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
HAS_CONFIGURE= YES
CONFIGURE_ARGS+= --use_gtk3=N --use_qt3=N --use_qt4=N --use_qt5=N
USE_GNOME= gtk20
USE_XORG= x11 xtst xext
INSTALLS_ICONS= YES
USE_LDCONFIG= ${PREFIX}/lib/gcin
2018-05-21 17:36:12 +02:00
OPTIONS_DEFINE= ANTHY
OPTIONS_SUB= yes
ANTHY_DESC= Japanese anthy IM module
ANTHY_BUILD_DEPENDS= ${LOCALBASE}/include/anthy/anthy.h:japanese/anthy
ANTHY_LIB_DEPENDS= libanthy.so:japanese/anthy
ANTHY_CONFIGURE_OFF= --use_anthy=N
2009-02-01 02:10:45 +01:00
post-patch:
@${REINPLACE_CMD} -e 's,&,,; 1 s,##!/bin/bash,#!/bin/sh,; \
s,-ldl,,; \
s,mandir=$$datadir,mandir=$$prefix,; \
s,/usr/share,$$prefix/share,; \
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
@${REINPLACE_CMD} -e 's,/usr/local,/usr,g' \
${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
@${REINPLACE_CMD} -e 's,bash,sh,; s/&//; s,/opt/gnome,${LOCALBASE},;' \
${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/=/ /; \
s/export/setenv/; s/$$UTF8ED/xdg-open/' \
2009-02-01 02:10:45 +01:00
${WRKSRC}/scripts/html-browser
@${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,${LOCALBASE},' \
${WRKSRC}/IMdkit/lib/Makefile ${WRKSRC}/Makefile \
${WRKSRC}/qt-im/Makefile ${WRKSRC}/scripts/modify-XIM \
${WRKSRC}/scripts/utf8-edit
@${REINPLACE_CMD} -e '/make/ d' ${WRKSRC}/IMdkit/lib/Makefile
@${REINPLACE_CMD} -e 's,/usr/X11R6/lib,${LOCALBASE}/lib,' ${WRKSRC}/im-client/Makefile
2009-02-01 02:10:45 +01:00
post-build:
.if !defined(DEBUG_FLAGS)
@${FIND} ${WRKSRC} -name "*.so*" | ${XARGS} ${STRIP_CMD}
2009-02-01 02:10:45 +01:00
.endif
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
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${f}
.endfor
.endif
2014-01-16 00:15:25 +01:00
.include <bsd.port.mk>