| @@ -1,53 +1,54 @@ | | | @@ -1,53 +1,54 @@ |
1 | # $NetBSD: options.mk,v 1.17 2011/06/18 10:40:33 shattered Exp $ | | 1 | # $NetBSD: options.mk,v 1.18 2012/02/23 12:16:31 shattered Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.bacula | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.bacula |
4 | PKG_SUPPORTED_OPTIONS= bacula-static ssl python | | 4 | # bacula-static is broken -- see PR 42954 |
| | | 5 | PKG_SUPPORTED_OPTIONS= ssl python |
5 | PKG_OPTIONS_REQUIRED_GROUPS= database | | 6 | PKG_OPTIONS_REQUIRED_GROUPS= database |
6 | PKG_OPTIONS_GROUP.database= catalog-sqlite3 catalog-pgsql catalog-mysql | | 7 | PKG_OPTIONS_GROUP.database= catalog-sqlite3 catalog-pgsql catalog-mysql |
7 | PKG_SUGGESTED_OPTIONS= catalog-sqlite3 | | 8 | PKG_SUGGESTED_OPTIONS= catalog-sqlite3 |
8 | | | 9 | |
9 | .include "../../mk/bsd.options.mk" | | 10 | .include "../../mk/bsd.options.mk" |
10 | | | 11 | |
11 | .if !empty(PKG_OPTIONS:Mcatalog-sqlite3) | | 12 | .if !empty(PKG_OPTIONS:Mcatalog-sqlite3) |
12 | . include "../../databases/sqlite3/buildlink3.mk" | | 13 | . include "../../databases/sqlite3/buildlink3.mk" |
13 | CONFIGURE_ARGS+= --with-sqlite3=${BUILDLINK_PREFIX.sqlite3} | | 14 | CONFIGURE_ARGS+= --with-sqlite3=${BUILDLINK_PREFIX.sqlite3} |
14 | BACULA_DB= sqlite3 | | 15 | BACULA_DB= sqlite3 |
15 | .elif !empty(PKG_OPTIONS:Mcatalog-pgsql) | | 16 | .elif !empty(PKG_OPTIONS:Mcatalog-pgsql) |
16 | . include "../../mk/pgsql.buildlink3.mk" | | 17 | . include "../../mk/pgsql.buildlink3.mk" |
17 | CONFIGURE_ARGS+= --with-postgresql=${PGSQL_PREFIX} | | 18 | CONFIGURE_ARGS+= --with-postgresql=${PGSQL_PREFIX} |
18 | BACULA_DB= postgresql | | 19 | BACULA_DB= postgresql |
19 | .elif !empty(PKG_OPTIONS:Mcatalog-mysql) | | 20 | .elif !empty(PKG_OPTIONS:Mcatalog-mysql) |
20 | . include "../../mk/mysql.buildlink3.mk" | | 21 | . include "../../mk/mysql.buildlink3.mk" |
21 | CONFIGURE_ARGS+= --with-mysql=${PREFIX} | | 22 | CONFIGURE_ARGS+= --with-mysql=${PREFIX} |
22 | BACULA_DB= mysql | | 23 | BACULA_DB= mysql |
23 | .endif | | 24 | .endif |
24 | | | 25 | |
25 | .if !empty(PKG_OPTIONS:Mpython) | | 26 | .if !empty(PKG_OPTIONS:Mpython) |
26 | . include "../../lang/python/application.mk" | | 27 | . include "../../lang/python/application.mk" |
27 | . include "${PYPKGSRCDIR}/buildlink3.mk" | | 28 | . include "${PYPKGSRCDIR}/buildlink3.mk" |
28 | CONFIGURE_ARGS+= --with-python=yes | | 29 | CONFIGURE_ARGS+= --with-python=yes |
29 | CONFIGURE_ENV+= PYVERSSUFFIX=${PYVERSSUFFIX} | | 30 | CONFIGURE_ENV+= PYVERSSUFFIX=${PYVERSSUFFIX} |
30 | # we can't use REPLACE_INTERPRETER here because ./configure fills in the | | 31 | # we can't use REPLACE_INTERPRETER here because ./configure fills in the |
31 | # python path and the replace-interpreter stage happens before that. | | 32 | # python path and the replace-interpreter stage happens before that. |
32 | SUBST_CLASSES+= python | | 33 | SUBST_CLASSES+= python |
33 | SUBST_MESSAGE.python= Fixing Python interpreter path. | | 34 | SUBST_MESSAGE.python= Fixing Python interpreter path. |
34 | SUBST_STAGE.python= post-configure | | 35 | SUBST_STAGE.python= post-configure |
35 | SUBST_FILES.python= scripts/dvd-handler | | 36 | SUBST_FILES.python= scripts/dvd-handler |
36 | SUBST_SED.python= -e '1s,^\#!.*,\#! ${PYTHONBIN},' | | 37 | SUBST_SED.python= -e '1s,^\#!.*,\#! ${PYTHONBIN},' |
37 | .endif | | 38 | .endif |
38 | | | 39 | |
39 | .if !empty(PKG_OPTIONS:Mbacula-static) | | 40 | .if !empty(PKG_OPTIONS:Mbacula-static) |
40 | CONFIGURE_ARGS+= --enable-static-cons | | 41 | CONFIGURE_ARGS+= --enable-static-cons |
41 | CONFIGURE_ARGS+= --enable-static-dir | | 42 | CONFIGURE_ARGS+= --enable-static-dir |
42 | CONFIGURE_ARGS+= --enable-static-fd | | 43 | CONFIGURE_ARGS+= --enable-static-fd |
43 | CONFIGURE_ARGS+= --enable-static-sd | | 44 | CONFIGURE_ARGS+= --enable-static-sd |
44 | CONFIGURE_ARGS+= --enable-static-tools | | 45 | CONFIGURE_ARGS+= --enable-static-tools |
45 | PLIST_SUBST+= STATIC= | | 46 | PLIST_SUBST+= STATIC= |
46 | .else | | 47 | .else |
47 | PLIST_SUBST+= STATIC="@comment " | | 48 | PLIST_SUBST+= STATIC="@comment " |
48 | .endif | | 49 | .endif |
49 | | | 50 | |
50 | .if !empty(PKG_OPTIONS:Mssl) | | 51 | .if !empty(PKG_OPTIONS:Mssl) |
51 | . include "../../security/openssl/buildlink3.mk" | | 52 | . include "../../security/openssl/buildlink3.mk" |
52 | CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl} | | 53 | CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl} |
53 | .endif | | 54 | .endif |