2014-12-06 13:25:18 +08:00
|
|
|
#
|
2015-04-06 21:51:26 +08:00
|
|
|
# Copyright (C) 2008-2015 OpenWrt.org
|
2016-11-23 02:09:37 +08:00
|
|
|
# Copyright (C) 2016 Luiz Angelo Daros de Luca
|
2014-12-06 13:25:18 +08:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libvpx
|
2023-10-07 11:00:07 +08:00
|
|
|
PKG_VERSION:=1.13.1
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-22 00:32:27 +08:00
|
|
|
PKG_RELEASE:=1
|
2014-12-06 13:25:18 +08:00
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
2020-04-22 06:18:20 +08:00
|
|
|
PKG_SOURCE_URL:=https://chromium.googlesource.com/webm/libvpx
|
2023-10-07 11:00:07 +08:00
|
|
|
PKG_MIRROR_HASH:=55d6880564e354b2d310047773ac211790421e0f3ea70a9280213f7e27fa5f3a
|
2020-04-22 06:18:20 +08:00
|
|
|
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
|
2014-12-06 13:25:18 +08:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Luiz Angelo Daros de Luca <luizluca@gmail.com>
|
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2024-01-25 01:47:43 +08:00
|
|
|
PKG_CPE_ID:=cpe:/a:webmproject:libvpx
|
2020-04-22 06:18:20 +08:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2014-12-06 13:25:18 +08:00
|
|
|
|
2017-01-18 05:21:31 +08:00
|
|
|
PKG_ABI_VERSION:=$(subst $(space),.,$(wordlist 1, 2, $(subst .,$(space),$(PKG_VERSION))))
|
|
|
|
|
2014-12-06 13:25:18 +08:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libvpx
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=libvpx
|
2020-04-19 05:11:58 +08:00
|
|
|
URL:=https://www.webmproject.org/
|
2014-12-06 13:25:18 +08:00
|
|
|
DEPENDS:=+libpthread
|
2017-01-18 05:21:31 +08:00
|
|
|
ABI_VERSION:=$(PKG_ABI_VERSION)
|
2014-12-06 13:25:18 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libvpx/description
|
|
|
|
libvpx is a VP8/VP9 Codec SDK.
|
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS = \
|
2019-04-14 12:33:45 +08:00
|
|
|
--target=generic-gnu \
|
|
|
|
--prefix=$(CONFIGURE_PREFIX) \
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
--enable-static \
|
|
|
|
--enable-shared \
|
|
|
|
--disable-examples \
|
|
|
|
--disable-docs \
|
|
|
|
--disable-unit-tests \
|
2014-12-06 13:25:18 +08:00
|
|
|
|
|
|
|
# Add --enable-small as openwrt gcc flags are overwritten
|
|
|
|
ifneq ($(findstring -Os,$(TARGET_CFLAGS)),)
|
|
|
|
CONFIGURE_ARGS += --enable-small
|
|
|
|
endif
|
|
|
|
|
2014-12-16 04:29:57 +08:00
|
|
|
# libvpx expects gcc as linker but uses $LD if provided
|
|
|
|
# However, OpenWRT defines LD as *-uclibc-ld and not *-gcc
|
2019-04-30 02:05:18 +08:00
|
|
|
CONFIGURE_VARS := $(filter-out LD=%,$(CONFIGURE_VARS)) LD="$(TARGET_CC)" \
|
|
|
|
CROSS=$(GNU_TARGET_NAME)
|
|
|
|
MAKE_FLAGS := $(filter-out LD=%,$(MAKE_FLAGS)) LD="$(TARGET_CC)"
|
2014-12-06 13:25:18 +08:00
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include/vpx/
|
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/vpx/* $(1)/usr/include/vpx/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} $(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
|
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libvpx/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libvpx))
|