summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorLars Koeller <lkoeller@FreeBSD.org>2003-10-22 18:59:26 +0000
committerLars Koeller <lkoeller@FreeBSD.org>2003-10-22 18:59:26 +0000
commita10a95003655b39d43c699d92e648901964183f2 (patch)
treec1e17b9260cf063e572dbfe79e65b4e6a81c5aa8 /sysutils
parentPORTREVISION may not contain a hyphen. (diff)
o) Respect CFLAGS and Co (Thanks to "Dan Langille" <dan@langille.org>)
Submitted by: dan@langille.org
Notes
Notes: svn path=/head/; revision=91906
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/bacula-server/Makefile8
-rw-r--r--sysutils/bacula/Makefile8
2 files changed, 14 insertions, 2 deletions
diff --git a/sysutils/bacula-server/Makefile b/sysutils/bacula-server/Makefile
index ba7b2c95f33f..bb491962710b 100644
--- a/sysutils/bacula-server/Makefile
+++ b/sysutils/bacula-server/Makefile
@@ -7,7 +7,7 @@
PORTNAME= bacula
PORTVERSION= 1.32b
-#PORTREVISION= 1
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= bacula
@@ -15,10 +15,13 @@ MASTER_SITE_SUBDIR= bacula
MAINTAINER= Lars.Koeller@Uni-Bielefeld.DE
COMMENT= The network backup solution
+USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-tcp-wrappers=/usr/lib \
--enable-smartalloc \
--with-working-dir=/var/db/bacula
+CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
# Default is full build with sqlite
.if defined(WITH_CLIENT_ONLY)
@@ -61,6 +64,9 @@ pre-everything::
@${ECHO_MSG} "===> Building file daemon only."
.endif
+post-patch:
+ @${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_CFLAGS}|g' ${WRKSRC}/configure
+
post-install:
.if defined(WITH_CLIENT_ONLY)
# don't know how to make it better
diff --git a/sysutils/bacula/Makefile b/sysutils/bacula/Makefile
index ba7b2c95f33f..bb491962710b 100644
--- a/sysutils/bacula/Makefile
+++ b/sysutils/bacula/Makefile
@@ -7,7 +7,7 @@
PORTNAME= bacula
PORTVERSION= 1.32b
-#PORTREVISION= 1
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= bacula
@@ -15,10 +15,13 @@ MASTER_SITE_SUBDIR= bacula
MAINTAINER= Lars.Koeller@Uni-Bielefeld.DE
COMMENT= The network backup solution
+USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-tcp-wrappers=/usr/lib \
--enable-smartalloc \
--with-working-dir=/var/db/bacula
+CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
# Default is full build with sqlite
.if defined(WITH_CLIENT_ONLY)
@@ -61,6 +64,9 @@ pre-everything::
@${ECHO_MSG} "===> Building file daemon only."
.endif
+post-patch:
+ @${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_CFLAGS}|g' ${WRKSRC}/configure
+
post-install:
.if defined(WITH_CLIENT_ONLY)
# don't know how to make it better