39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
COMMENT = libtls library used with OpenSSL 1.1 for testing
|
|
|
|
V = 3.7.0
|
|
DISTNAME = libretls-$V
|
|
PKGNAME = libretls-$V
|
|
|
|
SHARED_LIBS = tls 1.0
|
|
|
|
CATEGORIES = security net
|
|
|
|
HOMEPAGE = https://git.causal.agency/libretls/about/
|
|
|
|
# ISC
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB = c lib/eopenssl11/crypto lib/eopenssl11/ssl
|
|
|
|
SITES = https://causal.agency/libretls/
|
|
|
|
# OpenSSL used because this port is specifically intended for testing
|
|
# portable versions of OpenBSD daemons against OpenSSL+libretls
|
|
LIB_DEPENDS = security/openssl/1.1
|
|
|
|
USE_LIBTOOL = gnu
|
|
CONFIGURE_STYLE = gnu old
|
|
CONFIGURE_ARGS = --libdir=${LOCALBASE}/lib/eopenssl11 \
|
|
--includedir=${LOCALBASE}/include/eopenssl11 \
|
|
--mandir=${LOCALBASE}/lib/eopenssl11/man
|
|
CONFIGURE_ENV = CFLAGS="${CFLAGS} -I${LOCALBASE}/include/eopenssl11" \
|
|
LDFLAGS="-L${LOCALBASE}/lib/eopenssl11 -Wl,-rpath,${LOCALBASE}/lib/eopenssl11"
|
|
SEPARATE_BUILD = Yes
|
|
|
|
# move pkgconfig files here, the build infrastructure is not layed out for that
|
|
post-install:
|
|
mv ${PREFIX}/lib/eopenssl11/pkgconfig/libtls.pc \
|
|
${PREFIX}/lib/pkgconfig/libetls.pc
|
|
rmdir ${PREFIX}/lib/eopenssl11/pkgconfig
|
|
|
|
.include <bsd.port.mk>
|