35 lines
716 B
Makefile
35 lines
716 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= mbedtls
|
|
PORTVERSION= 2.0.0
|
|
DISTVERSIONSUFFIX= -gpl
|
|
CATEGORIES= security devel
|
|
MASTER_SITES= https://tls.mbed.org/download/
|
|
|
|
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= gmake tar:tgz
|
|
USE_LDCONFIG= yes
|
|
|
|
WRKSRC= ${WRKDIR}/mbedtls-${PORTVERSION}
|
|
|
|
CONFLICTS_INSTALL= polarssl13-[0-9]*
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} \
|
|
-e 's/PREFIX/NAMEPREFIX/' \
|
|
-e 's/$$(DESTDIR)/&$$(PREFIX)/' \
|
|
-e '/^install:/s/[[:<:]]all//' \
|
|
${WRKSRC}/Makefile
|
|
|
|
post-install:
|
|
${FIND} ${STAGEDIR}${PREFIX}/bin ${STAGEDIR}${PREFIX}/lib -type f | \
|
|
${XARGS} ${STRIP_CMD}
|
|
|
|
.include <bsd.port.mk>
|