# $FreeBSD$ PORTNAME= polarssl PORTVERSION= 1.3.9 PORTREVISION= 1 DISTVERSIONSUFFIX= -gpl CATEGORIES= security devel MASTER_SITES= http://polarssl.org/download/ PKGNAMESUFFIX= 13 MAINTAINER= chris@bsdjunk.com COMMENT= Open Source embedded SSL/TLS cryptographic library LICENSE= GPLv2 ALL_TARGET= no_test USES= cpe gmake tar:tgz USE_LDCONFIG= yes WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} CONFLICTS= polarssl-[0-9]* DOCFILES= ChangeLog README.rst LICENSE BINFILES= aescrypt2 benchmark dh_client dh_genprime dh_server hello \ md5sum mpi_demo rsa_genkey rsa_sign rsa_verify selftest \ sha1sum sha2sum ssl_cert_test ssl_client1 ssl_client2 \ ssl_server ssl_test # cmake install is broken, so we do it by hand do-install: @cd ${WRKSRC}/include && ${COPYTREE_SHARE} ${PORTNAME} ${STAGEDIR}${PREFIX}/include "! -name *.orig" ${INSTALL_DATA} ${WRKSRC}/library/libpolarssl.a ${STAGEDIR}${PREFIX}/lib/ ${INSTALL_DATA} ${WRKSRC}/library/libpolarssl.so ${STAGEDIR}${PREFIX}/lib/libpolarssl.so.7 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpolarssl.so.7 cd ${STAGEDIR}${PREFIX}/lib/ && ${LN} -sf libpolarssl.so.7 libpolarssl.so .for i in ${BINFILES} ${INSTALL_PROGRAM} ${WRKSRC}/programs/*/${i} ${STAGEDIR}${PREFIX}/bin/polarssl_${i} .endfor OPTIONS_DEFINE= DOCS .include post-install: .if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${DOCFILES} ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} .endfor .endif .if ${ARCH} == "powerpc" BROKEN= Does not compile on powerpc .endif .include