2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2004-12-14 09:18:23 +08:00
|
|
|
#
|
2013-06-06 07:53:29 +08:00
|
|
|
# libpng
|
2004-12-14 09:18:23 +08:00
|
|
|
#
|
2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2012-02-22 21:23:33 +08:00
|
|
|
|
2019-04-27 19:42:42 +08:00
|
|
|
LIBPNG_VERSION = 1.6.37
|
2013-10-25 19:34:39 +08:00
|
|
|
LIBPNG_SERIES = 16
|
|
|
|
LIBPNG_SOURCE = libpng-$(LIBPNG_VERSION).tar.xz
|
2018-07-08 13:16:59 +08:00
|
|
|
LIBPNG_SITE = http://downloads.sourceforge.net/project/libpng/libpng$(LIBPNG_SERIES)/$(LIBPNG_VERSION)
|
2019-01-28 00:04:21 +08:00
|
|
|
LIBPNG_LICENSE = Libpng-2.0
|
2012-08-12 04:10:21 +08:00
|
|
|
LIBPNG_LICENSE_FILES = LICENSE
|
2008-10-29 20:49:38 +08:00
|
|
|
LIBPNG_INSTALL_STAGING = YES
|
2012-10-22 23:47:52 +08:00
|
|
|
LIBPNG_DEPENDENCIES = host-pkgconf zlib
|
2016-07-03 06:20:52 +08:00
|
|
|
HOST_LIBPNG_DEPENDENCIES = host-pkgconf host-zlib
|
2013-02-07 20:35:06 +08:00
|
|
|
LIBPNG_CONFIG_SCRIPTS = libpng$(LIBPNG_SERIES)-config libpng-config
|
2017-04-21 21:00:26 +08:00
|
|
|
|
2020-05-04 07:07:53 +08:00
|
|
|
ifeq ($(BR2_ARM_CPU_HAS_NEON)$(BR2_aarch64),y)
|
2017-04-21 21:00:26 +08:00
|
|
|
LIBPNG_CONF_OPTS += --enable-arm-neon
|
|
|
|
else
|
|
|
|
LIBPNG_CONF_OPTS += --disable-arm-neon
|
|
|
|
endif
|
2010-12-23 01:23:11 +08:00
|
|
|
|
2017-04-21 21:00:27 +08:00
|
|
|
ifeq ($(BR2_X86_CPU_HAS_SSE2),y)
|
|
|
|
LIBPNG_CONF_OPTS += --enable-intel-sse
|
|
|
|
else
|
|
|
|
LIBPNG_CONF_OPTS += --disable-intel-sse
|
|
|
|
endif
|
|
|
|
|
2012-07-03 06:07:32 +08:00
|
|
|
$(eval $(autotools-package))
|
2012-07-03 06:06:54 +08:00
|
|
|
$(eval $(host-autotools-package))
|