diff options
author | Christian Weisgerber <naddy@FreeBSD.org> | 2003-03-18 01:49:27 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@FreeBSD.org> | 2003-03-18 01:49:27 +0000 |
commit | e60237e3f7b71ef5d973706ad473011041e3a27b (patch) | |
tree | c1478c6938245027a374cc8f4fa220ae7fb2719b /security/libtasn1 | |
parent | a40b937d424dce08a5126fe9c3ca156dade6d36e (diff) | |
download | ports-e60237e3f7b71ef5d973706ad473011041e3a27b.tar.gz ports-e60237e3f7b71ef5d973706ad473011041e3a27b.zip |
Notes
Diffstat (limited to 'security/libtasn1')
-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> |