Bump buidlroot version to 2018.02.6
This commit is contained in:
9
bsp/buildroot/package/pngquant/Config.in
Normal file
9
bsp/buildroot/package/pngquant/Config.in
Normal file
@@ -0,0 +1,9 @@
|
||||
config BR2_PACKAGE_PNGQUANT
|
||||
bool "pngquant"
|
||||
select BR2_PACKAGE_LIBPNG
|
||||
select BR2_PACKAGE_ZLIB
|
||||
help
|
||||
Lossy PNG compressor — pngquant command and libimagequant
|
||||
library
|
||||
|
||||
https://pngquant.org
|
||||
4
bsp/buildroot/package/pngquant/pngquant.hash
Normal file
4
bsp/buildroot/package/pngquant/pngquant.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# From https://pngquant.org/releases.html
|
||||
sha1 30f54b0731b8913a8c8b3bd1fdf53e1c68b12262 pngquant-2.10.1-src.tar.gz
|
||||
# Locally computed
|
||||
sha256 e07a21fe37b6ae9fa5524f1e20a8e73b698566d42d2cc3edd469531745faa850 pngquant-2.10.1-src.tar.gz
|
||||
55
bsp/buildroot/package/pngquant/pngquant.mk
Normal file
55
bsp/buildroot/package/pngquant/pngquant.mk
Normal file
@@ -0,0 +1,55 @@
|
||||
################################################################################
|
||||
#
|
||||
# pngquant
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PNGQUANT_VERSION = 2.10.1
|
||||
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) \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
)
|
||||
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) \
|
||||
CC=$(HOSTCC_NOCCACHE) \
|
||||
./configure --prefix=$(HOST_DIR) \
|
||||
--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 $(host-generic-package))
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user