aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2013-05-04 01:42:12 +0800
committerhrs <hrs@FreeBSD.org>2013-05-04 01:42:12 +0800
commit79323f93d3c8ecd32ba4875fcdae3dfbea82f329 (patch)
tree667b25930c1a9c3e6e64c6979d5dd3662ebacc5c /japanese
parent167a60dd92403b5038389fd1fdf32c77155365a8 (diff)
downloadfreebsd-ports-gnome-79323f93d3c8ecd32ba4875fcdae3dfbea82f329.tar.gz
freebsd-ports-gnome-79323f93d3c8ecd32ba4875fcdae3dfbea82f329.tar.zst
freebsd-ports-gnome-79323f93d3c8ecd32ba4875fcdae3dfbea82f329.zip
- Trim old-style header.
- Use OPTIONS_DEFINE.
Diffstat (limited to 'japanese')
-rw-r--r--japanese/onew/Makefile46
1 files changed, 22 insertions, 24 deletions
diff --git a/japanese/onew/Makefile b/japanese/onew/Makefile
index df9292a73562..1de9ce65249b 100644
--- a/japanese/onew/Makefile
+++ b/japanese/onew/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: ONEW
-# Date created: 5 Sep 1997
-# Whom: Satoshi TAOKA <taoka@FreeBSD.org>
-#
+# Created by: Satoshi TAOKA <taoka@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= onew
PORTVERSION= 2.2.10
@@ -20,13 +16,15 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
ALL_TARGET=
PORTDOCS= README.ONEW
-OPTIONS= CANNA "Build Canna-backend library" on \
- CANNA_FREEWNN "Build Canna+FreeWnn-backend library" on \
- CANNA_WNN6 "Build Canna+Wnn6-backend library" on \
- CANNA_WNN7 "Build Canna+Wnn7-backend library" on \
- FREEWNN "Build FreeWnn-backend library" on \
- WNN6 "Build Wnn6-backend library" on \
- WNN7 "Build Wnn7-backend library" on
+OPTIONS_DEFINE= CANNA CANNA_FREEWNN CANNA_WNN6 CANNA_WNN7 FREEWNN WNN6 WNN7
+OPTIONS_DEFAULT=CANNA CANNA_FREEWNN CANNA_WNN6 CANNA_WNN7 FREEWNN WNN6 WNN7
+CANNA_DESC= Build Canna-backend library
+CANNA_FREEWNN_DESC= Build Canna+FreeWnn-backend library
+CANNA_WNN6_DESC= Build Canna+Wnn6-backend library
+CANNA_WNN7_DESC= Build Canna+Wnn7-backend library
+FREEWNN_DESC= Build FreeWnn-backend library
+WNN6_DESC= Build Wnn6-backend library
+WNN7_DESC= Build Wnn7-backend library
LIB_DEPENDS.CANNA= canna.1:${PORTSDIR}/japanese/canna-lib
BUILD_DEPENDS.CANNA_FREEWNN= ${BUILD_DEPENDS.FREEWNN}
@@ -42,16 +40,16 @@ RK_DIR.WNN6= ${LOCALBASE}/lib/wnn/ja_JP/rk.wnn6
BUILD_DEPENDS.WNN7= ${BUILD_DEPENDS.FREEWNN}
RK_DIR.WNN7= ${LOCALBASE}/lib/wnn/ja_JP/rk.wnn7
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.for I in WITH_CANNA WITH_FREEWNN WITH_WNN6 WITH_WNN7 WITH_CANNA_FREEWNN WITH_CANNA_WNN6 WITH_CANNA_WNN7
-.if defined(${I})
-INPUT_METHOD+= ${I:S/^WITH_//:S/_/+/g:L}
-SUB_FILES+= ONEW_CONF-for-${I:S/^WITH_//:S/_/+/g:L}
-PLIST_FILES+= lib/libonew-${I:S/^WITH_//:S/_/+/g:L}.a
-LIB_DEPENDS+= ${LIB_DEPENDS.${I:S/^WITH_//}}
-BUILD_DEPENDS+= ${BUILD_DEPENDS.${I:S/^WITH_//}}
-RK_DIR+= ${RK_DIR.${I:S/^WITH_//}}
+.for I in ${OPTIONS_DEFINE:NDOCS}
+.if ${PORT_OPTIONS:M${I}}
+INPUT_METHOD+= ${I:S/_/+/g:L}
+SUB_FILES+= ONEW_CONF-for-${I:S/_/+/g:L}
+PLIST_FILES+= lib/libonew-${I:S/_/+/g:L}.a
+LIB_DEPENDS+= ${LIB_DEPENDS.${I}}
+BUILD_DEPENDS+= ${BUILD_DEPENDS.${I}}
+RK_DIR+= ${RK_DIR.${I}}
.endif
.endfor
@@ -68,9 +66,9 @@ do-install:
.for I in ${INPUT_METHOD}
${INSTALL_DATA} ${WRKDIR}/libonew-${I}.a ${PREFIX}/lib/libonew-${I}.a
.endfor
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.ONEW ${DOCSDIR}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>