Ticket #25055: Portfile

File Portfile, 1.8 KB (added by davidfavor (David Favor), 14 years ago)
Line 
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
4PortSystem          1.0
5
6name                libvpx-devel
7version             0.9.0_31
8revision            0
9categories          multimedia
10maintainers         davidfavor.com:david
11description         VP8 encoder/decoder
12long_description    VP8 encoder/decoder
13
14homepage            http://www.webmproject.org/code/
15platforms           darwin
16
17depends_build       port:yasm
18
19fetch.type          git
20git.url             git://review.webmproject.org/libvpx.git
21#git.branch          v0.9.0-27-ge80d569
22git.branch          v0.9.0-31-ga7bb336
23
24depends_build       port:yasm
25
26# munge odd configure/build/install phase
27
28use_parallel_build  no
29#universal_variant   no
30
31build.cmd           make
32build.target
33build.args
34
35configure.pre_args-delete --prefix=${prefix}
36configure.args            --target=${configure.build_arch}-darwin9-gcc \
37                          --enable-vp8 \
38                          --enable-psnr \
39                          --enable-postproc \
40                          --enable-multithread \
41                          --enable-runtime-cpu-detect
42
43# libvpx has no 'make install' phase, so manually install required files
44
45#destroot.cmd
46#destroot.target
47
48install {
49   ui_msg "prefix=${prefix} destroot=${destroot}"
50   ui_msg "workpath=${workpath} worksrcdir=${worksrcdir} worksrcpath=${worksrcpath}"
51   #xinstall xinstall -m 644 ${worksrcpath}/vp8/*.h ${prefix}/include
52   #xinstall xinstall -m 644 ${worksrcpath}/vpx_codec/*.h ${prefix}/include
53   #xinstall xinstall -m 644 ${worksrcpath}/vpx_ports/*.h ${prefix}/include
54   #xinstall xinstall -m 644 ${worksrcpath}/*libvpx*.a ${prefix}/lib
55}