Ticket #1221: Portfile.3

File Portfile.3, 1.4 KB (added by fkr@…, 21 years ago)

modified Portfile

Line 
1# $Id: $
2
3PortSystem 1.0
4name            libmatroska
5version         0.6.1
6categories      multimedia
7maintainers     pguyot@kallisys.net
8description     Matroska is an extensible open standard audio/video container format.
9long_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                               
13homepage        http://www.matroska.org/
14platforms       darwin
15master_sites    http://matroska.free.fr/downloads/libmatroska/
16checksums       md5 61d5665e7c1050aa934aecc57cf392cd
17
18depends_lib     lib:libebml.a:libebml
19test.run        yes
20
21configure       {}
22post-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.
28build {         cd "${worksrcpath}/make/darwin"
29                system "make prefix=${prefix} LIBEBML_INCLUDE_DIR=${prefix}/include \
30                                LIBEBML_LIB_DIR=${prefix}/lib lib" }
31
32test {  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
39destroot {      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" }