summaryrefslogtreecommitdiff
path: root/www/cadaver/Makefile
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 14:42:53 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 14:42:53 +0000
commitadf17e7bcfc139eed231a64d0504f277687359d1 (patch)
treed2270bcb466e37e407bc067a23824cecdaca639a /www/cadaver/Makefile
parentConditionalize libgnugetopt dependencies. (diff)
Conditionalize libgnugetopt dependencies.
PR: ports/47752 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=74504
Diffstat (limited to 'www/cadaver/Makefile')
-rw-r--r--www/cadaver/Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/www/cadaver/Makefile b/www/cadaver/Makefile
index b518fb1417dc..91fc5eaf0a49 100644
--- a/www/cadaver/Makefile
+++ b/www/cadaver/Makefile
@@ -13,20 +13,26 @@ MASTER_SITES= http://www.webdav.org/cadaver/
MAINTAINER= ports@FreeBSD.org
-LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt \
- expat.4:${PORTSDIR}/textproc/expat2 \
+LIB_DEPENDS= expat.4:${PORTSDIR}/textproc/expat2 \
neon.23:${PORTSDIR}/www/neon
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --enable-netrc \
--with-expat
ALL_TARGET= cadaver
MAN1= cadaver.1
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+.if !exists(/usr/include/getopt.h)
+LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+LDFLAGS+= -lgnugetopt
+.endif
+
.if !defined(WITHOUT_OPENSSL)
USE_OPENSSL= yes
CONFIGURE_ARGS+= --with-ssl --with-force-ssl