freebsd-ports/security/xmlsec1/Makefile
Dima Panov 645c54e10d security/xmlsec1: update to 1.2.37 release (+)
This is a prerequisite for LibreOffcie 7.5 update

News:
1.2.37:	Fixed two regressions from 1.2.36 release: issue #437 and issue #449.

1.2.36:	Retired the XMLSec mailing list "xmlsec@aleksey.com" and the XMLSec Online Signature Verifier.
	Several other small fixes (more details).

1.3.25:	Migration to OpenSSL 3.0 API (based on PR by @snargit).
	The OpenSSL before 1.1.0 and LibreSSL before 2.7.0 are now deprecated and will be removed in the future versions of XMLSec Library.
	Refactored all the integer casts to ensure cast-safety. Fixed all warnings and enabled "-Werror" and "-pedantic" flags on CI builds.
	Added configure flag to use size_t for xmlSecSize (currently disabled by default for backward compatibility).
	Several other small fixes (more details).

Full Changelog:	https://www.aleksey.com/xmlsec/
With hat:	office
2023-02-04 11:23:25 +03:00

71 lines
2.2 KiB
Makefile

PORTNAME= xmlsec1
PORTVERSION= 1.2.37
CATEGORIES= security
MASTER_SITES= https://www.aleksey.com/xmlsec/download/ \
https://github.com/lsh123/xmlsec/releases/download/xmlsec-${PORTVERSION:S,.,_,g}/
MAINTAINER= hrs@FreeBSD.org
COMMENT= XML Security Library
WWW= https://www.aleksey.com/xmlsec/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/Copyright
LIB_DEPENDS= libgcrypt.so:security/libgcrypt \
libgpg-error.so:security/libgpg-error \
libltdl.so:devel/libltdl
USES= gmake gnome libtool localbase pathfix pkgconfig ssl
USE_GNOME= libxml2 libxslt
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-openssl="${OPENSSLBASE}" \
--with-gcrypt="${LOCALBASE}" \
--enable-werror \
--enable-soap \
--disable-docs-build
MAKE_ENV= ABS_BUILDDIR=${WRKSRC} TMPFOLDER=${WRKSRC}
INSTALL_TARGET= install-strip
PORTDOCS= *
PLIST_SUB= PORTVERSION=${PORTVERSION}
OPTIONS_DEFINE= DOCS GNUTLS NSS
OPTIONS_DEFAULT= NSS
OPTIONS_SUB= yes
GNUTLS_DESC= Enable GNUTLS support
GNUTLS_CONFIGURE_ON= --with-gnutls="${LOCALBASE}"
GNUTLS_CONFIGURE_OFF= --without-gnutls
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls
NSS_DESC= Enable Mozilla's NSS support
NSS_CONFIGURE_ON= --with-nss="${LOCALBASE}" \
--with-nspr="${LOCALBASE}"
NSS_CONFIGURE_OFF= --without-nss \
--without-nspr
NSS_LIB_DEPENDS= libnss3.so:security/nss \
libnspr4.so:devel/nspr \
libplds4.so:devel/nspr \
libplc4.so:devel/nspr
post-patch:
@${REINPLACE_CMD} -e 's/mozilla-nss/nss/' \
-e 's/mozilla-nspr/nspr/' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's/(CP) -ru/(CP) -r/' \
-e 's/(CP) -u/(CP)/' \
${WRKSRC}/docs/Makefile.am ${WRKSRC}/docs/Makefile.in \
${WRKSRC}/docs/api/Makefile.am ${WRKSRC}/docs/api/Makefile.in \
${WRKSRC}/man/Makefile.am ${WRKSRC}/man/Makefile.in
post-patch-GNUTLS-on:
# Don't rely on broken autodetection
@${REINPLACE_CMD} -e '/^GNUTLS_FOUND/s/no/yes/' \
-e '/^GNUTLS_LIBS=/s,"","-L${LOCALBASE}/lib -lgnutls",' \
${WRKSRC}/${CONFIGURE_SCRIPT}
post-patch-NSS-on:
# Makeing the xmlsec1 executable multi-threaded to let load -lnss,
# when needed.
@${REINPLACE_CMD} -e 's,^\(xmlsec1_LDADD = \)\\$$,\1 -L${LOCALBASE}/lib -lpthread\\,' \
${WRKSRC}/apps/Makefile.in
.include <bsd.port.mk>