diff options
author | nobutaka <nobutaka@FreeBSD.org> | 2006-07-10 02:06:29 +0000 |
---|---|---|
committer | nobutaka <nobutaka@FreeBSD.org> | 2006-07-10 02:06:29 +0000 |
commit | 16e40d943876da54b3e986b29edb9993f2560002 (patch) | |
tree | 5c7c311d068d4cac9ef4b0aa0090bc6e3f86b5fc /japanese/uim-anthy | |
parent | f4fdf64e5b6729724d0e2d689e0eb8705d23d098 (diff) | |
download | FreeBSD-ports-16e40d943876da54b3e986b29edb9993f2560002.zip FreeBSD-ports-16e40d943876da54b3e986b29edb9993f2560002.tar.gz |
Add WITHOUT_X11 knob.
Diffstat (limited to 'japanese/uim-anthy')
-rw-r--r-- | japanese/uim-anthy/Makefile | 20 | ||||
-rw-r--r-- | japanese/uim-anthy/pkg-plist | 2 |
2 files changed, 20 insertions, 2 deletions
diff --git a/japanese/uim-anthy/Makefile b/japanese/uim-anthy/Makefile index 051f4c1..1fac630 100644 --- a/japanese/uim-anthy/Makefile +++ b/japanese/uim-anthy/Makefile @@ -6,18 +6,28 @@ # CATEGORIES= japanese +.if defined(WITHOUT_X11) +PKGNAMESUFFIX= -anthy-nox11 +.else PKGNAMESUFFIX= -anthy +.endif COMMENT= Uim plugin using Anthy input method +.if !defined(WITHOUT_X11) USE_GNOME= gtk20 +.endif LIB_DEPENDS= anthy.1:${PORTSDIR}/japanese/anthy \ uim.2:${PORTSDIR}/textproc/uim MASTERDIR= ${.CURDIR}/../../textproc/uim PKGDIR= ${.CURDIR} -CONFIGURE_ARGS= --with-anthy --with-gtk2 --enable-dict +CONFIGURE_ARGS= --with-anthy + +.if !defined(WITHOUT_X11) +CONFIGURE_ARGS+= --with-gtk2 -enable-dict +.endif UIM_SLAVE= yes @@ -26,14 +36,22 @@ EXTRA_PATCHES= ${PATCHDIR}/extra-patch-uim_Makefile.in \ do-build: (cd ${WRKSRC}/uim && ${GMAKE} libuim-anthy.la) +.if !defined(WITHOUT_X11) (cd ${WRKSRC}/helper && ${GMAKE} LIBS="-luim" uim-dict-gtk) +.endif do-install: (cd ${WRKSRC}/uim && \ ${GMAKE} uim_plugin_LTLIBRARIES=libuim-anthy.la install-uim_pluginLTLIBRARIES) +.if !defined(WITHOUT_X11) (cd ${WRKSRC}/helper && ${GMAKE} bin_PROGRAMS=uim-dict-gtk install-binPROGRAMS) +.endif post-install: +.if defined(WITHOUT_X11) + ${LOCALBASE}/bin/uim-module-manager --register anthy +.else ${X11BASE}/bin/uim-module-manager --register anthy +.endif .include "${MASTERDIR}/Makefile" diff --git a/japanese/uim-anthy/pkg-plist b/japanese/uim-anthy/pkg-plist index c84f908..1cd2ccc 100644 --- a/japanese/uim-anthy/pkg-plist +++ b/japanese/uim-anthy/pkg-plist @@ -1,4 +1,4 @@ -bin/uim-dict-gtk +%%X11%%bin/uim-dict-gtk lib/uim/plugin/libuim-anthy.a lib/uim/plugin/libuim-anthy.la lib/uim/plugin/libuim-anthy.so |