diff options
author | uebayasi <uebayasi> | 2005-03-07 03:16:46 +0000 |
---|---|---|
committer | uebayasi <uebayasi> | 2005-03-07 03:16:46 +0000 |
commit | 9415afa494019616c5b403225e49061a07eedfa8 (patch) | |
tree | 424d49c6dd476432ac77b403a33c78812f0eaa51 /lang/gauche/options.mk | |
parent | d85e6d62006eae18546bc455390d66b1a7d10323 (diff) | |
download | pkgsrc-9415afa494019616c5b403225e49061a07eedfa8.tar.gz |
+ Add GDBM support and enable it by default.
+ Use PKG_OPTIONS.
Diffstat (limited to 'lang/gauche/options.mk')
-rw-r--r-- | lang/gauche/options.mk | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lang/gauche/options.mk b/lang/gauche/options.mk new file mode 100644 index 00000000000..ab57f078a14 --- /dev/null +++ b/lang/gauche/options.mk @@ -0,0 +1,32 @@ +# $NetBSD: options.mk,v 1.1 2005/03/07 03:16:46 uebayasi Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.gauche +PKG_SUPPORTED_OPTIONS= gdbm multibyte +PKG_DEFAULT_OPTIONS+= gdbm multibyte + +.include "../../mk/bsd.options.mk" +.include "../../mk/bsd.prefs.mk" + +### +### GDBM extension. Modules seem to be better tested with GDBM +### than NDBM. +### +.if !empty(PKG_OPTIONS:Mgdbm) +. include "../../databases/gdbm/buildlink3.mk" +PLIST_SUBST+= USE_GDBM='' +.else +PLIST_SUBST+= USE_GDBM='@comment ' +.endif + +### +### Multibyte extension. +### +.if !empty(PKG_OPTIONS:Mmultibyte) && defined(GAUCHE_MULTIBYTE) +CONFIGURE_ARGS+= --enable-multibyte=${GAUCHE_MULTIBYTE} +.endif + +.if defined(PKG_DEVELOPER) +.PHONY: print-multibyte-options +print-multibyte-options: + ${SED} -ne '/load "/ { s|^.*load "\([^"]*\)".*$|\1|; p; }' ${WRKSRC}/test/mb-chars.scm +.endif |