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/d198931/
13 DISTFILE[1]= d198931.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-d198931-d198931a63049db1f2c92d96c34904c69fde8117
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}}"
50 --disable-bashcompletion
55 INSTALL_REQ_TOOLCHAIN= yes
56 PLIST_SUB= X264_BUILD=161
58 CFLAGS= -I{{LOCALBASE}}/include/libav
59 LDFLAGS= -L{{LOCALBASE}}/lib/libav
60 -Wl,-rpath,{{LOCALBASE}}/lib/libav
62 [ASM].BUILD_DEPENDS_ON= nasm:primary:standard
63 [ASM].CONFIGURE_ARGS_OFF= --disable-asm
65 [H10P].DESCRIPTION= Enable High 10 Profile 10-bit encoding
66 [H10P].BUILD_DEPENDS_OFF= opencl-headers:single:standard
67 [H10P].CONFIGURE_ARGS_ON= --bit-depth=10
70 ${REINPLACE_CMD} -e ' \
71 s|gpac_static|gpac|g' \
73 ${REINPLACE_CMD} -e ' \
75 s|VER="x"|VER="3020 d198931"|; \
76 s|VERSION=""|VERSION=" r3020 d198931"|' \
79 [FILE:210:descriptions/desc.program]
80 x264 is a free software library and application for encoding video streams
81 into the H.264/MPEG-4 AVC compression format, and is released under the
84 This package contains the x264 program.
87 [FILE:807:descriptions/desc.library]
88 x264 is a free software library and application for encoding video streams
89 into the H.264/MPEG-4 AVC compression format, and is released under the
93 * Provides best-in-class performance, compression, and features.
94 * Achieves dramatic performance, encoding 4 or more 1080p streams in
95 realtime on a single consumer-level computer.
96 * Gives the best quality, having the most advanced psychovisual
98 * Support features necessary for many different applications, such as
99 television broadcast, Blu-ray low-latency video applications, and web
101 * x264 forms the core of many web video services, such as Youtube,
102 Facebook, Vimeo, and Hulu. It is widely used by television broadcasters
105 This package contains the x264 library.
109 91d251edaf17350992aff3cac96e9faf6291ff17fd74577e8e4a4ada6e69fe06 768142 x264/d198931.tar.bz2
112 [FILE:57:manifests/plist.program]
113 @comment share/bash-completion/completions/x264
117 [FILE:109:manifests/plist.library]
124 libx264.so.%%X264_BUILD%%
125 lib/pkgconfig/x264.pc
128 [FILE:469:patches/patch-Makefile]
129 -T (treat DEST as a normal file) is not supported by BSD install(1)
131 --- Makefile.orig 2020-09-12 17:23:57 UTC
133 @@ -413,7 +413,7 @@ endif
134 install-bashcompletion:
135 ifneq ($(BASHCOMPLETIONSDIR),)
136 $(INSTALL) -d $(DESTDIR)$(BASHCOMPLETIONSDIR)
137 - $(INSTALL) -m 644 -T $(SRCPATH)/tools/bash-autocomplete.sh $(DESTDIR)$(BASHCOMPLETIONSDIR)/x264
138 + $(INSTALL) -m 644 $(SRCPATH)/tools/bash-autocomplete.sh $(DESTDIR)$(BASHCOMPLETIONSDIR)/x264
144 [FILE:771:patches/patch-common_cpu.c]
145 --- common/cpu.c.orig 2020-09-12 17:23:57 UTC
149 #include <kernel/OS.h>
151 -#if SYS_MACOSX || SYS_FREEBSD
152 +#if SYS_MACOSX || SYS_FREEBSD || SYS_DRAGONFLY
153 #include <sys/types.h>
154 #include <sys/sysctl.h>
156 @@ -325,6 +325,13 @@ uint32_t x264_cpu_detect( void )
162 +uint32_t x264_cpu_detect( void )
169 uint32_t x264_cpu_detect( void )
170 @@ -460,7 +467,7 @@ int x264_cpu_num_processors( void )
171 get_system_info( &info );
172 return info.cpu_count;
174 -#elif SYS_MACOSX || SYS_FREEBSD || SYS_OPENBSD
175 +#elif SYS_MACOSX || SYS_FREEBSD || SYS_OPENBSD || SYS_DRAGONFLY
177 size_t length = sizeof( ncpu );
181 [FILE:604:patches/patch-configure]
182 --- configure.orig 2020-09-12 17:23:57 UTC
184 @@ -659,6 +659,10 @@ case $host_os in
185 cc_check "" -mdynamic-no-pic && CFLAGS="$CFLAGS -mdynamic-no-pic"
190 + LDFLAGS="$LDFLAGS -lm"
195 @@ -1386,6 +1390,9 @@ if [ "$opencl" = "yes" ]; then
197 define HAVE_OPENCL "(BIT_DEPTH==8)"
201 + define HAVE_OPENCL "(BIT_DEPTH==8)"
203 LDFLAGS="$LDFLAGS $libdl"