diff options
Diffstat (limited to 'www/cadaver/Makefile')
-rw-r--r-- | www/cadaver/Makefile | 16 |
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 |