mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
libpng: disable building of executables
They are not packaged here. Upstream backport. Speeds up compilation and avoids a zlib hack. Refreshed patches. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=libpng
|
||||
PKG_VERSION:=1.6.37
|
||||
PKG_RELEASE:=8
|
||||
PKG_RELEASE:=9
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||
PKG_SOURCE_URL:=@SF/libpng
|
||||
@@ -38,14 +38,13 @@ CMAKE_OPTIONS += \
|
||||
-DPNG_BUILD_ZLIB=ON \
|
||||
-DPNG_SHARED=ON \
|
||||
-DPNG_STATIC=ON \
|
||||
-DPNG_EXECUTABLES=OFF \
|
||||
-DPNG_TESTS=OFF \
|
||||
-DPNG_FRAMEWORK=OFF \
|
||||
-DPNG_DEBUG=OFF \
|
||||
-DPNG_HARDWARE_OPTIMIZATIONS=O$(if $(findstring powerpc,$(CONFIG_ARCH))$(findstring mipsel,$(CONFIG_ARCH)),FF,N) \
|
||||
-Dld-version-script=OFF
|
||||
|
||||
TARGET_LDFLAGS += -lz
|
||||
|
||||
define Build/InstallDev
|
||||
$(call Build/InstallDev/cmake,$(1))
|
||||
$(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(1)/usr/bin/libpng{,16}-config
|
||||
|
||||
Reference in New Issue
Block a user