mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 06:51:51 +08:00
775c87e364
Changes since 2024-05-13: c24e06c2 configure: Check for SVE support in MS armasm64 via as_check 3a8b5be2 aarch64: Use elf_aux_info() for CPU feature detection on FreeBSD/OpenBSD 1243d9ff Provide x264_getauxval() wrapper for getauxvaul() and elf_aux_info() 80c1c47c configure: Add DragonFly support 3a21e97b Fix build with Android NDK and API < 24 for 32-bit targets b1d2de88 Use getauxval() on Linux and elf_aux_info() on FreeBSD/OpenBSD on arm/ppc da14df55 Make use of sysconf(3) _SC_NPROCESSORS_ONLN and _SC_NPROCESSORS_CONF 023112c6 aarch64: defines involving bit shifts should be unsigned 938601b9 Use sysctlbyname(3) hw.logicalcpu on macOS a64111b1 Enable use of __sync_fetch_and_add() wherever detected instead of just X86 450946f9 ci: Test compiling for Android 52f7694d Use sched_getaffinity on Android 373697b4 Bump dates to 2025 c80f8a28 msvsdepend: Allow using the script for .S sources too 27d83708 Makefile: Generate dependency information implicitly while compiling a0191bd8 configure: Use as_check for checking for aarch64 features 72ce1cde configure: Use as_check for the main check for whether NEON is supported f87ca183 configure: Check for .arch and .arch_extension for enabling aarch64 extensions 87044b21 aarch64: Use configure detected directives for enabling SVE/SVE2 fc4012fb configure: Check for the dotprod and i8mm aarch64 extensions 0e48d072 aarch64: Add flags for runtime detection of dotprod and i8mm 570f6c70 aarch64: Add runtime detection of extensions on Windows and macOS fe9e4a7f Provide implementations for functions using the instructions SDOT/UDOT in the DotProd Armv8 extension. 32c3b801 lavf: Update the code to work with the latest libavutil API 4360ac37 ci: Fix ffmpeg build 40617ddb ci: Remove vlc-contrib dependency 85b5ccea Update gas-preprocessor.pl to the latest upstream version ff620d0c configure: Use MSYSTEM_CARCH for default arch on msys2 714e07b4 arm: Don't test x264_cpu_fast_neon_mrc_test on Windows 291476d7 windows: Fix named pipes detection b35605ac i8mm & neon hpel_filter optimization 0480cb05 riscv64: add compile support Signed-off-by: Daniel Golle <daniel@makrotopia.org>
88 lines
2.2 KiB
Makefile
88 lines
2.2 KiB
Makefile
#
|
|
# Copyright (C) 2016 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=x264
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://code.videolan.org/videolan/x264.git
|
|
PKG_SOURCE_DATE:=2025-09-10
|
|
PKG_SOURCE_VERSION:=0480cb05fa188d37ae87e8f4fd8f1aea3711f7ee
|
|
PKG_MIRROR_HASH:=03c13f100cf6bd3c3d309f410be159794103ae2ee73f82f33e4b871d718b1fcd
|
|
|
|
PKG_MAINTAINER:=Adrian Panella <ianchi74@outlook.com>
|
|
PKG_LICENSE:=GPL-2.0-or-later
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
PKG_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
TARGET_CFLAGS:=$(filter-out -O%,$(TARGET_CFLAGS))
|
|
MAKE_FLAGS:=$(filter-out LD=%,$(MAKE_FLAGS)) LD="$(TARGET_CC) -o"
|
|
|
|
# Instead of blacklisting a boatload of platforms just enable
|
|
# optimization where it makes sense (matters) ie ARMv7+ and x86_64
|
|
|
|
ifneq ($(findstring cortex-a,$(CONFIG_CPU_TYPE)),)
|
|
CONFIGURE_ARGS += --enable-lto
|
|
else
|
|
ifneq ($(CONFIG_TARGET_x86_64),)
|
|
CONFIGURE_ARGS += --enable-lto
|
|
ifeq ($(CONFIG_NASM),y)
|
|
CONFIGURE_VARS+= AS=nasm
|
|
MAKE_FLAGS+= AS=nasm
|
|
endif
|
|
else
|
|
CONFIGURE_VARS+= AS=
|
|
MAKE_FLAGS+= AS=
|
|
CONFIGURE_ARGS += --disable-asm
|
|
endif
|
|
endif
|
|
|
|
CONFIGURE_ARGS += \
|
|
--disable-cli \
|
|
--enable-shared \
|
|
--disable-opencl \
|
|
--enable-pic \
|
|
--disable-avs \
|
|
--disable-ffms \
|
|
--disable-gpac \
|
|
--disable-lsmash
|
|
|
|
define Package/libx264
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=H264/AVC free codec library
|
|
DEPENDS:=+libpthread @BUILD_PATENTED
|
|
URL:=https://www.videolan.org/developers/x264.html
|
|
endef
|
|
|
|
define Package/libx264/description
|
|
x264 is a free software library for encoding
|
|
video streams into the H.264/MPEG-4 AVC compression format.
|
|
endef
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include/x264/
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
|
|
endef
|
|
|
|
define Package/libx264/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libx264))
|