Ticket #25073: 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
7set major           0.9.0
8set minor           34
9version             ${major}-${minor}
10#dist_subdir         ${major}
11revision            0
12
13categories          multimedia
14maintainers         davidfavor.com:david
15description         VP8 encoder/decoder
16long_description    VP8 encoder/decoder
17
18homepage            http://www.webmproject.org/code/
19platforms           darwin
20
21depends_build       port:yasm
22
23fetch.type          git
24git.url             git://review.webmproject.org/libvpx.git
25git.branch          v0.9.0-34-g1689564
26
27depends_build       port:yasm
28
29# munge odd configure/build/install phase
30
31use_parallel_build  no
32universal_variant   no
33
34build.cmd           make
35build.target
36build.args
37
38configure.pre_args-delete --prefix=${prefix}
39configure.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
48destroot {}
49post-destroot {}
50
51install {
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}