mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
74 lines
2.5 KiB
Tcl
74 lines
2.5 KiB
Tcl
# -*- 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
|
|
|
|
PortSystem 1.0
|
|
|
|
name xmlsec
|
|
version 1.3.12
|
|
revision 0
|
|
|
|
categories security textproc devel
|
|
license MIT
|
|
maintainers {mps @Schamschula} openmaintainer
|
|
description XML Security Library is a C library based on LibXML2.
|
|
long_description {*}${description}. The library supports major XML security \
|
|
standards. XML Signature, XML Encryption, Canonical XML and \
|
|
Exclusive Canonical XML.
|
|
homepage https://www.aleksey.com/xmlsec/
|
|
master_sites ${homepage}download/ \
|
|
ftp://ftp.xmlsoft.org/xmlsec/releases/
|
|
distname xmlsec1-${version}
|
|
|
|
checksums rmd160 bf4843b69a4983e9bc6cd4b64f7bc05c04449d40 \
|
|
sha256 24045199af12d93fe5fdbbbf7e386e823e4842071e9432e2b90ac108b889a923 \
|
|
size 3090747
|
|
|
|
depends_build path:bin/pkg-config:pkgconfig
|
|
|
|
depends_lib port:icu \
|
|
port:libxml2 \
|
|
port:libxslt
|
|
|
|
patchfiles patch-src-dl.c.diff
|
|
|
|
# no newline at end of file
|
|
patchfiles-append patch-apps-unit_tests-list_unit_tests.c.diff
|
|
|
|
if {[string match *gcc-4.* ${configure.compiler}]} {
|
|
patchfiles-append patch-gcc4.diff
|
|
}
|
|
|
|
post-patch {
|
|
reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/dl.c
|
|
}
|
|
|
|
# error: no newline at end of file
|
|
patchfiles-append patch-src-nss-kdf.c.diff
|
|
|
|
configure.args --disable-silent-rules
|
|
|
|
# Add libtool support.
|
|
depends_lib-append port:libtool
|
|
# Avoid brewism
|
|
configure.args-append --with-libltdl=${prefix}
|
|
|
|
# Add gcrypt support.
|
|
depends_lib-append port:libgcrypt
|
|
|
|
# Add gnutls support.
|
|
depends_lib-append path:lib/pkgconfig/gnutls.pc:gnutls
|
|
|
|
# Add nss and nspr support.
|
|
depends_lib-append port:nss port:nspr
|
|
# nss is not universal.
|
|
universal_variant no
|
|
|
|
# Add openssl support.
|
|
depends_lib-append path:lib/libssl.dylib:openssl
|
|
|
|
test.run yes
|
|
test.target check
|
|
|
|
livecheck.type regex
|
|
livecheck.url ${homepage}download.html
|
|
livecheck.regex {xmlsec1-([0-9.]+)\.}
|