2017-04-08 17:18:03 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# pngquant
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-08-28 18:38:09 +02:00
|
|
|
PNGQUANT_VERSION = 2.12.5
|
2017-04-08 17:18:03 +02:00
|
|
|
PNGQUANT_SOURCE = pngquant-$(PNGQUANT_VERSION)-src.tar.gz
|
|
|
|
PNGQUANT_SITE = https://pngquant.org
|
|
|
|
PNGQUANT_LICENSE = GPL-3.0+
|
|
|
|
PNGQUANT_LICENSE_FILES = COPYRIGHT
|
|
|
|
HOST_PNGQUANT_DEPENDENCIES = host-libpng
|
|
|
|
PNGQUANT_DEPENDENCIES = libpng
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LCMS2),y)
|
|
|
|
PNGQUANT_DEPENDENCIES += lcms2
|
|
|
|
endif
|
|
|
|
|
|
|
|
define PNGQUANT_CONFIGURE_CMDS
|
|
|
|
(cd $(@D) && \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
$(if $(BR2_PACKAGE_LCMS2),--with-lcms2,--without-lcms2) \
|
|
|
|
$(if $(BR2_X86_CPU_HAS_SSE),--enable-sse,--disable-sse) \
|
2017-09-06 18:39:04 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2017-04-08 17:18:03 +02:00
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define PNGQUANT_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define PNGQUANT_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(TARGET_DIR)" -C $(@D) install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_PNGQUANT_CONFIGURE_CMDS
|
|
|
|
(cd $(@D) && \
|
|
|
|
$(HOST_CONFIGURE_OPTS) \
|
2017-07-03 23:43:55 +02:00
|
|
|
CC=$(HOSTCC_NOCCACHE) \
|
2017-07-05 13:14:18 +02:00
|
|
|
./configure --prefix=$(HOST_DIR) \
|
2017-04-08 17:18:03 +02:00
|
|
|
--without-lcms2 \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_PNGQUANT_BUILD_CMDS
|
|
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_PNGQUANT_INSTALL_CMDS
|
|
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) install
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|
2018-04-29 14:15:20 +02:00
|
|
|
$(eval $(host-generic-package))
|