1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= H.264/MPEG-4 AVC Video Encoder
8 HOMEPAGE= https://www.videolan.org/developers/x264.html
12 SITES[main]= https://code.videolan.org/videolan/x264/-/archive/1771b55/
13 DISTFILE[1]= 1771b55.tar.bz2:main
16 SPKGS[standard]= program
19 OPTIONS_AVAILABLE= H10P ASM
20 OPTIONS_STANDARD= H10P ASM
24 BUILD_DEPENDS= bash:primary:standard
25 BUILDRUN_DEPENDS= libav:single:standard
26 l-smash:single:standard
28 USES= pkgconfig gmake shebangfix
30 DISTNAME= x264-1771b55-1771b556ee45207f8711744ccbd5d42a3949b14c
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
39 FPC_EQUIVALENT= multimedia/x264
40 SHEBANG_FILES= configure
43 CONFIGURE_ARGS= --prefix="{{PREFIX}}"
44 --host="{{CONFIGURE_TARGET}}"
45 --extra-cflags="{{CPPFLAGS}} {{CFLAGS}}"
46 --extra-ldflags="{{LDFLAGS}}"
54 INSTALL_REQ_TOOLCHAIN= yes
55 PLIST_SUB= X264_BUILD=159
57 CFLAGS= -I{{LOCALBASE}}/include/libav
58 LDFLAGS= -L{{LOCALBASE}}/lib/libav
59 -Wl,-rpath,{{LOCALBASE}}/lib/libav
61 [ASM].BUILD_DEPENDS_ON= nasm:primary:standard
62 [ASM].CONFIGURE_ARGS_OFF= --disable-asm
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
69 ${REINPLACE_CMD} -e ' \
70 s|gpac_static|gpac|g' \
72 ${REINPLACE_CMD} -e ' \
74 s|VER="x"|VER="2991 1771b55"|; \
75 s|VERSION=""|VERSION=" r2991 1771b55"|' \
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
83 This package contains the x264 program.
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
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
97 * Support features necessary for many different applications, such as
98 television broadcast, Blu-ray low-latency video applications, and web
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
104 This package contains the x264 library.
108 3010ba620ff6271e4028eeb4f98e1441337d1c7ff4c7f83664b2428a56af34c0 766222 x264/1771b55.tar.bz2
111 [FILE:9:manifests/plist.program]
115 [FILE:109:manifests/plist.library]
122 libx264.so.%%X264_BUILD%%
123 lib/pkgconfig/x264.pc
126 [FILE:771:patches/patch-common_cpu.c]
127 --- common/cpu.c.orig 2019-11-26 23:50:00 UTC
131 #include <kernel/OS.h>
133 -#if SYS_MACOSX || SYS_FREEBSD
134 +#if SYS_MACOSX || SYS_FREEBSD || SYS_DRAGONFLY
135 #include <sys/types.h>
136 #include <sys/sysctl.h>
138 @@ -325,6 +325,13 @@ uint32_t x264_cpu_detect( void )
144 +uint32_t x264_cpu_detect( void )
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;
156 -#elif SYS_MACOSX || SYS_FREEBSD || SYS_OPENBSD
157 +#elif SYS_MACOSX || SYS_FREEBSD || SYS_OPENBSD || SYS_DRAGONFLY
159 size_t length = sizeof( ncpu );
163 [FILE:604:patches/patch-configure]
164 --- configure.orig 2019-11-26 23:50:00 UTC
166 @@ -644,6 +644,10 @@ case $host_os in
167 cc_check "" -mdynamic-no-pic && CFLAGS="$CFLAGS -mdynamic-no-pic"
172 + LDFLAGS="$LDFLAGS -lm"
177 @@ -1370,6 +1374,9 @@ if [ "$opencl" = "yes" ]; then
179 define HAVE_OPENCL "(BIT_DEPTH==8)"
183 + define HAVE_OPENCL "(BIT_DEPTH==8)"
185 LDFLAGS="$LDFLAGS $libdl"