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 20141009 |
---|
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 4495af3b30bb |
---|
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 6925d82f2a66e1f16ca5cbe64bba049792138319 \ |
---|
24 | sha256 896be1fe2b70b02d548e9c078d03dd1fdc382dfef802b4e7f6a42917435ca70d |
---|
25 | |
---|
26 | depends_build port:yasm \ |
---|
27 | port:cmake |
---|
28 | |
---|
29 | configure.pre_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 | -DHIGH_BIT_DEPTH=ON \ |
---|
34 | ${worksrcpath}/source |
---|
35 | configure.cmd cmake |
---|
36 | #configure.ldflags-append \ |
---|
37 | # "-Wl,-rpath,${prefix}/lib" |
---|
38 | # destroot.args DIR_INSTALL=${destroot}${prefix} |
---|
39 | |
---|
40 | post-destroot { |
---|
41 | if {[file exists "/usr/lib/libx265.34.dylib"]} { |
---|
42 | exec rm /usr/lib/libx265.34.dylib |
---|
43 | } |
---|
44 | # ln -s ${prefix}/lib/libx265.34.dylib /usr/lib/libx265.34.dylib |
---|
45 | exec install_name_tool -id ${prefix}/lib/libx265.34.dylib ${destroot}/${prefix}/lib/libx265.34.dylib |
---|
46 | } |
---|
47 | |
---|
48 | #build.target default |
---|
49 | |
---|
50 | livecheck.type none |
---|