aboutsummaryrefslogtreecommitdiff
path: root/net/serveez
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 14:34:09 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 14:34:09 +0000
commitdd2aad1d700941cc575e4fa69520c2737c80f9ad (patch)
treee8805cae1df2761569d4b050edb87ae1284985e3 /net/serveez
parent7982777465aaf8ab816ac5eb1413a7a369eb9f08 (diff)
downloadports-dd2aad1d700941cc575e4fa69520c2737c80f9ad.tar.gz
ports-dd2aad1d700941cc575e4fa69520c2737c80f9ad.zip
Notes
Diffstat (limited to 'net/serveez')
-rw-r--r--net/serveez/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/net/serveez/Makefile b/net/serveez/Makefile
index 7a2bb07162b2..78ba1391b8e4 100644
--- a/net/serveez/Makefile
+++ b/net/serveez/Makefile
@@ -16,8 +16,7 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
-LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt \
- guile.10:${PORTSDIR}/lang/guile
+LIB_DEPENDS= guile.10:${PORTSDIR}/lang/guile
.if !exists(/usr/bin/bzip2)
LIB_DEPENDS+= bz2.1:${PORTSDIR}/archivers/bzip2
.endif
@@ -27,10 +26,18 @@ GUILE_CONFIG?= ${LOCALBASE}/bin/guile-config
USE_GMAKE= yes
USE_LIBTOOL= yes
LIBTOOLFLAGS= --disable-ltlibs --release-ignore
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include `${GUILE_CONFIG} compile`" \
- LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt `${GUILE_CONFIG} link`"
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
INSTALLS_SHLIB= yes
MAN1= serveez.1
+CPPFLAGS+= `${GUILE_CONFIG} compile`
+LDFLAGS+= `${GUILE_CONFIG} link`
+
+.if !exists(/usr/include/getopt.h)
+LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib -lgnugetopt
+.endif
+
.include <bsd.port.mk>