source: trunk/dports/multimedia/live555/Portfile

Last change on this file was 153148, checked in by mps@…, 14 months ago

live555: update to version 2016.09.22.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id: Portfile 153148 2016-09-25 23:52:17Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name             live555
6version          2016.09.22
7categories       multimedia
8license          LGPL-2.1+
9maintainers      nomaintainer
10description      LIVE555 Streaming Media
11long_description \
12  This code forms a set of C++ libraries for multimedia streaming, using open\
13  standard protocols (RTP/RTCP, RTSP, SIP). These libraries - which can be\
14  compiled for Unix (including Linux and Mac OS X), Windows, and QNX (and\
15  other POSIX-compliant systems) - can be used to build streaming\
16  applications.
17homepage         http://www.live555.com/liveMedia/
18platforms        darwin
19master_sites     ${homepage}public/
20
21checksums           rmd160  a7b0e59013f141afba54f395e8ebf079ef3ad45c \
22                    sha256  4d108205f4f0abe24224c72129222c1a8865e13d67e5dad6f8e900ef346379ff
23
24distname         live.${version}
25worksrcdir       live
26# Configure settings remain in installed Makefiles, so be minimalistic
27configure.ccache no
28configure.distcc no
29patchfiles       patch-config.macosx.diff
30post-patch {
31set cxx_stdlibflags {}
32    if {[string match *clang* ${configure.cxx}]} {
33        set cxx_stdlibflags -stdlib=${configure.cxx_stdlib}
34    }
35
36    reinplace "s|@ARCHFLAGS@|[get_canonical_archflags]|g
37        s|@CC@|${configure.cc}|g
38        s|@CXX@|${configure.cxx} ${cxx_stdlibflags}|g
39        s|@CPPFLAGS@|${configure.cppflags}|g
40        s|@CFLAGS@|${configure.cflags}|g
41        s|@CXXFLAGS@|${configure.cxxflags}|g
42        s|@LDFLAGS@|${configure.ldflags}|g" \
43        ${worksrcpath}/config.macosx
44}
45
46set files_0      ${workpath}/files-0.txt
47set files_1      ${workpath}/files-1.txt
48set files_new    ${workpath}/files-new.txt
49
50configure.cmd    ./genMakefiles
51configure.pre_args {}
52configure.universal_args-delete --disable-dependency-tracking
53
54post-configure {
55    ui_debug "Create a list of files: \[${files_0}\]"
56    system -W ${worksrcpath} "find -s . ! -type d > ${files_0}"
57}
58
59post-build {
60    ui_debug "Create an updated list of files: \[${files_1}\]"
61    system -W ${worksrcpath} "find -s . ! -type d > ${files_1}"
62   
63    ui_debug "Create a list of new files: \[${files_new}\]"
64    system "comm -1 -3 ${files_0} ${files_1} > ${files_new}"
65}
66
67destroot {
68    set dst ${destroot}${prefix}/lib/live
69   
70    ui_debug "Copy worksrcpath into destroot"
71    file copy ${worksrcpath} ${dst}
72   
73    ui_debug "Delete everything but *.hh and *.h files listed in \[${files_0}\]"
74    system -W ${dst} "grep -v -e '\\.h\$' -e '\\.hh\$' ${files_0} | xargs rm"
75   
76    ui_debug "Delete every *.o file listed in \[${files_new}\]"
77    system -W ${dst} "grep -e '\\.o\$' ${files_new} | xargs rm"
78}
79
80platform macosx {
81        configure.args  macosx
82}
83platform linux {
84        configure.args  linux
85}
86
87livecheck.type      regex
88livecheck.url       ${homepage}public/
89livecheck.regex     live\\.(\[0-9a-z.\]+)\\.tar\\.gz
Note: See TracBrowser for help on using the repository browser.