diff options
author | hrs <hrs@FreeBSD.org> | 2014-05-30 10:16:34 +0800 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2014-05-30 10:16:34 +0800 |
commit | ee2a6535a055cb16f739854dd44e8a3ef0d4d380 (patch) | |
tree | acf6b5aada34dee2d9246627d67b99ed9bdf0da9 /japanese | |
parent | a32895117ed90f2a2d4bd1e2fd00dba9e059abc9 (diff) | |
download | freebsd-ports-gnome-ee2a6535a055cb16f739854dd44e8a3ef0d4d380.tar.gz freebsd-ports-gnome-ee2a6535a055cb16f739854dd44e8a3ef0d4d380.tar.zst freebsd-ports-gnome-ee2a6535a055cb16f739854dd44e8a3ef0d4d380.zip |
- Fix build when only CANNA is defined in PORT_OPTIONS.
- Simplify PORT_OPTIONS handling.
PR: ports/190396
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/kinput2/Makefile | 47 | ||||
-rw-r--r-- | japanese/kinput2/pkg-plist | 4 |
2 files changed, 23 insertions, 28 deletions
diff --git a/japanese/kinput2/Makefile b/japanese/kinput2/Makefile index 014547c9de77..a081adbeebb9 100644 --- a/japanese/kinput2/Makefile +++ b/japanese/kinput2/Makefile @@ -16,51 +16,57 @@ MAKE_JOBS_UNSAFE= yes USES= imake USE_XORG= ice sm x11 xaw xext xmu xpm xt SUB_FILES= Kinput2.conf -PLIST_FILES= ${PLIST_ALL} +PLIST_FILES= bin/kinput2 lib/X11/app-defaults/Kinput2 man/man1/kinput2.1.gz OPTIONS_DEFINE= CANNA FREEWNN WNN6 WNN7 SJ3 TCP OPTIONS_DEFAULT=CANNA FREEWNN SJ3 -CANNA_DESC= Canna support -FREEWNN_DESC= FreeWnn support -WNN6_DESC= Wnn6 support -WNN7_DESC= Wnn7 support -SJ3_DESC= SJ3 support -TCP_DESC= TCP transport support (not needed for most cases) +TCP_DESC= TCP transport support (not needed for most cases) +CANNA_DESC= Canna support CANNA_LIB_DEPENDS= libcanna16.so:${PORTSDIR}/japanese/canna-lib -CONF.CANNA= '\#define UseCanna' \ +CANNA_CONF= '\#define UseCanna' \ CANNASRC=${LOCALBASE}/include \ CANNALIB="-L${LOCALBASE}/lib -lcanna16" +WNN6_DESC= Wnn6 support WNN6_LIB_DEPENDS= libwnn6.so:${PORTSDIR}/japanese/Wnn6-lib -CONF.WNN6= '\#define UseWnn' \ +WNN6_CONF= '\#define UseWnn' \ '\#define UseWnn6' \ WNNINCDIR=$(LOCALBASE)/include/wnn6/wnn \ WNNLIB="-L$(LOCALBASE)/lib -lwnn6 -lcrypt" +WNN6_PLIST_FILES= ${WNN_PLIST_FILES} +WNN6_PLIST_DIRS= ${WNN_PLIST_DIRS} +WNN7_DESC= Wnn7 support WNN7_LIB_DEPENDS= libwnn7.so:${PORTSDIR}/japanese/Wnn7-lib -CONF.WNN7= '\#define UseWnn' \ +WNN7_CONF= '\#define UseWnn' \ '\#define UseWnn6' \ WNNINCDIR=$(LOCALBASE)/include/wnn7/wnn \ WNNLIB="-L$(LOCALBASE)/lib -lwnn7 -lcrypt" +WNN7_PLIST_FILES= ${WNN_PLIST_FILES} +WNN7_PLIST_DIRS= ${WNN_PLIST_DIRS} +FREEWNN_DESC= FreeWnn support FREEWNN_LIB_DEPENDS= libwnn.so:${PORTSDIR}/japanese/FreeWnn-lib -CONF.FREEWNN+= '\#define UseWnn' \ +FREEWNN_CONF= '\#define UseWnn' \ WNNINCDIR=$(LOCALBASE)/include/wnn \ WNNLIB="-L$(LOCALBASE)/lib -lwnn -lcrypt" +FREEWNN_PLIST_FILES= ${WNN_PLIST_FILES} +FREEWNN_PLIST_DIRS= ${WNN_PLIST_DIRS} +SJ3_DESC= SJ3 support SJ3_LIB_DEPENDS= libsj3lib.so:${PORTSDIR}/japanese/sj3-lib -CONF.SJ3+= '\#define UseSj3' \ +SJ3_CONF= '\#define UseSj3' \ SJ3SRC=${LOCALBASE}/include \ SJ3LIB="-L${LOCALBASE}/lib -lsj3lib" \ SJ3DEF_DIR=\$${LIBDIR}/ccdef -PLIST.SJ3= lib/X11/ccdef/sjhk \ +SJ3_PLIST_FILES= lib/X11/ccdef/sjhk \ lib/X11/ccdef/sjrc \ lib/X11/ccdef/sjrk \ lib/X11/ccdef/sjsb \ lib/X11/ccdef/sjzh -PLIST.WNN= lib/X11/ccdef/ccdef.kinput2 \ +WNN_PLIST_FILES= lib/X11/ccdef/ccdef.kinput2 \ lib/X11/ccdef/rule.eggfunc \ lib/X11/ccdef/rule.func \ lib/X11/ccdef/rule.greek \ @@ -73,24 +79,17 @@ PLIST.WNN= lib/X11/ccdef/ccdef.kinput2 \ lib/X11/ccdef/rule.hiragana.egg \ lib/X11/ccdef/rule.katakana.egg \ lib/X11/ccdef/rule.kigou.egg +WNN_PLIST_DIRS= lib/X11/ccdef .include <bsd.port.options.mk> -.if ${PORT_OPTIONS:MFREEWNN} || \ - ${PORT_OPTIONS:MWNN6} || \ - ${PORT_OPTIONS:MWNN7} -PLIST_ALL+= ${PLIST.WNN} -.endif - .for I in ${OPTIONS_DEFINE:NTCP} .if ${PORT_OPTIONS:M${I}} -CONF+= ${CONF.${I}} -PLIST_ALL+= ${PLIST.${I}} +CONF+= ${${I}_CONF} .endif .endfor - .if !${PORT_OPTIONS:MTCP} -CONF+= TRANSPORTDEFS="-DNO_TCP_TRANSPORT" +CONF+= TRANSPORTDEFS="-DNO_TCP_TRANSPORT" .endif pre-configure: apply-slist diff --git a/japanese/kinput2/pkg-plist b/japanese/kinput2/pkg-plist deleted file mode 100644 index 61d8d364f2b2..000000000000 --- a/japanese/kinput2/pkg-plist +++ /dev/null @@ -1,4 +0,0 @@ -bin/kinput2 -lib/X11/app-defaults/Kinput2 -@dirrmtry lib/X11/ccdef -man/man1/kinput2.1.gz |