aboutsummaryrefslogtreecommitdiff
path: root/japanese/uim-anthy/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/uim-anthy/Makefile')
-rw-r--r--japanese/uim-anthy/Makefile20
1 files changed, 19 insertions, 1 deletions
diff --git a/japanese/uim-anthy/Makefile b/japanese/uim-anthy/Makefile
index 051f4c12f299..1fac63003bac 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"