@ -26,20 +26,41 @@ PKG_BUILD_PARALLEL:=1
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / c m a k e . m k
d e f i n e P a c k a g e / l i b g d
d e f i n e P a c k a g e / l i b g d / d e f a u l t
SECTION:= libs
CATEGORY:= Libraries
DEPENDS:= +libjpeg +libpng +libwebp +LIBGD_TIFF:libtiff +LIBGD_FREETYPE:libfreetype
TITLE:= The GD graphics library
URL:= https://libgd.github.io/
e n d e f
d e f i n e P a c k a g e / l i b g d
$( call Package/libgd/default)
MENU:= 1
DEPENDS += +LIBGD_TIFF:libtiff +LIBGD_FREETYPE:libfreetype
VARIANT:= default
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
d e f i n e P a c k a g e / l i b g d - f u l l
$( call Package/libgd/default)
DEPENDS += +libtiff +libfreetype
TITLE += ( full)
VARIANT:= full
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 / d e f a u l t
GD is an open source code library for the dynamic creation of images by
programmers. GD creates PNG, JPEG and GIF images, among other formats.
e n d e f
P a c k a g e / l i b g d / description = $( Package/libgd/description/default)
d e f i n e P a c k a g e / l i b g d - f u l l / d e s c r i p t i o n
$( call Package/libgd/description/default)
.
This variant of the libgd package is compiled will all features enabled.
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
@ -69,6 +90,14 @@ CMAKE_OPTIONS += \
-DENABLE_XPM= OFF \
-DZLIB_INCLUDE_DIR= " $( STAGING_DIR) /usr "
i f e q ( $( BUILD_VARIANT ) , f u l l )
CMAKE_OPTIONS += \
-DENABLE_TIFF= ON \
-DFREETYPE_INCLUDE_DIRS= $( STAGING_DIR) /usr/include/freetype2/ \
-DENABLE_FREETYPE= ON
e l s e
i f d e f C O N F I G _ L I B G D _ T I F F
CMAKE_OPTIONS += \
-DENABLE_TIFF= ON
@ -86,9 +115,14 @@ else
-DENABLE_FREETYPE= OFF
e n d i f
e n d i f
d e f i n e P a c k a g e / l i b g d / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libgd.so* $( 1) /usr/lib/
e n d e f
P a c k a g e / l i b g d - f u l l / install = $( Package/libgd/install)
$( eval $ ( call BuildPackage ,libgd ) )
$( eval $ ( call BuildPackage ,libgd -full ) )