summaryrefslogtreecommitdiff
path: root/sysutils/bacula
diff options
context:
space:
mode:
authorxtraeme <xtraeme>2004-12-14 15:10:15 +0000
committerxtraeme <xtraeme>2004-12-14 15:10:15 +0000
commit2fa9e953f7eb8b2d5e220596e345862d2bf1c703 (patch)
tree43d8e731faa3eb366a70048caccd6a1a2a2fb32b /sysutils/bacula
parent4a596acb1eefcb52ded055418cd07b89e8b4055f (diff)
downloadpkgsrc-2fa9e953f7eb8b2d5e220596e345862d2bf1c703.tar.gz
* Remove redundant lines for PKG_OPTIONS.
* Use PGSQL_PREFIX to find postgresql*-lib prefix * USE_LANGUAGES+= c++
Diffstat (limited to 'sysutils/bacula')
-rw-r--r--sysutils/bacula/Makefile.common14
1 files changed, 5 insertions, 9 deletions
diff --git a/sysutils/bacula/Makefile.common b/sysutils/bacula/Makefile.common
index c8ddcd87af0..b6546e91c8f 100644
--- a/sysutils/bacula/Makefile.common
+++ b/sysutils/bacula/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.2 2004/12/14 14:51:07 xtraeme Exp $
+# $NetBSD: Makefile.common,v 1.3 2004/12/14 15:10:15 xtraeme Exp $
#
DISTNAME= bacula-1.36.0
@@ -12,6 +12,7 @@ COMMENT= Network Backup Solution
.include "Makefile.options"
USE_BUILDLINK3= yes
+USE_LANGUAGES+= c++
USE_PKGLOCALEDIR= yes
USE_PKGINSTALL= yes
GNU_CONFIGURE= yes
@@ -37,11 +38,13 @@ CONFIGURE_ARGS+= --with-readline=${PREFIX}/include/readline
CONFIGURE_ARGS+= --with-dir-user=${BACULA_DIR_USER} --with-dir-group=${BACULA_GROUP}
CONFIGURE_ARGS+= --with-sd-user=${BACULA_SD_USER} --with-sd-group=${BACULA_GROUP}
.if !empty(PKG_OPTIONS:Mcatalog-sqlite)
+. include "../../databases/sqlite/buildlink3.mk"
CONFIGURE_ARGS+= --with-sqlite=${BUILDLINK_PREFIX.sqlite}
BACULA_DB= sqlite
.endif
.if !empty(PKG_OPTIONS:Mcatalog-pgsql)
-CONFIGURE_ARGS+= -with-postgresql=${BUILDLINK_PREFIX.postgresql-lib}
+. include "../../mk/pgsql.buildlink3.mk"
+CONFIGURE_ARGS+= --with-postgresql=${PGSQL_PREFIX}
BACULA_DB= postgresql
.endif
@@ -69,13 +72,6 @@ RCD_SCRIPTS= bacula bacula-dir bacula-sd bacula-fd
pre-install:
${MKDIR} ${EXAMPLESDIR}
-.if !empty(PKG_OPTIONS:Mcatalog-sqlite)
-.include "../../databases/sqlite/buildlink3.mk"
-.endif
-.if !empty(PKG_OPTIONS:Mcatalog-pgsql)
-.include "../../mk/pgsql.buildlink3.mk"
-.endif
-
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/tcp_wrappers/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"