summaryrefslogtreecommitdiff
path: root/homebrew/x265/.beer
blob: b3b8f20afb9288dfdd41c99828ac5f45dc89a862 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
    "name": "X265",
    "description": "H.265/HEVC encoder",
    "url": "https://bitbucket.org/multicoreware/x265/downloads/x265_3.0.tar.gz",
    "mirror": null,
    "homepage": "http://x265.org",
    "depends": [
        {
            "depend": "cmake",
            "build-depend": true
        },
        {
            "depend": "nasm",
            "build-depend": true
        }
    ],
    "resource": [],
    "conflicts": [],
    "patches": [],
    "install": [
        "args = std_cmake_args + %w[",
        "-DLINKED_10BIT=ON",
        "-DLINKED_12BIT=ON",
        "-DEXTRA_LINK_FLAGS=-L.",
        "-DEXTRA_LIB=x265_main10.a;x265_main12.a",
        "]",
        "high_bit_depth_args = std_cmake_args + %w[",
        "-DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF",
        "-DENABLE_SHARED=OFF -DENABLE_CLI=OFF",
        "]",
        "(buildpath/\"8bit\").mkpath",
        "mkdir \"10bit\" do",
        "system \"cmake\", buildpath/\"source\", *high_bit_depth_args",
        "system \"make\"",
        "mv \"libx265.a\", buildpath/\"8bit/libx265_main10.a\""
    ],
    "version": "265_3.0",
    "file": "x265.rb"
}