aboutsummaryrefslogtreecommitdiff
path: root/textproc/uim
diff options
context:
space:
mode:
authorMANTANI Nobutaka <nobutaka@FreeBSD.org>2006-07-10 02:06:29 +0000
committerMANTANI Nobutaka <nobutaka@FreeBSD.org>2006-07-10 02:06:29 +0000
commita25a39a9fa1e9c7ea07a08578930e3216a0f0b4d (patch)
tree554415409e51a32cce7a8ae6bfe0528b7e3163ed /textproc/uim
parent5301980440194d119d187371ae8a73c50e18b9b3 (diff)
downloadports-a25a39a9fa1e9c7ea07a08578930e3216a0f0b4d.tar.gz
ports-a25a39a9fa1e9c7ea07a08578930e3216a0f0b4d.zip
Notes
Diffstat (limited to 'textproc/uim')
-rw-r--r--textproc/uim/Makefile29
-rw-r--r--textproc/uim/pkg-plist4
2 files changed, 25 insertions, 8 deletions
diff --git a/textproc/uim/Makefile b/textproc/uim/Makefile
index 0c6a892c736e..eccbb76e74d8 100644
--- a/textproc/uim/Makefile
+++ b/textproc/uim/Makefile
@@ -9,36 +9,53 @@ PORTNAME= uim
PORTVERSION= 1.1.1
CATEGORIES?= textproc
MASTER_SITES= http://uim.freedesktop.org/releases/
+.if !defined(UIM_SLAVE) && defined(WITHOUT_X11)
+PKGNAMESUFFIX= -nox11
+.endif
MAINTAINER= nobutaka@FreeBSD.org
COMMENT?= Input method library
-USE_X_PREFIX= yes
INSTALLS_SHLIB= yes
WANT_GNOME= yes
USE_GNOME+= gnometarget glib20
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:15
+USE_GETTEXT= yes
USE_ICONV= yes
GNU_CONFIGURE= yes
-.if !defined(UIM_SLAVE)
-USE_GNOME+= gtk20
-.endif
+.if !defined(WITHOUT_X11)
+USE_X_PREFIX= yes
LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft
+CONFIGURE_ARGS+= --with-x --with-xft
+.endif
.if !defined(UIM_SLAVE)
-CONFIGURE_ARGS= --enable-emacs --with-gtk2
+.if !defined(WITHOUT_X11)
+USE_GNOME+= gtk20
+CONFIGURE_ARGS+= --with-gtk2
+.endif
+CONFIGURE_ARGS+= --enable-emacs
.endif
+
CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
.if !defined(UIM_SLAVE)
+.if !defined(WITHOUT_X11)
MAN1= uim-xim.1
+.endif
DOCSDIR_JA= ${PREFIX}/share/doc/ja/uim
PLIST_SUB= DOCSDIR_JA="${DOCSDIR_JA:S,^${PREFIX}/,,}"
.endif
+.if defined(WITHOUT_X11)
+PLIST_SUB+= X11="@comment "
+.else
+PLIST_SUB+= X11=""
+.endif
+
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
@@ -52,7 +69,7 @@ BUILD_DEPENDS+= ${LOCALBASE}/bin/perl:${PORTSDIR}/lang/perl5
CONFIGURE_ENV+= INTLTOOL_PERL="${LOCALBASE}/bin/perl"
.endif
-.for _x in gtk2 qt gnome2 anthy canna m17nlib prime scim dict
+.for _x in x xft gtk2 qt gnome2 anthy canna m17nlib prime scim dict
.if ${CONFIGURE_ARGS:M--with-${_x}} == ""
CONFIGURE_ARGS+=--without-${_x}
.endif
diff --git a/textproc/uim/pkg-plist b/textproc/uim/pkg-plist
index 75a1ef6e7cfc..b672612753ff 100644
--- a/textproc/uim/pkg-plist
+++ b/textproc/uim/pkg-plist
@@ -4,7 +4,7 @@ bin/uim-fep
bin/uim-fep-tick
bin/uim-module-manager
bin/uim-sh
-bin/uim-xim
+%%X11%%bin/uim-xim
include/uim/plugin.h
include/uim/uim-compat-scm.h
include/uim/uim-custom.h
@@ -28,7 +28,7 @@ lib/uim/plugin/libuim-skk.a
lib/uim/plugin/libuim-skk.la
lib/uim/plugin/libuim-skk.so
libdata/pkgconfig/uim.pc
-libexec/uim-candwin-gtk
+%%X11%%libexec/uim-candwin-gtk
libexec/uim-helper-server
share/applications/uim.desktop
share/locale/fr/LC_MESSAGES/uim.mo