Ticket #63238: Portfile

File Portfile, 1.7 KB (added by cooljeanius (Eric Gallager), 3 years ago)

new Portfile for mdnsd

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
3PortSystem      1.0
4PortGroup       github 1.0
5
6github.setup    cooljeanius mdnsd 0.8.1 v
7categories      net
8maintainers     gwmail.gwu.edu:egall openmaintainer
9description     embeddable Multicast DNS Daemon
10license         {GPL-3+ BSD} Permissive
11platforms       darwin
12long_description    \
13    ${name} is a lightweight, simple, portable, and easy-to-integrate \
14    open source implementation of Multicast DNS (part of Zeroconf, also \
15    called Rendezvous by Apple) for developers. It supports both acting \
16    as a Query and a Responder, allowing any software to participate \
17    fully on the .local network just by including a few files and \
18    calling a few functions.
19
20checksums       rmd160  bb4a4cf73eb584bb11f4897d91e804aa24190267 \
21                sha256  40943113090343c4f60bd12e4db617af2f34684229856c0a06a6699793d517e7 \
22                size    444316
23
24configure.args-append --includedir=${prefix}/include/${name}
25
26# Testsuite is just a stub so far, but it does exist:
27test.run        yes
28test.target     check
29
30variant autoreconf description {Regenerates configure script before building.} {
31    depends_build-append port:gawk \
32                         port:grep
33    use_autoreconf       yes
34    autoreconf.args      -fvi -Wall
35}
36
37post-destroot {
38    if {![file exists ${destroot}${prefix}/bin]} {
39        xinstall -d ${destroot}${prefix}/bin
40    }
41    if {![file exists ${destroot}${prefix}/bin/mhttp]} {
42        xinstall -m 755 ${worksrcpath}/mhttp ${destroot}${prefix}/bin
43    }
44    if {![file exists ${destroot}${prefix}/bin/mquery]} {
45        xinstall -m 755 ${worksrcpath}/mquery ${destroot}${prefix}/bin
46    }
47}