diff options
Diffstat (limited to 'japanese/skkinput3/Makefile')
-rw-r--r-- | japanese/skkinput3/Makefile | 37 |
1 files changed, 16 insertions, 21 deletions
diff --git a/japanese/skkinput3/Makefile b/japanese/skkinput3/Makefile index ba2c48001eb4..3140872f7675 100644 --- a/japanese/skkinput3/Makefile +++ b/japanese/skkinput3/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: skkinput3 -# Date created: Aug 14 2002 -# Whom: KOMATSU Shinichiro <koma2@jiro.c.u-tokyo.ac.jp> -# +# Created by: KOMATSU Shinichiro <koma2@jiro.c.u-tokyo.ac.jp> # $FreeBSD$ -# PORTNAME= skkinput3 PORTVERSION= 3.0.6 @@ -13,33 +9,32 @@ MASTER_SITES= http://downloads.sourceforge.jp/skkinput3/2222/ DISTNAME= skkinput-${PORTVERSION} MAINTAINER= koma2@lovepeers.org -COMMENT= An SKK-like Japanese input method for X11 +COMMENT= SKK-like Japanese input method for X11 USE_IMAKE= yes USE_XORG= ice sm x11 xext xmu xt -OPTIONS= DBSKKD "Use ja-dbskkd-cdb as skkserver" off \ - RSKKSERV "Use ja-rskkserv as skkserver" off \ - SKK10 "Use SKK10 elisps" off +OPTIONS_DEFINE= SKK10 +OPTIONS_RADIO= RG1 +OPTIONS_RADIO_RG1= DBSKKD RSKKSERV +RG1_DESC= Skkserver Selection +DBSKKD_DESC= Use ja-dbskkd-cdb as skkserver +RSKKSERV_DESC= Use ja-rskkserv as skkserver +SKK10_DESC= Use SKK10 elisps NO_INSTALL_MANPAGES= yes -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_SKK10) +.if ${PORT_OPTIONS:MSKK10} PLIST_SUB= SKK8="@comment " SKK10="" .else PLIST_SUB= SKK8="" SKK10="@comment " .endif -# sanity check -.if defined(WITH_DBSKKD) && defined(WITH_RSKKSERV) -IGNORE= cannot define both WITH_DBSKKD and WITH_RSKKSERV simultaneously -.endif - -.if defined(WITH_DBSKKD) +.if ${PORT_OPTIONS:MDBSKKD} RUN_DEPENDS= ${LOCALBASE}/libexec/dbskkd-cdb:${PORTSDIR}/japanese/dbskkd-cdb -.elif defined(WITH_RSKKSERV) +.elif ${PORT_OPTIONS:MRSKKSERV} RUN_DEPENDS= ${LOCALBASE}/libexec/rskkserv:${PORTSDIR}/japanese/rskkserv .else RUN_DEPENDS= ${LOCALBASE}/sbin/skkserv:${PORTSDIR}/japanese/skkserv @@ -47,17 +42,17 @@ RUN_DEPENDS= ${LOCALBASE}/sbin/skkserv:${PORTSDIR}/japanese/skkserv DOCS= *.jis dot.skkinput ChangeLog -.if defined(WITH_SKK10) +.if ${PORT_OPTIONS:MSKK10} post-patch: ${REINPLACE_CMD} -e '/\(#define.*UseSkk8\)/ s/^/XCOMM /' \ -e '/XCOMM.*#define.*UseSkk10/ s/XCOMM[[:space:]]*//' \ ${WRKSRC}/Skkinput.conf .endif -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} post-install: ${MKDIR} ${DOCSDIR} cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${DOCSDIR} .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |