diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2013-05-03 17:42:12 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2013-05-03 17:42:12 +0000 |
commit | 0b6d63fea92422deca493caebedb67562eac320d (patch) | |
tree | 667b25930c1a9c3e6e64c6979d5dd3662ebacc5c /japanese/onew/Makefile | |
parent | c9ad81276ece034f313d0e999ebbb26db0974330 (diff) | |
download | ports-0b6d63fea92422deca493caebedb67562eac320d.tar.gz ports-0b6d63fea92422deca493caebedb67562eac320d.zip |
Notes
Diffstat (limited to 'japanese/onew/Makefile')
-rw-r--r-- | japanese/onew/Makefile | 46 |
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> |