freebsd-ports/security/polarssl13/Makefile
2016-10-31 11:33:46 +00:00

37 lines
826 B
Makefile

# $FreeBSD$
PORTNAME= polarssl
PORTVERSION= 1.3.18
DISTVERSIONSUFFIX= -gpl
CATEGORIES= security devel
MASTER_SITES= https://polarssl.org/download/
PKGNAMESUFFIX= 13
DISTNAME= mbedtls-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
MAINTAINER= tijl@FreeBSD.org
COMMENT= SSL/TLS and cryptography library
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
ALL_TARGET= no_test
MAKE_ENV= SHARED=1
USES= cpe gmake tar:tgz
USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/mbedtls-${PORTVERSION}
CONFLICTS= polarssl-[0-9]*
post-patch:
@${REINPLACE_CMD} \
-e 's/PREFIX/NAMEPREFIX/' \
-e 's/$$(DESTDIR)/&$$(PREFIX)/' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} 's/-fpic//' ${WRKSRC}/library/Makefile
post-install:
${FIND} ${STAGEDIR}${PREFIX}/bin ${STAGEDIR}${PREFIX}/lib -type f | \
${XARGS} ${STRIP_CMD}
.include <bsd.port.mk>