Files
root dcb3f523f1 Merge remote-tracking branch 'origin/pristine'
* origin/pristine: (197 commits)
  www/litmus: fix build with neon 34
  all: expire (indirect) consumers of java/jaxen on 2025-06-04
  www/publicfile: Remove expired port
  www/moodle41: Remove expired port
  audio/mp3check: expire on 2025-06-04 for audio/id3tool
  net/libtnl: Remove expired port
  www/moodle43: Remove expired port
  devel/ccdoc: Remove expired port
  devel/rubygem-webby: Remove expired port
  editors/ssed: Remove expired port
  games/stuntrally: Remove expired port
  japanese/namazu: Remove expired port
  net/openbgpd: Remove expired port
  net/echoping: Remove expired port
  net-p2p/shx: Remove expired port
  net-p2p/phex: Remove expired port
  net-p2p/libswift: Remove expired port
  net-p2p/p5-Net-BitTorrent-File: Remove expired port
  net-p2p/p5-Net-BitTorrent: Remove expired port
  net-p2p/p5-Net-BitTorrent-PeerPacket: Remove expired port
  ...
2025-05-04 15:19:04 +02:00

74 lines
1.8 KiB
Makefile

PORTNAME= libressl
PORTVERSION= 4.1.0
CATEGORIES= security devel
MASTER_SITES= OPENBSD/LibreSSL
MAINTAINER= brnrd@FreeBSD.org
COMMENT= Free version of the SSL/TLS protocol forked from OpenSSL
WWW= https://www.libressl.org/
LICENSE= BSD4CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
FLAVORS= default libtls
FLAVOR?= ${FLAVORS:[1]}
libtls_DESCR= pkg-descr-libtls
libtls_PKGNAMESUFFIX= -libtls
libtls_PLIST= pkg-plist-libtls
CPE_VENDOR= openbsd
OPTIONS_DEFINE= LIBTLS MAN3 NC
OPTIONS_DEFAULT= MAN3 NC
LIBTLS_DESC= Only install libtls (no libcrypto/libssl)
MAN3_DESC= Install API manpages (section 3)
NC_DESC= Install TLS-enabled netcat
CONFLICTS_INSTALL= libressl-devel
libtls_CONFLICTS_INSTALL= libretls
default_CONFLICTS_INSTALL= openssl openssl3* openssl-quictls
.if ${FLAVOR:U} == default
OPTIONS_EXCLUDE= LIBTLS
.elif ${FLAVOR:U} == libtls
OPTIONS_SLAVE= LIBTLS
OPTIONS_EXCLUDE= MAN3
.endif
LIBTLS_CONFIGURE_ENABLE= libtls-only
NC_CONFIGURE_ENABLE= nc
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share
USES= cpe libtool pathfix pkgconfig
USE_LDCONFIG= yes
OPTIONS_SUB= yes
CFLAGS+= -fpic -DPIC -Wl,-rpath,${PREFIX}/lib -Wl,--as-needed
LDFLAGS+= -pthread
INSTALL_TARGET= install-strip
TEST_TARGET= check
PLIST_SUB+= LIBCRYPTO_SHLIBMAJ=56 \
LIBCRYPTO_SHLIBFULL=56.0.0 \
LIBSSL_SHLIBMAJ=59 \
LIBSSL_SHLIBFULL=59.0.1 \
LIBTLS_SHLIBMAJ=32 \
LIBTLS_SHLIBFULL=32.0.1
post-patch-MAN3-off:
${REINPLACE_CMD} -e '/^install-man:/s/install-man3//' \
-e '/$$(MAKE) $$(AM_MAKEFLAGS) install-data-hook/d' \
${WRKSRC}/man/Makefile.in
post-install:
${RM} -r ${STAGEDIR}/${PREFIX}/etc/ssl/cert.pem
${RMDIR} ${STAGEDIR}${PREFIX}/etc/ssl/certs
${LN} -s /etc/ssl/certs ${STAGEDIR}${PREFIX}/etc/ssl/certs
post-stage-MAN3-on:
(cd ${STAGEDIR}${PREFIX}; ${FIND} share/man/man3 -not -type d | \
${SED} 's/$$/.gz/' >> ${TMPPLIST})
.include <bsd.port.mk>