From e60237e3f7b71ef5d973706ad473011041e3a27b Mon Sep 17 00:00:00 2001 From: Christian Weisgerber Date: Tue, 18 Mar 2003 01:49:27 +0000 Subject: Use OSVERSION to check for getopt_long(), fixes INDEX build. Reported by: kris Approved by: kris --- security/libtasn1/Makefile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/security/libtasn1/Makefile b/security/libtasn1/Makefile index 12356412cf81..a9ec19a4de2d 100644 --- a/security/libtasn1/Makefile +++ b/security/libtasn1/Makefile @@ -17,12 +17,6 @@ MASTER_SITE_SUBDIR= alpha/gnutls/libtasn1 MAINTAINER= sergei@kolobov.com COMMENT= ASN.1 structure parser library -.if !exists(/usr/include/getopt.h) -LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -lgnugetopt -.endif - USE_REINPLACE= yes USE_LIBTOOL= yes INSTALLS_SHLIB= yes @@ -30,6 +24,14 @@ CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" DOCS= AUTHORS NEWS README THANKS doc/asn1.ps doc/asn1.tex doc/fdl.tex +.include + +.if ${OSVERSION} < 500041 +LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib -lgnugetopt +.endif + post-patch: .for file in asn1Coding.c asn1Decoding.c asn1Parser.c ${REINPLACE_CMD} -e 's///' ${WRKSRC}/src/${file} @@ -43,4 +45,4 @@ post-install: .endfor .endif -.include +.include -- cgit v1.2.3