Ravenports generated: 11 Oct 2020 21:37
[ravenports.git] / bucket_1F / x264
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               x264
4 VERSION=                0.159.2991
5 KEYWORDS=               multimedia
6 VARIANTS=               standard
7 SDESC[standard]=        H.264/MPEG-4 AVC Video Encoder
8 HOMEPAGE=               https://www.videolan.org/developers/x264.html
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            https://code.videolan.org/videolan/x264/-/archive/1771b55/
13 DISTFILE[1]=            1771b55.tar.bz2:main
14 DIST_SUBDIR=            x264
15 DF_INDEX=               1
16 SPKGS[standard]=        program
17                         library
18
19 OPTIONS_AVAILABLE=      H10P ASM
20 OPTIONS_STANDARD=       H10P ASM
21 OPT_ON[x86_64]=         ASM
22 OPT_ON[i386]=           ASM
23
24 BUILD_DEPENDS=          bash:primary:standard
25 BUILDRUN_DEPENDS=       libav:single:standard
26                         l-smash:single:standard
27
28 USES=                   pkgconfig gmake shebangfix
29
30 DISTNAME=               x264-1771b55-1771b556ee45207f8711744ccbd5d42a3949b14c
31
32 LICENSE=                GPLv2+:library
33 LICENSE_TERMS=          library:{{WRKDIR}}/TERMS
34 LICENSE_FILE=           GPLv2+:{{WRKSRC}}/COPYING
35 LICENSE_AWK=            TERMS:"^$$"
36 LICENSE_SOURCE=         TERMS:{{WRKSRC}}/x264.h
37 LICENSE_SCHEME=         solo
38
39 FPC_EQUIVALENT=         multimedia/x264
40 SHEBANG_FILES=          configure
41
42 MUST_CONFIGURE=         yes
43 CONFIGURE_ARGS=         --prefix="{{PREFIX}}"
44                         --host="{{CONFIGURE_TARGET}}"
45                         --extra-cflags="{{CPPFLAGS}} {{CFLAGS}}"
46                         --extra-ldflags="{{LDFLAGS}}"
47                         --enable-static
48                         --enable-shared
49                         --enable-strip
50                         --disable-gpac
51                         --disable-ffms
52                         --disable-avs
53
54 INSTALL_REQ_TOOLCHAIN=  yes
55 PLIST_SUB=              X264_BUILD=159
56
57 CFLAGS=                 -I{{LOCALBASE}}/include/libav
58 LDFLAGS=                -L{{LOCALBASE}}/lib/libav
59                         -Wl,-rpath,{{LOCALBASE}}/lib/libav
60
61 [ASM].BUILD_DEPENDS_ON=                 nasm:primary:standard
62 [ASM].CONFIGURE_ARGS_OFF=               --disable-asm
63
64 [H10P].DESCRIPTION=                     Enable High 10 Profile 10-bit encoding
65 [H10P].BUILD_DEPENDS_OFF=               opencl-header:single:standard
66 [H10P].CONFIGURE_ARGS_ON=               --bit-depth=10
67
68 post-patch:
69         ${REINPLACE_CMD} -e ' \
70                 s|gpac_static|gpac|g' \
71                 ${WRKSRC}/configure
72         ${REINPLACE_CMD} -e ' \
73                 s|bash|sh|; \
74                 s|VER="x"|VER="2991 1771b55"|; \
75                 s|VERSION=""|VERSION=" r2991 1771b55"|' \
76                 ${WRKSRC}/version.sh
77
78 [FILE:210:descriptions/desc.program]
79 x264 is a free software library and application for encoding video streams
80 into the H.264/MPEG-4 AVC compression format, and is released under the
81 terms of the GNU GPL.
82
83 This package contains the x264 program.
84
85
86 [FILE:807:descriptions/desc.library]
87 x264 is a free software library and application for encoding video streams
88 into the H.264/MPEG-4 AVC compression format, and is released under the
89 terms of the GNU GPL.
90
91 Features Overview
92  * Provides best-in-class performance, compression, and features.
93  * Achieves dramatic performance, encoding 4 or more 1080p streams in
94    realtime on a single consumer-level computer.
95  * Gives the best quality, having the most advanced psychovisual
96    optimizations.
97  * Support features necessary for many different applications, such as
98    television broadcast, Blu-ray low-latency video applications, and web
99    video.
100  * x264 forms the core of many web video services, such as Youtube,
101    Facebook, Vimeo, and Hulu. It is widely used by television broadcasters
102    and ISPs.
103
104 This package contains the x264 library.
105
106
107 [FILE:99:distinfo]
108 3010ba620ff6271e4028eeb4f98e1441337d1c7ff4c7f83664b2428a56af34c0       766222 x264/1771b55.tar.bz2
109
110
111 [FILE:9:manifests/plist.program]
112 bin/x264
113
114
115 [FILE:109:manifests/plist.library]
116 include/
117  x264.h
118  x264_config.h
119 lib/
120  libx264.a
121  libx264.so
122  libx264.so.%%X264_BUILD%%
123 lib/pkgconfig/x264.pc
124
125
126 [FILE:771:patches/patch-common_cpu.c]
127 --- common/cpu.c.orig   2019-11-26 23:50:00 UTC
128 +++ common/cpu.c
129 @@ -33,7 +33,7 @@
130  #if SYS_BEOS
131  #include <kernel/OS.h>
132  #endif
133 -#if SYS_MACOSX || SYS_FREEBSD
134 +#if SYS_MACOSX || SYS_FREEBSD || SYS_DRAGONFLY
135  #include <sys/types.h>
136  #include <sys/sysctl.h>
137  #endif
138 @@ -325,6 +325,13 @@ uint32_t x264_cpu_detect( void )
139      return cpu;
140  }
141  
142 +#elif SYS_DRAGONFLY
143 +
144 +uint32_t x264_cpu_detect( void )
145 +{
146 +    return 0;
147 +}
148 +
149  #elif SYS_LINUX
150  
151  uint32_t x264_cpu_detect( void )
152 @@ -460,7 +467,7 @@ int x264_cpu_num_processors( void )
153      get_system_info( &info );
154      return info.cpu_count;
155  
156 -#elif SYS_MACOSX || SYS_FREEBSD || SYS_OPENBSD
157 +#elif SYS_MACOSX || SYS_FREEBSD || SYS_OPENBSD || SYS_DRAGONFLY
158      int ncpu;
159      size_t length = sizeof( ncpu );
160  #if SYS_OPENBSD
161
162
163 [FILE:604:patches/patch-configure]
164 --- configure.orig      2019-11-26 23:50:00 UTC
165 +++ configure
166 @@ -644,6 +644,10 @@ case $host_os in
167              cc_check "" -mdynamic-no-pic && CFLAGS="$CFLAGS -mdynamic-no-pic"
168          fi
169          ;;
170 +    dragonfly*)
171 +        SYS="DRAGONFLY"
172 +        LDFLAGS="$LDFLAGS -lm"
173 +        ;;
174      freebsd*)
175          SYS="FREEBSD"
176          libm="-lm"
177 @@ -1370,6 +1374,9 @@ if [ "$opencl" = "yes" ]; then
178          opencl="yes"
179          define HAVE_OPENCL "(BIT_DEPTH==8)"
180          libdl="-ldl"
181 +    else
182 +        opencl="yes"
183 +        define HAVE_OPENCL "(BIT_DEPTH==8)"
184      fi
185      LDFLAGS="$LDFLAGS $libdl"
186  fi
187