# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= x264 VERSION= 0.159.2991 KEYWORDS= multimedia VARIANTS= standard SDESC[standard]= H.264/MPEG-4 AVC Video Encoder HOMEPAGE= https://www.videolan.org/developers/x264.html CONTACT= nobody DOWNLOAD_GROUPS= main SITES[main]= https://code.videolan.org/videolan/x264/-/archive/1771b55/ DISTFILE[1]= 1771b55.tar.bz2:main DIST_SUBDIR= x264 DF_INDEX= 1 SPKGS[standard]= program library OPTIONS_AVAILABLE= H10P ASM OPTIONS_STANDARD= H10P ASM OPT_ON[x86_64]= ASM OPT_ON[i386]= ASM BUILD_DEPENDS= bash:primary:standard BUILDRUN_DEPENDS= libav:single:standard l-smash:single:standard USES= pkgconfig gmake shebangfix DISTNAME= x264-1771b55-1771b556ee45207f8711744ccbd5d42a3949b14c LICENSE= GPLv2+:library LICENSE_TERMS= library:{{WRKDIR}}/TERMS LICENSE_FILE= GPLv2+:{{WRKSRC}}/COPYING LICENSE_AWK= TERMS:"^$$" LICENSE_SOURCE= TERMS:{{WRKSRC}}/x264.h LICENSE_SCHEME= solo FPC_EQUIVALENT= multimedia/x264 SHEBANG_FILES= configure MUST_CONFIGURE= yes CONFIGURE_ARGS= --prefix="{{PREFIX}}" --host="{{CONFIGURE_TARGET}}" --extra-cflags="{{CPPFLAGS}} {{CFLAGS}}" --extra-ldflags="{{LDFLAGS}}" --enable-static --enable-shared --enable-strip --disable-gpac --disable-ffms --disable-avs INSTALL_REQ_TOOLCHAIN= yes PLIST_SUB= X264_BUILD=159 CFLAGS= -I{{LOCALBASE}}/include/libav LDFLAGS= -L{{LOCALBASE}}/lib/libav -Wl,-rpath,{{LOCALBASE}}/lib/libav [ASM].BUILD_DEPENDS_ON= nasm:primary:standard [ASM].CONFIGURE_ARGS_OFF= --disable-asm [H10P].DESCRIPTION= Enable High 10 Profile 10-bit encoding [H10P].BUILD_DEPENDS_OFF= opencl-header:single:standard [H10P].CONFIGURE_ARGS_ON= --bit-depth=10 post-patch: ${REINPLACE_CMD} -e ' \ s|gpac_static|gpac|g' \ ${WRKSRC}/configure ${REINPLACE_CMD} -e ' \ s|bash|sh|; \ s|VER="x"|VER="2991 1771b55"|; \ s|VERSION=""|VERSION=" r2991 1771b55"|' \ ${WRKSRC}/version.sh [FILE:210:descriptions/desc.program] x264 is a free software library and application for encoding video streams into the H.264/MPEG-4 AVC compression format, and is released under the terms of the GNU GPL. This package contains the x264 program. [FILE:807:descriptions/desc.library] x264 is a free software library and application for encoding video streams into the H.264/MPEG-4 AVC compression format, and is released under the terms of the GNU GPL. Features Overview * Provides best-in-class performance, compression, and features. * Achieves dramatic performance, encoding 4 or more 1080p streams in realtime on a single consumer-level computer. * Gives the best quality, having the most advanced psychovisual optimizations. * Support features necessary for many different applications, such as television broadcast, Blu-ray low-latency video applications, and web video. * x264 forms the core of many web video services, such as Youtube, Facebook, Vimeo, and Hulu. It is widely used by television broadcasters and ISPs. This package contains the x264 library. [FILE:99:distinfo] 3010ba620ff6271e4028eeb4f98e1441337d1c7ff4c7f83664b2428a56af34c0 766222 x264/1771b55.tar.bz2 [FILE:9:manifests/plist.program] bin/x264 [FILE:109:manifests/plist.library] include/ x264.h x264_config.h lib/ libx264.a libx264.so libx264.so.%%X264_BUILD%% lib/pkgconfig/x264.pc [FILE:771:patches/patch-common_cpu.c] --- common/cpu.c.orig 2019-11-26 23:50:00 UTC +++ common/cpu.c @@ -33,7 +33,7 @@ #if SYS_BEOS #include #endif -#if SYS_MACOSX || SYS_FREEBSD +#if SYS_MACOSX || SYS_FREEBSD || SYS_DRAGONFLY #include #include #endif @@ -325,6 +325,13 @@ uint32_t x264_cpu_detect( void ) return cpu; } +#elif SYS_DRAGONFLY + +uint32_t x264_cpu_detect( void ) +{ + return 0; +} + #elif SYS_LINUX uint32_t x264_cpu_detect( void ) @@ -460,7 +467,7 @@ int x264_cpu_num_processors( void ) get_system_info( &info ); return info.cpu_count; -#elif SYS_MACOSX || SYS_FREEBSD || SYS_OPENBSD +#elif SYS_MACOSX || SYS_FREEBSD || SYS_OPENBSD || SYS_DRAGONFLY int ncpu; size_t length = sizeof( ncpu ); #if SYS_OPENBSD [FILE:604:patches/patch-configure] --- configure.orig 2019-11-26 23:50:00 UTC +++ configure @@ -644,6 +644,10 @@ case $host_os in cc_check "" -mdynamic-no-pic && CFLAGS="$CFLAGS -mdynamic-no-pic" fi ;; + dragonfly*) + SYS="DRAGONFLY" + LDFLAGS="$LDFLAGS -lm" + ;; freebsd*) SYS="FREEBSD" libm="-lm" @@ -1370,6 +1374,9 @@ if [ "$opencl" = "yes" ]; then opencl="yes" define HAVE_OPENCL "(BIT_DEPTH==8)" libdl="-ldl" + else + opencl="yes" + define HAVE_OPENCL "(BIT_DEPTH==8)" fi LDFLAGS="$LDFLAGS $libdl" fi