2003-01-07 14:44:33 +01:00
|
|
|
# New ports collection makefile for: libtasn1
|
|
|
|
# Date created: 15 Nov 2002
|
|
|
|
# Whom: Sergei Kolobov <sergei@kolobov.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libtasn1
|
|
|
|
PORTVERSION= 0.1.2
|
|
|
|
CATEGORIES= security
|
2003-02-15 12:18:08 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNUPG} \
|
2003-01-07 14:44:33 +01:00
|
|
|
http://www.mirrors.wiretapped.net/security/network-security/gnutls/libtasn1/ \
|
2003-01-28 23:19:12 +01:00
|
|
|
ftp://ftp.mirrors.wiretapped.net/security/network-security/gnutls/libtasn1/ \
|
|
|
|
ftp://ftp.gnutls.org/pub/gnutls/libtasn1/
|
2003-02-15 12:18:08 +01:00
|
|
|
MASTER_SITE_SUBDIR= alpha/gnutls/libtasn1
|
2003-01-07 14:44:33 +01:00
|
|
|
|
|
|
|
MAINTAINER= sergei@kolobov.com
|
|
|
|
|
2003-01-28 23:19:12 +01:00
|
|
|
LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
|
2003-01-07 14:44:33 +01:00
|
|
|
|
2003-01-28 23:19:12 +01:00
|
|
|
USE_REINPLACE= yes
|
2003-01-07 14:44:33 +01:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
INSTALLS_SHLIB= yes
|
2003-01-28 23:19:12 +01:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lgnugetopt
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2003-01-07 14:44:33 +01:00
|
|
|
|
|
|
|
DOCS= AUTHORS NEWS README THANKS
|
|
|
|
DOCS2= asn1.ps asn1.tex fdl.tex
|
|
|
|
|
2003-01-28 23:19:12 +01:00
|
|
|
post-patch:
|
|
|
|
.for file in asn1Coding.c asn1Decoding.c asn1Parser.c
|
|
|
|
${REINPLACE_CMD} -e 's/<malloc.h>/<stdlib.h>/' ${WRKSRC}/src/${file}
|
|
|
|
.endfor
|
|
|
|
|
2003-01-07 14:44:33 +01:00
|
|
|
post-install:
|
2003-01-28 23:19:12 +01:00
|
|
|
${RM} -f ${PREFIX}/lib/libtasn1.la
|
2003-01-07 14:44:33 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for file in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.for file in ${DOCS2}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|