| @@ -1,36 +1,36 @@ | | | @@ -1,36 +1,36 @@ |
1 | # $NetBSD: options.mk,v 1.1.1.1 2008/08/09 21:22:11 bjs Exp $ | | 1 | # $NetBSD: options.mk,v 1.2 2008/08/28 07:39:49 obache Exp $ |
2 | # | | 2 | # |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.libslang2 | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.libslang2 |
4 | PKG_SUPPORTED_OPTIONS= png oniguruma pcre | | 4 | PKG_SUPPORTED_OPTIONS= png oniguruma pcre |
5 | | | 5 | |
6 | .include "../../mk/bsd.options.mk" | | 6 | .include "../../mk/bsd.options.mk" |
7 | | | 7 | |
8 | PLIST_VARS= ${PKG_SUPPORTED_OPTIONS} | | 8 | PLIST_VARS= ${PKG_SUPPORTED_OPTIONS} |
9 | .for var in ${PLIST_VARS} | | | |
10 | PLIST.${var}= yes | | | |
11 | .endfor | | | |
12 | | | 9 | |
13 | .if !empty(PKG_OPTIONS:Mpng) | | 10 | .if !empty(PKG_OPTIONS:Mpng) |
14 | CONFIGURE_ARGS+= --with-png=${BUILDLINK_PREFIX.png} | | 11 | CONFIGURE_ARGS+= --with-png=${BUILDLINK_PREFIX.png} |
| | | 12 | PLIST.png= yes |
15 | . include "../../graphics/png/buildlink3.mk" | | 13 | . include "../../graphics/png/buildlink3.mk" |
16 | .else | | 14 | .else |
17 | CONFIGURE_ARGS+= --without-png | | 15 | CONFIGURE_ARGS+= --without-png |
18 | .endif | | 16 | .endif |
19 | | | 17 | |
20 | .if !empty(PKG_OPTIONS:Mpcre) | | 18 | .if !empty(PKG_OPTIONS:Mpcre) |
21 | CONFIGURE_ARGS+= --with-pcre=${BUILDLINK_PREFIX.pcre} | | 19 | CONFIGURE_ARGS+= --with-pcre=${BUILDLINK_PREFIX.pcre} |
| | | 20 | PLIST.pcre= yes |
22 | . include "../../devel/pcre/buildlink3.mk" | | 21 | . include "../../devel/pcre/buildlink3.mk" |
23 | .else | | 22 | .else |
24 | CONFIGURE_ARGS+= --without-pcre | | 23 | CONFIGURE_ARGS+= --without-pcre |
25 | .endif | | 24 | .endif |
26 | | | 25 | |
27 | .if !empty(PKG_OPTIONS:Moniguruma) | | 26 | .if !empty(PKG_OPTIONS:Moniguruma) |
28 | CONFIGURE_ARGS+= --with-onig=${BUILDLINK_PREFIX.oniguruma} | | 27 | CONFIGURE_ARGS+= --with-onig=${BUILDLINK_PREFIX.oniguruma} |
| | | 28 | PLIST.oniguruma= yes |
29 | . include "../../textproc/oniguruma/buildlink3.mk" | | 29 | . include "../../textproc/oniguruma/buildlink3.mk" |
30 | .else | | 30 | .else |
31 | CONFIGURE_ARGS+= --without-onig | | 31 | CONFIGURE_ARGS+= --without-onig |
32 | .endif | | 32 | .endif |
33 | | | 33 | |
34 | .if empty(PKG_OPTIONS:Moniguruma) && empty(PKG_OPTIONS:Mpcre) | | 34 | .if empty(PKG_OPTIONS:Moniguruma) && empty(PKG_OPTIONS:Mpcre) |
35 | USE_FEATURES+= regcomp | | 35 | USE_FEATURES+= regcomp |
36 | .endif | | 36 | .endif |