1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name x265 |
---|
7 | version 20141013 |
---|
8 | categories multimedia |
---|
9 | license GPL-2+ |
---|
10 | platforms darwin |
---|
11 | maintainers devans openmaintainer |
---|
12 | description x265 - a free h264/avc encoder |
---|
13 | long_description x265 is an open-source project and free application library \ |
---|
14 | for encoding video streams into the H.265/High Efficiency \ |
---|
15 | Video Coding (HEVC) format. x265 is available to anyone under \ |
---|
16 | the terms of the GNU GPL 2 license. |
---|
17 | homepage http://x265.org/ |
---|
18 | set hg_branch f26e81eb555a |
---|
19 | dist_subdir x265 |
---|
20 | master_sites https://bitbucket.org/multicoreware/x265/get/ |
---|
21 | distname multicoreware-x265-${hg_branch} |
---|
22 | distfiles ${hg_branch}.tar.gz |
---|
23 | checksums rmd160 8fac4731229679ab3eb1c0d9d0143c10a21646ad \ |
---|
24 | sha256 f51d9792a368997e4734e5d5eaf6d9d31a3df9feb8557cd04c993acc83b83e2a |
---|
25 | |
---|
26 | depends_build port:yasm \ |
---|
27 | port:cmake |
---|
28 | |
---|
29 | configure.args -DCMAKE_INSTALL_PREFIX=${prefix} \ |
---|
30 | -DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE \ |
---|
31 | -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE \ |
---|
32 | -DCMAKE_INSTALL_NAME_DIR=$prefix/lib \ |
---|
33 | ${worksrcpath}/source |
---|
34 | configure.cmd cmake |
---|
35 | |
---|
36 | post-destroot { |
---|
37 | if {[file exists "/usr/lib/libx265.34.dylib"]} { |
---|
38 | exec rm /usr/lib/libx265.34.dylib |
---|
39 | } |
---|
40 | exec install_name_tool -id ${prefix}/lib/libx265.34.dylib ${destroot}/${prefix}/lib/libx265.34.dylib |
---|
41 | } |
---|
42 | |
---|
43 | variant highbitdepth description {Enables x265 with High Bit Depth} { |
---|
44 | configure.args-append \ |
---|
45 | -DHIGH_BIT_DEPTH=ON \ |
---|
46 | } |
---|
47 | |
---|
48 | |
---|
49 | #build.target default |
---|
50 | |
---|
51 | livecheck.type none |
---|