source: trunk/dports/audio/daapd/Portfile

Last change on this file was 122501, checked in by jmr@…, 3 years ago

daapd: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 122501 2014-07-23 10:33:25Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            daapd
6version         0.2.4b
7categories      audio net
8license         GPL-2
9platforms       darwin
10maintainers     nomaintainer
11description     A DAAP server emulating an iTunes server.
12long_description    daapd scans a directory for music files (mp3, aac, \
13            uncompressed) and makes them available via the Apple \
14            proprietary protocol DAAP. DAAP clients can browse \
15            the directory and retrieve individual files, either \
16            by streaming or by downloading them.
17
18homepage        http://www.deleet.de/projekte/daap/daapd/
19master_sites    ${homepage}
20extract.suffix  .tgz
21
22checksums           md5     3a83294a9eb88b27bae7f5dd06394c49 \
23                    sha1    0903303f155c19ae12cdc78be05799508156a16b \
24                    rmd160  899b37b3872623ef918f7faa4eb8bad2dfc5b369
25
26depends_lib         port:zlib \
27                    port:libid3tag \
28                    port:howl
29
30patchfiles          patch-daapd.cc patch-daapd.8 patch-daaplib-src-makefile \
31                    patch-select.h patch-makefile patch-ip_acl.c \
32                    patch-libhttpd-Site.mm.in
33
34post-extract {
35    # Convert DOS to UNIX line endings so we can patch
36    reinplace "s|\r||g" ${worksrcpath}/daaplib/src/makefile
37}
38
39if {${configure.compiler} != "gcc-4.0"} {
40    configure.cxxflags-append -ffriend-injection
41}
42
43post-patch {
44    reinplace s|@PREFIX@|${prefix}|g    ${worksrcpath}/daapd.cc \
45                        ${worksrcpath}/daapd.8 \
46                        ${worksrcpath}/daaplib/src/makefile \
47                        ${worksrcpath}/makefile
48    reinplace s|@CXX@|${configure.cxx}|g    ${worksrcpath}/makefile \
49                        ${worksrcpath}/daaplib/src/makefile
50    reinplace "s|@CFLAGS@|${configure.cxxflags} ${configure.cxx_archflags}|g" \
51                        ${worksrcpath}/makefile \
52                        ${worksrcpath}/daaplib/src/makefile
53}
54
55destroot {
56    xinstall -m 755 ${worksrcpath}/daapd ${destroot}${prefix}/sbin/
57    xinstall -m 644 ${worksrcpath}/daaplib/src/libdaaplib.a ${destroot}${prefix}/lib/
58    xinstall -m 644 ${worksrcpath}/daapd.conf ${destroot}${prefix}/etc/daapd.conf.dist
59    xinstall -m 644 ${worksrcpath}/daapd.8 ${destroot}${prefix}/share/man/man8/
60}
61
62use_configure   no
63use_parallel_build no
64
65livecheck.type      regex
66livecheck.regex     ${name}-(\[0-9.a-z\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.