source: trunk/dports/net/ldns/Portfile

Last change on this file was 153861, checked in by mf2k@…, 13 months ago

ldns: Remove unnecessary code block. Improve syntax. Based on suggestions by ryandesign.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 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 153861 2016-10-14 13:54:47Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                ldns
7subport             ldns-tools {}
8subport             drill {}
9
10version             1.6.17
11categories          net devel
12platforms           darwin
13license             BSD
14maintainers         nomaintainer
15
16switch ${subport} {
17"ldns" {
18    description         DNS library in C
19    long_description    ldns is a library with the aim of simplifying DNS \
20                        programming in C. It is heavily based upon the Net::DNS module from \
21                        Perl.
22}
23"ldns-tools" {
24    description         Tools for working with dns and dnssec.
25    long_description    Tools as examples to the ldns library. \
26                        Useful for debugging/querying dns/dnssec servers.
27}
28"drill" {
29    description         A dig-style dnssec-aware dns debugging tool
30    long_description    Drill is a tool ala dig from BIND. \
31                        It was designed with DNSSEC in mind and should be a useful \
32                        debugging/query tool for DNSSEC.
33}
34}
35
36homepage            http://www.nlnetlabs.nl/projects/ldns/
37master_sites        http://www.nlnetlabs.nl/downloads/ldns/
38
39checksums           rmd160  5382cfaafa7ec1fadcf390f804fbf14e04d7c03a \
40                    sha256  8b88e059452118e8949a2752a55ce59bc71fa5bc414103e17f5b6b06f9bcc8cd
41
42depends_build       bin:glibtool:libtool
43depends_lib         path:lib/libssl.dylib:openssl
44
45if {${subport} eq "ldns-tools"} {
46    depends_lib-append  port:ldns \
47                        port:libpcap
48}
49if {${subport} eq "drill"} {
50    depends_lib-append  port:ldns
51}
52
53if {${subport} eq "ldns-tools"} {
54    worksrcdir          ldns-${version}/examples
55}
56if {${subport} eq "drill"} {
57    worksrcdir          ldns-${version}/drill
58}
59if {${subport} eq "ldns"} {
60    configure.args      --mandir=${prefix}/share/man --with-ssl=${prefix}
61} else {
62    configure.args      --mandir=${prefix}/share/man --with-ldns=${prefix} --with-ssl=${prefix}
63}
64if {${subport} eq "ldns"} {
65    configure.cppflags  -I${worksrcpath}/include
66}
67if {${subport} ne "drill"} {
68    build.type          gnu
69}
70
71if {${subport} eq "ldns"} {
72    pre-destroot {
73        reinplace "s,defined(@\$also),@\$also," ${worksrcpath}/doc/doxyparse.pl
74    }
75
76    post-destroot {
77        # Install pkg-config files not installed by the Makefile
78        reinplace "s/-arch \[^ \]*//g" ${worksrcpath}/packaging/libldns.pc
79        file mkdir ${destroot}${prefix}/lib/pkgconfig/
80        file copy ${worksrcpath}/packaging/libldns.pc \
81            ${destroot}${prefix}/lib/pkgconfig/libldns.pc
82    }
83}
84
85livecheck.type      regex
86livecheck.url       http://www.nlnetlabs.nl/projects/ldns/
87livecheck.regex     "The latest release is (\\d+(?:\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.