2014-07-17 22:52:21 +02:00
|
|
|
#
|
2016-03-09 17:18:05 +01:00
|
|
|
# Copyright (C) 2006-2016 OpenWrt.org
|
2014-07-17 22:52:21 +02:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=flac
|
2022-03-03 04:04:56 +01:00
|
|
|
PKG_VERSION:=1.3.4
|
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-21 18:32:27 +02:00
|
|
|
PKG_RELEASE:=1
|
2014-07-17 22:52:21 +02:00
|
|
|
|
2015-01-10 19:39:35 +01:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
2018-08-21 06:12:50 +02:00
|
|
|
PKG_SOURCE_URL:=https://downloads.xiph.org/releases/flac/
|
2022-03-03 04:04:56 +01:00
|
|
|
PKG_HASH:=8ff0607e75a322dd7cd6ec48f4f225471404ae2730d0ea945127b1355155e737
|
2014-07-17 22:52:21 +02:00
|
|
|
|
2019-08-09 20:31:00 +02:00
|
|
|
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
|
2014-07-19 02:50:00 +02:00
|
|
|
PKG_LICENSE:=GFDL-1.2 GPL-2 LGPL-2.1 BSD-3-Clause
|
2014-07-17 22:52:21 +02:00
|
|
|
PKG_LICENSE_FILES:=README COPYING.FDL COPYING.GPL COPYING.LGPL COPYING.Xiph
|
2018-08-21 06:12:50 +02:00
|
|
|
PKG_CPE_ID:=cpe:/a:flac_project:flac
|
2014-07-17 22:52:21 +02:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2022-03-03 04:04:56 +01:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2014-07-17 22:52:21 +02:00
|
|
|
|
|
|
|
define Package/libflac
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Free Lossless Audio Codec library
|
2015-01-10 22:02:10 +01:00
|
|
|
URL:=https://xiph.org/flac
|
2014-07-17 22:52:21 +02:00
|
|
|
endef
|
|
|
|
|
2022-03-03 04:04:56 +01:00
|
|
|
CMAKE_OPTIONS += \
|
|
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
|
|
-DBUILD_CXXLIBS=OFF \
|
|
|
|
-DBUILD_PROGRAMS=OFF \
|
|
|
|
-DBUILD_EXAMPLES=OFF \
|
|
|
|
-DBUILD_DOCS=OFF \
|
|
|
|
-DINSTALL_MANPAGES=OFF \
|
|
|
|
-DINSTALL_CMAKE_CONFIG_MODULE=OFF \
|
|
|
|
-DINSTALL_PKGCONFIG_MODULES=ON \
|
|
|
|
-DWITH_OGG=OFF \
|
|
|
|
-DWITH_STACK_PROTECTOR=OFF
|
2014-07-17 22:52:21 +02:00
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/FLAC \
|
|
|
|
$(1)/usr/include/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) \
|
2022-03-03 04:04:56 +01:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libFLAC.so* \
|
2014-07-17 22:52:21 +02:00
|
|
|
$(1)/usr/lib/
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
|
|
|
|
$(1)/usr/lib/pkgconfig/
|
2022-03-03 04:04:56 +01:00
|
|
|
$(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/flac.pc
|
|
|
|
$(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/flac.pc
|
2014-07-17 22:52:21 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libflac/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libFLAC.so* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libflac))
|