1 | # $Id: $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name libmatroska |
---|
5 | version 0.6.1 |
---|
6 | categories multimedia |
---|
7 | maintainers pguyot@kallisys.net |
---|
8 | description Matroska is an extensible open standard audio/video container format. |
---|
9 | long_description Matroska is an extensible open standard audio/video container \ |
---|
10 | format. This library is there to support this format and has \ |
---|
11 | been written by the Matroska project team. |
---|
12 | |
---|
13 | homepage http://www.matroska.org/ |
---|
14 | platforms darwin |
---|
15 | master_sites http://matroska.free.fr/downloads/libmatroska/ |
---|
16 | checksums md5 61d5665e7c1050aa934aecc57cf392cd |
---|
17 | |
---|
18 | depends_lib lib:libebml.a:libebml |
---|
19 | test.run yes |
---|
20 | |
---|
21 | configure {} |
---|
22 | post-extract { cd "${worksrcpath}/make" |
---|
23 | system "cp -r linux darwin" } |
---|
24 | |
---|
25 | # I'm all for tests, but it won't work with destrootification. |
---|
26 | # So I run them in the work directory. |
---|
27 | # I'm not sure if I can compare the output of test8 with some master file which I cannot find. |
---|
28 | build { cd "${worksrcpath}/make/darwin" |
---|
29 | system "make prefix=${prefix} LIBEBML_INCLUDE_DIR=${prefix}/include \ |
---|
30 | LIBEBML_LIB_DIR=${prefix}/lib lib" } |
---|
31 | |
---|
32 | test { cd "${worksrcpath}/make/darwin" |
---|
33 | system "make prefix=${destroot}${prefix} LIBEBML_INCLUDE_DIR=${prefix}/include \ |
---|
34 | LIBEBML_LIB_DIR=${prefix}/lib test" |
---|
35 | system "./test6" |
---|
36 | system "./test8" |
---|
37 | system "./test9" } |
---|
38 | |
---|
39 | destroot { cd "${worksrcpath}/make/darwin" |
---|
40 | # We need -p for install because ld will ask for ranlib if the modification date changes. |
---|
41 | system "make prefix=${destroot}${prefix} INSTALL_OPTS_LIB='-m 644 -p' install" } |
---|