1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: Portfile 55062 2009-08-06 13:23:51Z snc@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name libvpx-devel |
---|
7 | set major 0.9.0 |
---|
8 | set minor 34 |
---|
9 | version ${major}-${minor} |
---|
10 | #dist_subdir ${major} |
---|
11 | revision 0 |
---|
12 | |
---|
13 | categories multimedia |
---|
14 | maintainers davidfavor.com:david |
---|
15 | description VP8 encoder/decoder |
---|
16 | long_description VP8 encoder/decoder |
---|
17 | |
---|
18 | homepage http://www.webmproject.org/code/ |
---|
19 | platforms darwin |
---|
20 | |
---|
21 | depends_build port:yasm |
---|
22 | |
---|
23 | fetch.type git |
---|
24 | git.url git://review.webmproject.org/libvpx.git |
---|
25 | git.branch v0.9.0-34-g1689564 |
---|
26 | |
---|
27 | depends_build port:yasm |
---|
28 | |
---|
29 | # munge odd configure/build/install phase |
---|
30 | |
---|
31 | use_parallel_build no |
---|
32 | universal_variant no |
---|
33 | |
---|
34 | build.cmd make |
---|
35 | build.target |
---|
36 | build.args |
---|
37 | |
---|
38 | configure.pre_args-delete --prefix=${prefix} |
---|
39 | configure.args --target=${configure.build_arch}-darwin9-gcc \ |
---|
40 | --enable-vp8 \ |
---|
41 | --enable-psnr \ |
---|
42 | --enable-postproc \ |
---|
43 | --enable-multithread \ |
---|
44 | --enable-runtime-cpu-detect |
---|
45 | |
---|
46 | # libvpx has no 'make install' phase, so manually install required files |
---|
47 | |
---|
48 | destroot {} |
---|
49 | post-destroot {} |
---|
50 | |
---|
51 | install { |
---|
52 | ui_msg "prefix=${prefix} destroot=${destroot}" |
---|
53 | ui_msg "workpath=${workpath} worksrcdir=${worksrcdir} worksrcpath=${worksrcpath}" |
---|
54 | #xinstall xinstall -m 644 ${worksrcpath}/vp8/*.h ${prefix}/include |
---|
55 | #xinstall xinstall -m 644 ${worksrcpath}/vpx_codec/*.h ${prefix}/include |
---|
56 | #xinstall xinstall -m 644 ${worksrcpath}/vpx_ports/*.h ${prefix}/include |
---|
57 | #xinstall xinstall -m 644 ${worksrcpath}/*libvpx*.a ${prefix}/lib |
---|
58 | } |
---|