diff options
author | lkoeller <lkoeller@FreeBSD.org> | 2003-10-22 18:59:26 +0000 |
---|---|---|
committer | lkoeller <lkoeller@FreeBSD.org> | 2003-10-22 18:59:26 +0000 |
commit | bb734e096ffafa572cc8985f0d34be188eed2e46 (patch) | |
tree | f7cde02b1a748d6ffef32355765d73dd4e33a7c3 | |
parent | 243046ef00164254a800f99033194679414de32d (diff) | |
download | FreeBSD-ports-bb734e096ffafa572cc8985f0d34be188eed2e46.zip FreeBSD-ports-bb734e096ffafa572cc8985f0d34be188eed2e46.tar.gz |
o) Respect CFLAGS and Co (Thanks to "Dan Langille" <dan@langille.org>)
Submitted by: dan@langille.org
-rw-r--r-- | sysutils/bacula-server/Makefile | 8 | ||||
-rw-r--r-- | sysutils/bacula/Makefile | 8 |
2 files changed, 14 insertions, 2 deletions
diff --git a/sysutils/bacula-server/Makefile b/sysutils/bacula-server/Makefile index ba7b2c9..bb49196 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 ba7b2c9..bb49196 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 |