2013-03-21 17:39:03 +00:00
|
|
|
# Created by: Rong-En Fan <rafan@infor.org>
|
2006-03-29 15:32:26 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= oxim
|
2009-12-27 07:19:03 +00:00
|
|
|
PORTVERSION= 1.2.2
|
2014-07-02 22:10:05 +00:00
|
|
|
PORTREVISION= 6
|
2006-03-29 15:32:26 +00:00
|
|
|
CATEGORIES= chinese textproc
|
2006-09-09 16:36:59 +00:00
|
|
|
MASTER_SITES= ftp://ftp.opendesktop.org.tw/odp/OXIM/Source/ \
|
2009-12-28 23:57:05 +00:00
|
|
|
ftp://140.111.128.66/odp/OXIM/Source/
|
2006-03-29 15:32:26 +00:00
|
|
|
|
2014-12-02 22:50:10 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-03-29 15:32:26 +00:00
|
|
|
COMMENT= Open X Input Method server
|
|
|
|
|
2014-05-07 15:44:57 +00:00
|
|
|
LIB_DEPENDS= libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig
|
2006-11-03 08:10:42 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/fonts/TrueType/fireflysung.ttf:${PORTSDIR}/chinese/fireflyttf
|
2006-05-21 21:51:00 +00:00
|
|
|
|
2013-03-21 17:39:03 +00:00
|
|
|
OPTIONS_DEFINE= GTK2 CHEWING UNICODE
|
|
|
|
OPTIONS_DEFAULT= GTK2 CHEWING UNICODE
|
2015-08-19 13:29:59 +00:00
|
|
|
OPTIONS_SUB= yes
|
2013-03-21 17:39:03 +00:00
|
|
|
GTK2_DESC= GTK2 input method module
|
|
|
|
CHEWING_DESC= Chewing input module
|
|
|
|
UNICODE_DESC= Unicode input module
|
2006-03-29 15:32:26 +00:00
|
|
|
|
2015-04-05 18:38:33 +00:00
|
|
|
BROKEN= Unfetchable
|
2015-10-25 19:35:28 +00:00
|
|
|
DEPRECATED= Broken for more than 6 months
|
|
|
|
EXPIRATION_DATE= 2015-11-26
|
2014-07-02 22:10:05 +00:00
|
|
|
USES= iconv libtool pkgconfig
|
2014-05-07 15:44:57 +00:00
|
|
|
USE_XORG= x11 xft xpm xtst xext
|
2006-12-11 11:18:58 +00:00
|
|
|
WANT_GNOME= yes
|
2006-03-29 15:32:26 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2006-08-12 18:08:49 +00:00
|
|
|
USE_LDCONFIG= yes
|
- 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 17:56:05 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2014-05-07 15:44:57 +00:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB} -lfontconfig -lXext
|
2006-03-29 15:32:26 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-bimsphone-module \
|
|
|
|
--disable-static \
|
2009-12-27 10:57:58 +00:00
|
|
|
--with-conf-dir=${PREFIX}/etc/${PORTNAME} \
|
|
|
|
--enable-setup-tool=no
|
2006-09-09 16:36:59 +00:00
|
|
|
# oxim requires qinputcontextplugin.h which only exists in Debian package
|
2006-10-09 01:55:52 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-qt-immodule
|
2006-03-29 15:32:26 +00:00
|
|
|
|
2015-08-19 13:29:59 +00:00
|
|
|
GTK2_USE= GNOME=gtk20
|
|
|
|
GTK2_CONFIGURE_ENABLE= gtk-immodule
|
2006-03-29 15:32:26 +00:00
|
|
|
|
2006-05-22 05:52:06 +00:00
|
|
|
# make sure we have the required libchewing
|
2015-08-19 13:29:59 +00:00
|
|
|
CHEWING_BUILD_DEPENDS= zh-libchewing>=0.3.2:${PORTSDIR}/chinese/libchewing
|
|
|
|
CHEWING_RUN_DEPENDS= ${CHEWING_BUILD_DEPENDS}
|
|
|
|
CHEWING_CONFIGURE_ENABLE= chewing-module
|
|
|
|
CHEWING_CONFIGURE_ENV= CHEWING_CFLAGS=-I${LOCALBASE}/include
|
2006-05-22 05:52:06 +00:00
|
|
|
|
2015-08-19 13:29:59 +00:00
|
|
|
UNICODE_CONFIGURE_ENABLE= unicode-module
|
2006-05-22 05:52:06 +00:00
|
|
|
|
2006-03-29 15:32:26 +00:00
|
|
|
# TODO WITHOUT_NLS knob
|
2013-03-21 17:39:03 +00:00
|
|
|
#.if ${PORT_OPTIONS:MNLS}
|
2013-04-24 18:10:30 +00:00
|
|
|
USES+= gettext
|
2011-09-23 22:26:39 +00:00
|
|
|
LDFLAGS+= -lintl
|
2006-03-29 15:32:26 +00:00
|
|
|
#.else
|
|
|
|
#CONFIGURE_ARGS+=--disable-nls
|
|
|
|
#PLIST_SUB+= NLS="@comment "
|
|
|
|
#.endif
|
|
|
|
|
|
|
|
post-patch:
|
2007-08-04 11:41:30 +00:00
|
|
|
${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|' \
|
2006-03-29 15:32:26 +00:00
|
|
|
${WRKSRC}/src/gtk-immodule/gtkintl.h
|
2006-04-23 02:04:17 +00:00
|
|
|
|
2013-03-21 17:39:03 +00:00
|
|
|
.include <bsd.port.mk>
|