source: trunk/dports/security/xmlsec/Portfile

Last change on this file was 148239, checked in by mps@…, 15 months ago

xmlsec: bump to 1.2.22, update to modern hashes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# -*- 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
2# $Id: Portfile 148239 2016-04-30 23:56:37Z ryandesign@macports.org $
3
4PortSystem                  1.0
5
6name                        xmlsec
7version                     1.2.22
8categories                  security textproc devel
9license                     MIT
10platforms                   darwin
11maintainers                 nomaintainer
12
13description                 XML Security Library is a C library based on LibXML2.
14
15long_description            XML Security Library is a C library based on LibXML2. The \
16                            library supports major XML security standards. XML Signature, \
17                            XML Encryption, Canonical XML and Exclusive Canonical XML.
18
19homepage                    http://www.aleksey.com/xmlsec/
20master_sites                ${homepage}download/ \
21                            ftp://ftp.xmlsoft.org/xmlsec/releases/
22distname                    xmlsec1-${version}
23
24checksums                   rmd160  d0bd455c726f6571363cf5db776fb2929455d543 \
25                            sha256  8c06bf161c565b907a499e6d906f0b640f063b2b4efd2b471048ac5b3c1ad527
26
27depends_build               port:pkgconfig
28
29depends_lib                 port:libxml2 \
30                            port:libxslt \
31                            port:libiconv \
32                            port:libtool \
33                            port:zlib
34
35patchfiles                  patch-src-dl.c.diff
36post-patch {
37    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/dl.c
38}
39
40configure.args              --with-libxml=${prefix} \
41                            --with-libxslt=${prefix}
42
43# Add gcrypt support.
44depends_lib-append          port:libgcrypt
45configure.args-append       --with-gcrypt=${prefix}
46
47# Add gnutls support.
48depends_lib-append          port:gnutls
49# Do not specify the path to gnutls or it will fail to find it, because
50# it looks for the libgnutls-config script that gnutls no longer provides.
51# Do not remove the equals sign or it will fail trying to find the
52# libraries and headers in a directory called "yes".
53configure.args-append       --with-gnutls=
54
55# Add nss and nspr support.
56depends_lib-append          port:nss port:nspr
57configure.args-append       --with-nss=${prefix} --with-nspr=${prefix}
58configure.ldflags-append    -L${prefix}/lib/nss -L${prefix}/lib/nspr
59# nss is not universal.
60universal_variant           no
61
62# Add openssl support.
63depends_lib-append          path:lib/libssl.dylib:openssl
64# Do not specify the path to openssl or it will try to link with the
65# static library instead of the dynamic one, and it will fail when
66# openssl is installed universal.
67# Do not remove the equals sign or it will fail trying to find the
68# libraries and headers in a directory called "yes".
69configure.args-append       --with-openssl=
70
71test.run                    yes
72test.target                 check
73
74livecheck.type              regex
75livecheck.url               ${homepage}download.html
76livecheck.regex             {xmlsec1-([0-9.]+)\.}
Note: See TracBrowser for help on using the repository browser.