2014-07-02 13:56:51 +00:00
|
|
|
#
|
2015-11-22 15:15:26 +00:00
|
|
|
# Copyright (C) 2006-2015 OpenWrt.org
|
2014-07-02 13:56:51 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libpng
|
2023-04-26 06:39:14 +00:00
|
|
|
PKG_VERSION:=1.6.39
|
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 16:32:27 +00:00
|
|
|
PKG_RELEASE:=1
|
2014-07-02 13:56:51 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
|
|
PKG_SOURCE_URL:=@SF/libpng
|
2023-04-26 06:39:14 +00:00
|
|
|
PKG_HASH:=1f4696ce70b4ee5f85f1e1623dc1229b210029fa4b7aee573df3e2ba7b036937
|
2014-07-02 13:56:51 +00:00
|
|
|
|
2018-12-26 16:51:46 +00:00
|
|
|
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
|
2019-09-02 13:15:08 +00:00
|
|
|
PKG_LICENSE:=Libpng GPL-2.0-or-later BSD-3-Clause
|
2014-07-02 13:56:51 +00:00
|
|
|
PKC_LICENSE_FILES:=LICENSE contrib/gregbook/COPYING contrib/gregbook/LICENSE
|
2018-09-09 17:57:00 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:libpng:libpng
|
2014-07-02 13:56:51 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-06-10 23:27:06 +00:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2014-07-02 13:56:51 +00:00
|
|
|
|
|
|
|
define Package/libpng
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
DEPENDS:=+zlib
|
|
|
|
TITLE:=A PNG format files handling library
|
|
|
|
URL:=http://www.libpng.org/pub/png/libpng.html
|
|
|
|
endef
|
|
|
|
|
2020-06-28 02:20:18 +00:00
|
|
|
CMAKE_OPTIONS += \
|
|
|
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
2020-12-15 04:55:58 +00:00
|
|
|
-DPNG_BUILD_ZLIB=OFF \
|
2020-06-28 02:20:18 +00:00
|
|
|
-DPNG_SHARED=ON \
|
|
|
|
-DPNG_STATIC=ON \
|
2020-12-14 03:19:54 +00:00
|
|
|
-DPNG_EXECUTABLES=OFF \
|
2020-06-28 02:20:18 +00:00
|
|
|
-DPNG_TESTS=OFF \
|
|
|
|
-DPNG_FRAMEWORK=OFF \
|
|
|
|
-DPNG_DEBUG=OFF \
|
2021-03-15 02:18:44 +00:00
|
|
|
-DPNG_HARDWARE_OPTIMIZATIONS=O$(if $(findstring powerpc,$(CONFIG_ARCH))$(findstring mips,$(CONFIG_ARCH)),FF,N) \
|
2020-06-28 02:20:18 +00:00
|
|
|
-Dld-version-script=OFF
|
2014-07-02 13:56:51 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
2020-06-28 02:20:18 +00:00
|
|
|
$(call Build/InstallDev/cmake,$(1))
|
2020-12-10 09:41:23 +00:00
|
|
|
$(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(1)/usr/bin/libpng{,16}-config
|
|
|
|
$(SED) '/^includedir=/s|/usr|$$$${prefix}|' $(1)/usr/bin/libpng{,16}-config
|
|
|
|
$(SED) '/^libdir=/s|/usr|$$$${prefix}|' $(1)/usr/bin/libpng{,16}-config
|
2020-06-28 02:20:18 +00:00
|
|
|
$(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libpng16.pc
|
|
|
|
$(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libpng16.pc
|
2014-07-02 13:56:51 +00:00
|
|
|
$(INSTALL_DIR) $(2)/bin
|
2017-04-01 08:13:40 +00:00
|
|
|
for f in libpng{,16}-config; do \
|
2014-07-02 13:56:51 +00:00
|
|
|
$(LN) ../../usr/bin/$$$$f $(2)/bin/ ; \
|
|
|
|
done
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libpng/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2017-04-16 00:54:17 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpng16.so* $(1)/usr/lib/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpng.so $(1)/usr/lib/
|
2014-07-02 13:56:51 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libpng))
|