# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id: Portfile 148239 2016-04-30 23:56:37Z mps@macports.org $ PortSystem 1.0 name xmlsec version 1.2.22 categories security textproc devel license MIT platforms darwin maintainers nomaintainer description XML Security Library is a C library based on LibXML2. long_description XML Security Library is a C library based on LibXML2. The \ library supports major XML security standards. XML Signature, \ XML Encryption, Canonical XML and Exclusive Canonical XML. homepage http://www.aleksey.com/xmlsec/ master_sites ${homepage}download/ \ ftp://ftp.xmlsoft.org/xmlsec/releases/ distname xmlsec1-${version} checksums rmd160 d0bd455c726f6571363cf5db776fb2929455d543 \ sha256 8c06bf161c565b907a499e6d906f0b640f063b2b4efd2b471048ac5b3c1ad527 depends_build port:pkgconfig depends_lib port:libxml2 \ port:libxslt \ port:libiconv \ port:libtool \ port:zlib patchfiles patch-src-dl.c.diff post-patch { reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/dl.c } configure.args --with-libxml=${prefix} \ --with-libxslt=${prefix} # Add gcrypt support. depends_lib-append port:libgcrypt configure.args-append --with-gcrypt=${prefix} # Add gnutls support. depends_lib-append port:gnutls # Do not specify the path to gnutls or it will fail to find it, because # it looks for the libgnutls-config script that gnutls no longer provides. # Do not remove the equals sign or it will fail trying to find the # libraries and headers in a directory called "yes". configure.args-append --with-gnutls= # Add nss and nspr support. depends_lib-append port:nss port:nspr configure.args-append --with-nss=${prefix} --with-nspr=${prefix} configure.ldflags-append -L${prefix}/lib/nss -L${prefix}/lib/nspr # nss is not universal. universal_variant no # Add openssl support. depends_lib-append path:lib/libssl.dylib:openssl # Do not specify the path to openssl or it will try to link with the # static library instead of the dynamic one, and it will fail when # openssl is installed universal. # Do not remove the equals sign or it will fail trying to find the # libraries and headers in a directory called "yes". configure.args-append --with-openssl= test.run yes test.target check livecheck.type regex livecheck.url ${homepage}download.html livecheck.regex {xmlsec1-([0-9.]+)\.}