2015-11-25 01:15:10 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libgdiplus
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-05-02 20:33:36 +02:00
|
|
|
LIBGDIPLUS_VERSION = 5.6
|
2015-11-25 01:15:10 +01:00
|
|
|
LIBGDIPLUS_SITE = $(call github,mono,libgdiplus,$(LIBGDIPLUS_VERSION))
|
|
|
|
|
|
|
|
LIBGDIPLUS_LICENSE = MIT
|
2018-05-02 20:33:36 +02:00
|
|
|
LIBGDIPLUS_LICENSE_FILES = LICENSE
|
2015-11-25 01:15:10 +01:00
|
|
|
|
|
|
|
LIBGDIPLUS_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
# github tarball doesn't have configure
|
|
|
|
LIBGDIPLUS_AUTORECONF = YES
|
|
|
|
|
|
|
|
LIBGDIPLUS_DEPENDENCIES = xlib_libXft libglib2 cairo libpng host-pkgconf
|
|
|
|
|
2017-11-14 23:29:40 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GIFLIB),y)
|
|
|
|
LIBGDIPLUS_CONF_OPTS += --with-libgif
|
|
|
|
LIBGDIPLUS_DEPENDENCIES += giflib
|
|
|
|
else
|
|
|
|
LIBGDIPLUS_CONF_OPTS += --without-libgif
|
|
|
|
endif
|
2015-11-25 01:15:10 +01:00
|
|
|
|
|
|
|
# there is a bug in the configure script that enables pango support
|
|
|
|
# when passing --without-pango, so let's just not use it
|
|
|
|
ifeq ($(BR2_PACKAGE_PANGO),y)
|
|
|
|
LIBGDIPLUS_CONF_OPTS += --with-pango
|
|
|
|
LIBGDIPLUS_DEPENDENCIES += pango
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEXIF),y)
|
|
|
|
LIBGDIPLUS_CONF_OPTS += --with-libexif
|
|
|
|
LIBGDIPLUS_DEPENDENCIES += libexif
|
|
|
|
else
|
|
|
|
LIBGDIPLUS_CONF_OPTS += --without-libexif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
2015-12-18 19:00:45 +01:00
|
|
|
LIBGDIPLUS_CONF_OPTS += --with-libjpeg=$(STAGING_DIR)/usr
|
2015-11-25 01:15:10 +01:00
|
|
|
LIBGDIPLUS_DEPENDENCIES += jpeg
|
|
|
|
else
|
|
|
|
LIBGDIPLUS_CONF_OPTS += --without-libjpeg
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_TIFF),y)
|
2015-12-18 19:00:45 +01:00
|
|
|
LIBGDIPLUS_CONF_OPTS += --with-libtiff=$(STAGING_DIR)/usr
|
2015-11-25 01:15:10 +01:00
|
|
|
LIBGDIPLUS_DEPENDENCIES += tiff
|
|
|
|
else
|
|
|
|
LIBGDIPLUS_CONF_OPTS += --without-libtiff
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|