diff options
-rw-r--r-- | security/libtasn1/Makefile | 16 |
1 files 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 <bsd.port.pre.mk> + +.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/<malloc.h>/<stdlib.h>/' ${WRKSRC}/src/${file} @@ -43,4 +45,4 @@ post-install: .endfor .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |