1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/security/bearssl/Makefile
Baptiste Daroussin c8170d0aaf Update to 0.5 [1]
While here: port related changes:
- Respect PREFIX
- Build a real shared library (with SONAME)

PR:		222483 [1]
Submitted by:	takefu@airport.fm [1]
2017-09-29 15:24:58 +00:00

25 lines
746 B
Makefile

# Created by: Mark Felder <feld@FreeBSD.org>
# $FreeBSD$
PORTNAME= bearssl
PORTVERSION= 0.5
CATEGORIES= security devel
MASTER_SITES= https://bearssl.org/
MAINTAINER= bapt@FreeBSD.org
COMMENT= Implementation of TLS/SSL in C
LICENSE= MIT
LIBBEARSSL= libbearssl.so.0
MAKE_ARGS= CC="${CC}" LD="${CC}" CFLAGS="${CFLAGS} -fPIC" LDDLL="${CC}" LDDLLFLAGS="-shared -Wl,-soname=${LIBBEARSSL}" \
BEARSSLDLL=${LIBBEARSSL}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/build/brssl ${STAGEDIR}${PREFIX}/bin/
${INSTALL_LIB} ${WRKSRC}/${LIBBEARSSL} ${STAGEDIR}${PREFIX}/lib/
${RLN} ${STAGEDIR}${PREFIX}/lib/${LIBBEARSSL} ${STAGEDIR}${PREFIX}/lib/libbearssl.so
(cd ${WRKSRC}/inc && ${COPYTREE_SHARE} \* ${STAGEDIR}${PREFIX}/include)
.include <bsd.port.mk>