mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-01 01:13:29 +08:00
f40bb40075
Refactored patch 0002, added support for Intel SSE2.
Changelog:
b363e01e6b
/#diff-2
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
32 lines
922 B
Makefile
32 lines
922 B
Makefile
################################################################################
|
|
#
|
|
# libpng
|
|
#
|
|
################################################################################
|
|
|
|
LIBPNG_VERSION = 1.6.29
|
|
LIBPNG_SERIES = 16
|
|
LIBPNG_SOURCE = libpng-$(LIBPNG_VERSION).tar.xz
|
|
LIBPNG_SITE = http://downloads.sourceforge.net/project/libpng/libpng${LIBPNG_SERIES}/$(LIBPNG_VERSION)
|
|
LIBPNG_LICENSE = Libpng
|
|
LIBPNG_LICENSE_FILES = LICENSE
|
|
LIBPNG_INSTALL_STAGING = YES
|
|
LIBPNG_DEPENDENCIES = host-pkgconf zlib
|
|
HOST_LIBPNG_DEPENDENCIES = host-pkgconf host-zlib
|
|
LIBPNG_CONFIG_SCRIPTS = libpng$(LIBPNG_SERIES)-config libpng-config
|
|
|
|
ifeq ($(BR2_ARM_CPU_HAS_NEON),y)
|
|
LIBPNG_CONF_OPTS += --enable-arm-neon
|
|
else
|
|
LIBPNG_CONF_OPTS += --disable-arm-neon
|
|
endif
|
|
|
|
ifeq ($(BR2_X86_CPU_HAS_SSE2),y)
|
|
LIBPNG_CONF_OPTS += --enable-intel-sse
|
|
else
|
|
LIBPNG_CONF_OPTS += --disable-intel-sse
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|