diff options
author | itetcu <itetcu@FreeBSD.org> | 2006-06-14 17:20:18 +0800 |
---|---|---|
committer | itetcu <itetcu@FreeBSD.org> | 2006-06-14 17:20:18 +0800 |
commit | 8952a316cb1163062053dc2df577e6aae9a47b38 (patch) | |
tree | f9135b964143c08d2f94f307ee7b965ccd3b6b9a /japanese/skkinput3/Makefile | |
parent | f8b6caf0ab6b8f58f7e6f06f8808c077e0569591 (diff) | |
download | freebsd-ports-gnome-8952a316cb1163062053dc2df577e6aae9a47b38.tar.gz freebsd-ports-gnome-8952a316cb1163062053dc2df577e6aae9a47b38.tar.zst freebsd-ports-gnome-8952a316cb1163062053dc2df577e6aae9a47b38.zip |
Use OPTIONS and convert USE_SKK10 to WITH_SKK10.
PR: ports/98906
Submitted by: maintainer
Suggested by: erwin
Diffstat (limited to 'japanese/skkinput3/Makefile')
-rw-r--r-- | japanese/skkinput3/Makefile | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/japanese/skkinput3/Makefile b/japanese/skkinput3/Makefile index 11d7a62bd5b0..b91c95b085db 100644 --- a/japanese/skkinput3/Makefile +++ b/japanese/skkinput3/Makefile @@ -16,24 +16,28 @@ COMMENT= An SKK-like Japanese input method for X11 USE_IMAKE= yes +OPTIONS= DBSKKD "Use ja-dbskkd-cdb as skkserver" off \ + RSKKSERV "Use ja-rskkserv as skkserver" off \ + SKK10 "Use SKK10 elisps" off + NO_INSTALL_MANPAGES= yes -.if defined(USE_SKK10) +.include <bsd.port.pre.mk> + +.if defined(WITH_SKK10) PLIST_SUB= SKK8="@comment " SKK10="" .else PLIST_SUB= SKK8="" SKK10="@comment " .endif -.include <bsd.port.pre.mk> - # sanity check .if defined(WITH_DBSKKD) && defined(WITH_RSKKSERV) -.error Cannot define both WITH_DBSKKD and WITH_RSKKSERV simultaneously. +IGNORE= cannot define both WITH_DBSKKD and WITH_RSKKSERV simultaneously .endif -.if defined(WITH_DBSKKD) || exists(${LOCALBASE}/libexec/dbskkd-cdb) && !defined(WITH_RSKKSERV) +.if defined(WITH_DBSKKD) RUN_DEPENDS= ${LOCALBASE}/libexec/dbskkd-cdb:${PORTSDIR}/japanese/dbskkd-cdb -.elif defined(WITH_RSKKSERV) || exists(${LOCALBASE}/libexec/rskkserv) && !defined(WITH_DBSKKD) +.elif defined(WITH_RSKKSERV) RUN_DEPENDS= ${LOCALBASE}/libexec/rskkserv:${PORTSDIR}/japanese/rskkserv .else RUN_DEPENDS= ${LOCALBASE}/sbin/skkserv:${PORTSDIR}/japanese/skkserv @@ -41,7 +45,7 @@ RUN_DEPENDS= ${LOCALBASE}/sbin/skkserv:${PORTSDIR}/japanese/skkserv DOCS= *.jis dot.skkinput ChangeLog -.if defined(USE_SKK10) +.if defined(WITH_SKK10) post-patch: ${REINPLACE_CMD} -e '/\(#define.*UseSkk8\)/ s/^/XCOMM /' \ -e '/XCOMM.*#define.*UseSkk10/ s/XCOMM[[:space:]]*//' \ |