aboutsummaryrefslogtreecommitdiffstats
path: root/security/polarssl13/Makefile
blob: 0eac03d464744eef93db94fc2f62dc1976083907 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $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>