@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME := libgd
PKG_VERSION := 2.2.4
PKG_RELEASE := 1
PKG_RELEASE := 2
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.xz
PKG_SOURCE_URL := https://github.com/$( PKG_NAME) /$( PKG_NAME) /releases/download/gd-$( PKG_VERSION) /
@ -27,9 +27,10 @@ include $(INCLUDE_DIR)/package.mk
d e f i n e P a c k a g e / l i b g d
SECTION:= libs
CATEGORY:= Libraries
DEPENDS:= +libjpeg +libpng
DEPENDS:= +libjpeg +libpng +LIBGD_TIFF:libtiff +LIBGD_FREETYPE:libfreetype
TITLE:= The GD graphics library
URL:= http://www.libgd.org/
MENU:= 1
e n d e f
d e f i n e P a c k a g e / l i b g d / d e s c r i p t i o n
@ -37,6 +38,23 @@ define Package/libgd/description
programmers. GD creates PNG, JPEG and GIF images, among other formats.
e n d e f
d e f i n e P a c k a g e / l i b g d / c o n f i g
if PACKAGE_libgd
config LIBGD_TIFF
bool "TIFF image support"
default n
help
Enable TIFF image support through libtiff
endif
if PACKAGE_libgd
config LIBGD_FREETYPE
bool "Freetype 2.x library support"
default n
help
Enable Freetype 2.x font engine support through libfreetype
endif
e n d e f
TARGET_CFLAGS += $( FPIC)
CONFIGURE_ARGS += \
@ -45,12 +63,25 @@ CONFIGURE_ARGS += \
--disable-rpath \
--without-x \
--without-fontconfig \
--without-freetype \
--with-jpeg= $( STAGING_DIR) /usr \
--with-png= $( STAGING_DIR) /usr \
--with-vpx= no \
--without-xpm \
--without-iconv
--without-xpm
i f d e f C O N F I G _ L I B G D _ T I F F
CONFIGURE_ARGS += \
--with-tiff= $( STAGING_DIR) /usr
e l s e
CONFIGURE_ARGS += \
--without-tiff
e n d i f
i f d e f C O N F I G _ L I B G D _ F R E E T Y P E
CONFIGURE_ARGS += \
--with-freetype= $( STAGING_DIR) /usr
e l s e
CONFIGURE_ARGS += \
--without-freetype
e n d i f
CONFIGURE_VARS += \
ac_cv_header_iconv_h = no