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 | |
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')
-rw-r--r-- | japanese/skkinput3/Makefile | 18 | ||||
-rw-r--r-- | japanese/skkinput3/pkg-plist | 10 |
2 files changed, 16 insertions, 12 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:]]*//' \ diff --git a/japanese/skkinput3/pkg-plist b/japanese/skkinput3/pkg-plist index 94b296899bc6..358e88a461c0 100644 --- a/japanese/skkinput3/pkg-plist +++ b/japanese/skkinput3/pkg-plist @@ -13,8 +13,8 @@ lib/X11/skkinput3/skk-startup.el %%SKK10%%lib/X11/skkinput3/skk-server.el %%SKK10%%lib/X11/skkinput3/skk-vars.el @dirrm lib/X11/skkinput3 -%%PORTDOCS%%share/doc/skkinput3/ChangeLog -%%PORTDOCS%%share/doc/skkinput3/README-lisp.jis -%%PORTDOCS%%share/doc/skkinput3/README.jis -%%PORTDOCS%%share/doc/skkinput3/dot.skkinput -%%PORTDOCS%%@dirrm share/doc/skkinput3 +%%PORTDOCS%%%%DOCSDIR%%/ChangeLog +%%PORTDOCS%%%%DOCSDIR%%/README-lisp.jis +%%PORTDOCS%%%%DOCSDIR%%/README.jis +%%PORTDOCS%%%%DOCSDIR%%/dot.skkinput +%%PORTDOCS%%@dirrm %%DOCSDIR%% |