Tweak security/integrit version 4.1
[dports.git] / security / polarssl / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       polarssl
4 PORTVERSION=    1.2.10
5 DISTVERSIONSUFFIX=      -gpl
6 CATEGORIES=     security devel
7 MASTER_SITES=   http://polarssl.org/download/
8
9 MAINTAINER=     jase@FreeBSD.org
10 COMMENT=        Open Source embedded SSL/TLS cryptographic library
11
12 LICENSE=        GPLv2
13
14 # bypass the HTML "now downloading..." splash site, code below
15 # .include <bsd.port.pre.mk>
16 URL_SUFFIX=     ?do=yes
17 FETCH_ARGS=     -pRro ${DISTFILES}
18 ALL_TARGET=     no_test
19
20 USES=   gmake tar:tgz
21 USE_LDCONFIG=   yes
22
23 WRKSRC=         ${WRKDIR}/${PORTNAME}-${PORTVERSION}
24
25 # PolarSSL 1.3 branch introduces API changes that would best be served at this
26 # time by a new/seperate polarssl13 port. Therefore, limit Portscout to the
27 # 1.2 branch for this port.
28 PORTSCOUT=      limit:^1\.2\.
29
30 DOCFILES=       ChangeLog README
31 BINFILES=       aescrypt2 benchmark dh_client dh_genprime dh_server hello \
32                 md5sum mpi_demo rsa_genkey rsa_sign rsa_verify selftest \
33                 sha1sum sha2sum ssl_cert_test ssl_client1 ssl_client2 \
34                 ssl_server ssl_test
35
36 # cmake install is broken, so we do it by hand
37 do-install:
38         @cd ${WRKSRC}/include && ${COPYTREE_SHARE} ${PORTNAME} ${STAGEDIR}${PREFIX}/include "! -name *.orig"
39         ${INSTALL_DATA} ${WRKSRC}/library/libpolarssl.a ${STAGEDIR}${PREFIX}/lib/
40         ${INSTALL_DATA} ${WRKSRC}/library/libpolarssl.so  ${STAGEDIR}${PREFIX}/lib/libpolarssl.so.0
41         cd ${STAGEDIR}${PREFIX}/lib/ && ${LN} -sf libpolarssl.so.0 libpolarssl.so
42 .for i in ${BINFILES}
43         ${INSTALL_PROGRAM} ${WRKSRC}/programs/*/${i} ${STAGEDIR}${PREFIX}/bin/polarssl_${i}
44 .endfor
45
46 OPTIONS_DEFINE= DOCS
47
48 .include <bsd.port.options.mk>
49
50 post-install:
51 .if ${PORT_OPTIONS:MDOCS}
52         ${MKDIR} ${STAGEDIR}${DOCSDIR}
53 .for i in ${DOCFILES}
54         ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
55 .endfor
56 .endif
57
58 .include <bsd.port.pre.mk>
59
60 FETCH_CMD=      ${SH} ${FILESDIR}/fetchwrapper.sh \
61                         ${URL_SUFFIX} ${FETCH_BINARY} ${FETCH_ARGS}
62
63 .if ${ARCH} == "powerpc"
64 BROKEN=         Does not compile on powerpc
65 .endif
66
67 .include <bsd.port.post.mk>