source: trunk/dports/perl/p5-net-libidn/Portfile @ 82547

Last change on this file since 82547 was 82547, checked in by jmr@…, 6 years ago

perl5 portgroup: convert versions to a form we can compare correctly (#11873), declare a subport per major perl version (#30638), adapt p5 ports

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1# $Id: Portfile 82547 2011-08-15 16:46:16Z jmr@macports.org $
2
3PortSystem        1.0
4PortGroup         perl5 1.0
5
6perl5.setup       Net-LibIDN 0.12
7revision          2
8license           {Artistic GPL}
9maintainers       oaf.dk:mni
10description       Perl bindings for GNU Libidn
11long_description  Net::LibIDN is bindings for GNU Libidn, which is an \
12                  implementation of the Stringprep, Punycode and IDNA \
13                  specifications defined by the IETF Internationalized \
14                  Domain Names (IDN) working group.
15checksums         md5     c3e4de2065009d67bcb1df0afb473e12 \
16                  sha1    ac446edf66ac523d5463b59ed9698e2ccb9b04ab \
17                  rmd160  a595c3758c9577b6d09d856cf220c303fdc3d2a2
18platforms         darwin
19
20if {${perl5.major} != ""} {
21depends_lib-append      port:libidn
22
23patchfiles-append       patch-Makefile.PL.diff
24
25post-patch {
26    if {[variant_isset universal]} {
27        set archflags ${configure.universal_cflags}
28    } else {
29        set archflags ${configure.cc_archflags}
30    }
31   
32    reinplace "s|@CC@|${configure.cc} ${archflags}|g" ${worksrcpath}/Makefile.PL
33}
34
35configure.args-append   --with-libidn=${prefix}/lib \
36                        --with-libidn-inc=${prefix}/include
37}
Note: See TracBrowser for help on using the repository browser.