aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/emacs20-emcws/Makefile
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2002-08-27 12:51:10 +0800
committerknu <knu@FreeBSD.org>2002-08-27 12:51:10 +0800
commitd8a6059da815776b63f7a8d8e277f79cc0d24d34 (patch)
treec1b0751b5ee264d442ceacf81998c2ff99c73e25 /japanese/emacs20-emcws/Makefile
parent208a5013147aec23a5c7bf223f5bf1eb0e3d633d (diff)
downloadfreebsd-ports-gnome-d8a6059da815776b63f7a8d8e277f79cc0d24d34.tar.gz
freebsd-ports-gnome-d8a6059da815776b63f7a8d8e277f79cc0d24d34.tar.zst
freebsd-ports-gnome-d8a6059da815776b63f7a8d8e277f79cc0d24d34.zip
- Rename USE_* to WITH_*.
- Fix package generation for various options. PR: ports/41571 Submitted by: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> (MAINTAINER)
Diffstat (limited to 'japanese/emacs20-emcws/Makefile')
-rw-r--r--japanese/emacs20-emcws/Makefile54
1 files changed, 39 insertions, 15 deletions
diff --git a/japanese/emacs20-emcws/Makefile b/japanese/emacs20-emcws/Makefile
index a18087c2bc88..fce51ec939ae 100644
--- a/japanese/emacs20-emcws/Makefile
+++ b/japanese/emacs20-emcws/Makefile
@@ -32,10 +32,10 @@ USE_GMAKE= YES
EMACS_VER= 20.7
# Change these as you like.
-USE_WNN6?= YES
-USE_FREEWNN?= NO
-USE_CANNA?= YES
-USE_SJ3?= NO
+WITH_WNN6?= YES
+WITH_FREEWNN?= NO
+WITH_CANNA?= YES
+WITH_SJ3?= NO
CONFIGURE_TARGET= ${MACHINE_ARCH}--freebsd
.if !defined(NO_X11)
@@ -44,30 +44,30 @@ USE_XLIB= YES
.else
CONFIGURE_ARGS= --with-x=no --with-pop
.endif
-.if defined(USE_WNN6)
-.if (${USE_WNN6} == "yes" || ${USE_WNN6} == "YES")
+.if defined(WITH_WNN6)
+.if (${WITH_WNN6} == "yes" || ${WITH_WNN6} == "YES")
CONFIGURE_ARGS+=--with-wnn --with-wnn-includes=${LOCALBASE}/include/wnn6/wnn \
--with-wnn-libraries=${LOCALBASE}/lib/libwnn6.so
LIB_DEPENDS+= wnn6.1:${PORTSDIR}/japanese/Wnn6-lib
.endif
.endif
-.if defined(USE_FREEWNN)
-.if (${USE_FREEWNN} == "yes" || ${USE_FREEWNN} == "YES")
+.if defined(WITH_FREEWNN)
+.if (${WITH_FREEWNN} == "yes" || ${WITH_FREEWNN} == "YES")
CONFIGURE_ARGS+=--with-wnn --with-wnn-includes=${LOCALBASE}/include/wnn \
--with-wnn-libraries=${LOCALBASE}/lib/libwnn.so
LIB_DEPENDS+= wnn.0:${PORTSDIR}/japanese/FreeWnn-lib
.endif
.endif
-.if defined(USE_CANNA)
-.if (${USE_CANNA} == "yes" || ${USE_CANNA} == "YES")
+.if defined(WITH_CANNA)
+.if (${WITH_CANNA} == "yes" || ${WITH_CANNA} == "YES")
CONFIGURE_ARGS+= --with-canna \
--with-canna-includes=${LOCALBASE}/include \
--with-canna-libraries=${LOCALBASE}/lib
LIB_DEPENDS+= canna.1:${PORTSDIR}/japanese/Canna
.endif
.endif
-.if defined(USE_SJ3)
-.if (${USE_SJ3} == "yes" || ${USE_SJ3} == "YES")
+.if defined(WITH_SJ3)
+.if (${WITH_SJ3} == "yes" || ${WITH_SJ3} == "YES")
CONFIGURE_ARGS+= --with-sj3
BUILD_DEPENDS+= sj3serv:${PORTSDIR}/japanese/sj3
.endif
@@ -77,11 +77,9 @@ DOC_FILE= DOC-EMCWS-${EMACS_VER}.1
EMCWS_ELCS= busyu.el \
can-n-egg.el \
canna.el \
- canna.elc \
egg-jsymbol.el \
egg-keymap.el \
egg.el \
- egg.elc \
eggrc-sj3 \
eggrc-v41 \
eggrc-wnn \
@@ -97,8 +95,34 @@ EMCWS_ELCS= busyu.el \
sj3-client.el \
sj3-egg.el \
wnn-client.el \
- wnn-egg.el \
+ wnn-egg.el
+
+.if defined(WITH_WNN6) || defined(WITH_FREEWNN)
+.if (${WITH_WNN6} == "yes" || ${WITH_WNN6} == "YES") || (${WITH_FREEWNN} == "yes" || ${WITH_FREEWNN} == "YES")
+EMCWS_ELCS+= egg.elc \
wnn-egg.elc
+PLIST_SUB+= WITH_WNN=""
+.else
+PLIST_SUB+= WITH_WNN="@comment "
+.endif
+.endif
+.if defined(WITH_CANNA)
+.if (${WITH_CANNA} == "yes" || ${WITH_CANNA} == "YES")
+EMCWS_ELCS+= canna.elc
+PLIST_SUB+= WITH_CANNA=""
+.else
+PLIST_SUB+= WITH_CANNA="@comment "
+.endif
+.endif
+.if defined(WITH_SJ3)
+.if (${WITH_SJ3} == "yes" || ${WITH_SJ3} == "YES")
+EMCWS_ELCS+= sj3-client.elc \
+ sj3-egg.elc
+PLIST_SUB+= WITH_SJ3=""
+.else
+PLIST_SUB+= WITH_SJ3="@comment "
+.endif
+.endif
MULE_PATCHED_ELS= ange-ftp.el ange-ftp.elc \
help.el help.elc \