generated from gaoyang3513/SDK_RK3288
[Mod] First commit
This commit is contained in:
58
package/gd/Config.in
Normal file
58
package/gd/Config.in
Normal file
@ -0,0 +1,58 @@
|
||||
menuconfig BR2_PACKAGE_GD
|
||||
bool "gd"
|
||||
help
|
||||
GD is a graphics library. It allows your code to quickly
|
||||
draw images complete with lines, arcs, text, multiple
|
||||
colours, cut and paste from other images, flood fills, and
|
||||
write out the result as a PNG file. This is particularly
|
||||
useful in World Wide Web applications, where PNG is one of
|
||||
the formats accepted for inline images by most browsers.
|
||||
|
||||
https://libgd.github.io/
|
||||
|
||||
if BR2_PACKAGE_GD
|
||||
|
||||
config BR2_PACKAGE_GD_ANNOTATE
|
||||
bool "annotate"
|
||||
|
||||
config BR2_PACKAGE_GD_BDFTOGD
|
||||
bool "bdftogd"
|
||||
depends on BR2_PACKAGE_PERL
|
||||
|
||||
config BR2_PACKAGE_GD_GD2COPYPAL
|
||||
bool "gd2copypal"
|
||||
|
||||
config BR2_PACKAGE_GD_GD2TOGIF
|
||||
bool "gd2togif"
|
||||
|
||||
config BR2_PACKAGE_GD_GD2TOPNG
|
||||
bool "gd2topng"
|
||||
select BR2_PACKAGE_LIBPNG
|
||||
|
||||
config BR2_PACKAGE_GD_GDCMPGIF
|
||||
bool "gdcmpgif"
|
||||
|
||||
config BR2_PACKAGE_GD_GDPARTTOPNG
|
||||
bool "gdparttopng"
|
||||
select BR2_PACKAGE_LIBPNG
|
||||
|
||||
config BR2_PACKAGE_GD_GDTOPNG
|
||||
bool "gdtopng"
|
||||
select BR2_PACKAGE_LIBPNG
|
||||
|
||||
config BR2_PACKAGE_GD_GIFTOGD2
|
||||
bool "giftogd2"
|
||||
|
||||
config BR2_PACKAGE_GD_PNGTOGD
|
||||
bool "pngtogd"
|
||||
select BR2_PACKAGE_LIBPNG
|
||||
|
||||
config BR2_PACKAGE_GD_PNGTOGD2
|
||||
bool "pngtogd2"
|
||||
select BR2_PACKAGE_LIBPNG
|
||||
|
||||
config BR2_PACKAGE_GD_WEBPNG
|
||||
bool "webpng"
|
||||
select BR2_PACKAGE_LIBPNG
|
||||
|
||||
endif
|
||||
3
package/gd/gd.hash
Normal file
3
package/gd/gd.hash
Normal file
@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 3fe822ece20796060af63b7c60acb151e5844204d289da0ce08f8fdf131e5a61 libgd-2.3.3.tar.xz
|
||||
sha256 005f4b6b0141d1bd11d371bbf7d4f67947f85a4906b7f5465f942204cf918ba3 COPYING
|
||||
96
package/gd/gd.mk
Normal file
96
package/gd/gd.mk
Normal file
@ -0,0 +1,96 @@
|
||||
################################################################################
|
||||
#
|
||||
# gd
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GD_VERSION = 2.3.3
|
||||
GD_SOURCE = libgd-$(GD_VERSION).tar.xz
|
||||
GD_SITE = https://github.com/libgd/libgd/releases/download/gd-$(GD_VERSION)
|
||||
GD_INSTALL_STAGING = YES
|
||||
GD_LICENSE = GD license
|
||||
GD_LICENSE_FILES = COPYING
|
||||
GD_CPE_ID_VENDOR = libgd
|
||||
GD_CPE_ID_PRODUCT = libgd
|
||||
GD_CONF_OPTS = --without-x --disable-rpath --disable-werror
|
||||
GD_DEPENDENCIES = host-pkgconf
|
||||
|
||||
# gd forgets to link utilities with -pthread even though it uses
|
||||
# pthreads, causing linking errors with static linking
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
||||
GD_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -pthread"
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FONTCONFIG),y)
|
||||
GD_DEPENDENCIES += fontconfig
|
||||
GD_CONF_OPTS += --with-fontconfig
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FREETYPE),y)
|
||||
GD_DEPENDENCIES += freetype
|
||||
GD_CONF_OPTS += --with-freetype=$(STAGING_DIR)/usr
|
||||
else
|
||||
GD_CONF_OPTS += --without-freetype
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
||||
GD_DEPENDENCIES += libiconv
|
||||
# not strictly needed for gd, but ensures -liconv ends up in gdlib.pc
|
||||
GD_CONF_ENV += LIBS_PRIVATES="-liconv"
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_JPEG),y)
|
||||
GD_DEPENDENCIES += jpeg
|
||||
GD_CONF_OPTS += --with-jpeg
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
||||
GD_DEPENDENCIES += libpng
|
||||
GD_CONF_OPTS += --with-png
|
||||
else
|
||||
GD_CONF_OPTS += --without-png
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WEBP),y)
|
||||
GD_DEPENDENCIES += webp
|
||||
GD_CONF_OPTS += --with-webp
|
||||
else
|
||||
GD_CONF_OPTS += --without-webp
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_TIFF),y)
|
||||
GD_DEPENDENCIES += tiff
|
||||
GD_CONF_OPTS += --with-tiff
|
||||
else
|
||||
GD_CONF_OPTS += --without-tiff
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBXPM),y)
|
||||
GD_DEPENDENCIES += xlib_libXpm
|
||||
GD_CONF_OPTS += --with-xpm
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
GD_DEPENDENCIES += zlib
|
||||
endif
|
||||
|
||||
GD_TOOLS_$(BR2_PACKAGE_GD_ANNOTATE) += annotate
|
||||
GD_TOOLS_$(BR2_PACKAGE_GD_BDFTOGD) += bdftogd
|
||||
GD_TOOLS_$(BR2_PACKAGE_GD_GD2COPYPAL) += gd2copypal
|
||||
GD_TOOLS_$(BR2_PACKAGE_GD_GD2TOGIF) += gd2togif
|
||||
GD_TOOLS_$(BR2_PACKAGE_GD_GD2TOPNG) += gd2topng
|
||||
GD_TOOLS_$(BR2_PACKAGE_GD_GDCMPGIF) += gdcmpgif
|
||||
GD_TOOLS_$(BR2_PACKAGE_GD_GDPARTTOPNG) += gdparttopng
|
||||
GD_TOOLS_$(BR2_PACKAGE_GD_GDTOPNG) += gdtopng
|
||||
GD_TOOLS_$(BR2_PACKAGE_GD_GIFTOGD2) += giftogd2
|
||||
GD_TOOLS_$(BR2_PACKAGE_GD_PNGTOGD) += pngtogd
|
||||
GD_TOOLS_$(BR2_PACKAGE_GD_PNGTOGD2) += pngtogd2
|
||||
GD_TOOLS_$(BR2_PACKAGE_GD_WEBPNG) += webpng
|
||||
|
||||
define GD_REMOVE_TOOLS
|
||||
rm -f $(addprefix $(TARGET_DIR)/usr/bin/,$(GD_TOOLS_))
|
||||
endef
|
||||
|
||||
GD_POST_INSTALL_TARGET_HOOKS += GD_REMOVE_TOOLS
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user