2006-03-29 15:32:26 +00:00
|
|
|
# New ports collection makefile for: oxim
|
|
|
|
# Date created: Mar 19 2006
|
|
|
|
# Whom: Rong-En Fan <rafan@infor.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= oxim
|
2009-12-27 07:19:03 +00:00
|
|
|
PORTVERSION= 1.2.2
|
2010-05-31 02:01:56 +00:00
|
|
|
PORTREVISION= 3
|
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
|
|
|
|
2009-12-28 23:57:05 +00:00
|
|
|
MAINTAINER= clsung@FreeBSD.org
|
2006-03-29 15:32:26 +00:00
|
|
|
COMMENT= Open X Input Method server
|
|
|
|
|
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
|
|
|
|
2006-05-22 05:52:06 +00:00
|
|
|
OPTIONS= GTK2 "Enable GTK2 input method module" On \
|
|
|
|
CHEWING "Enable Chewing input module" On \
|
2009-12-27 07:19:03 +00:00
|
|
|
UNICODE "Enable Unicode input module" On
|
2006-03-29 15:32:26 +00:00
|
|
|
|
|
|
|
USE_ICONV= yes
|
2008-07-22 21:55:48 +00:00
|
|
|
USE_XORG= x11 xft xpm xtst
|
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
|
2006-03-29 15:32:26 +00:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -liconv
|
2006-05-22 05:52:06 +00:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" \
|
2006-03-29 15:32:26 +00:00
|
|
|
LDFLAGS="${LDFLAGS}"
|
|
|
|
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
|
|
|
|
2009-12-27 07:19:03 +00:00
|
|
|
MAN1= oxim.1
|
|
|
|
|
2006-03-29 15:32:26 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITHOUT_GTK2)
|
|
|
|
CONFIGURE_ARGS+= --disable-gtk-immodule
|
|
|
|
PLIST_SUB+= GTK2="@comment "
|
|
|
|
.else
|
|
|
|
USE_GNOME+= gtk20
|
|
|
|
CONFIGURE_ARGS+= --enable-gtk-immodule
|
|
|
|
PLIST_SUB+= GTK2=""
|
|
|
|
.endif
|
|
|
|
|
2006-05-22 05:52:06 +00:00
|
|
|
.if !defined(WITHOUT_CHEWING)
|
|
|
|
# make sure we have the required libchewing
|
2009-12-27 07:19:03 +00:00
|
|
|
BUILD_DEPENDS+= zh-libchewing>=0.3.2:${PORTSDIR}/chinese/libchewing
|
|
|
|
RUN_DEPENDS+= zh-libchewing>=0.3.2:${PORTSDIR}/chinese/libchewing
|
2006-05-22 05:52:06 +00:00
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --enable-chewing-module
|
|
|
|
CONFIGURE_ENV+= CHEWING_CFLAGS=-I${LOCALBASE}/include
|
|
|
|
PLIST_SUB+= CHEWING=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-chewing-module
|
|
|
|
PLIST_SUB+= CHEWING="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_UNICODE)
|
|
|
|
CONFIGURE_ARGS+= --enable-unicode-module
|
|
|
|
PLIST_SUB+= UNICODE=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-unicode-module
|
|
|
|
PLIST_SUB+= UNICODE="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-03-29 15:32:26 +00:00
|
|
|
# TODO WITHOUT_NLS knob
|
|
|
|
#.if !defined(WITHOUT_NLS)
|
|
|
|
USE_GETTEXT= yes
|
2006-05-22 05:52:06 +00:00
|
|
|
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -lintl"
|
2006-03-29 15:32:26 +00:00
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
#.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
|
|
|
|
2006-03-29 15:32:26 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(WITHOUT_GTK2)
|
2007-08-04 11:41:30 +00:00
|
|
|
@gtk-query-immodules-2.0 > ${PREFIX}/etc/gtk-2.0/gtk.immodules
|
2006-03-29 15:32:26 +00:00
|
|
|
.endif
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${ECHO} To display this message again, type ${PKG_INFO} -D ${PKGNAME}
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|