Commit 326b0f37 authored by Sergio Prado's avatar Sergio Prado Committed by Thomas Petazzoni
Browse files

libgdiplus: new package



Libgdiplus is an open source implementation of the GDI+ API.

[Thomas: remove trailing whitespace.]

Signed-off-by: default avatarSergio Prado <sergio.prado@e-labworks.com>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 37e7c34a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -840,6 +840,7 @@ menu "Graphics"
	source "package/libfreeglut/Config.in"
	source "package/libfreeimage/Config.in"
	source "package/libgail/Config.in"
	source "package/libgdiplus/Config.in"
	source "package/libgeotiff/Config.in"
	source "package/libglade/Config.in"
	source "package/libglew/Config.in"
+21 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_LIBGDIPLUS
	bool "libgdiplus"
	select BR2_PACKAGE_XLIB_LIBXFT
	select BR2_PACKAGE_LIBGLIB2
	select BR2_PACKAGE_CAIRO
	select BR2_PACKAGE_LIBPNG
	depends on BR2_PACKAGE_XORG7
	depends on BR2_USE_WCHAR # libglib2 -> gettext
	depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
	depends on BR2_USE_MMU # libglib2
	depends on BR2_ARCH_HAS_ATOMICS # cairo
	help
	  An Open Source implementation of the GDI+ API.

	  https://github.com/mono/libgdiplus

comment "libgdiplus needs a toolchain w/ wchar, threads"
	depends on BR2_USE_MMU
	depends on BR2_ARCH_HAS_ATOMICS
	depends on BR2_PACKAGE_XORG7
	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
+2 −0
Original line number Diff line number Diff line
# Locally computed:
sha256 7eadc5105c6352d456c5f8699dc89260bf402e82ce6668e7e0c625519f9e5b44 libgdiplus-3.12.tar.gz
+56 −0
Original line number Diff line number Diff line
################################################################################
#
# libgdiplus
#
################################################################################

LIBGDIPLUS_VERSION = 3.12
LIBGDIPLUS_SITE = $(call github,mono,libgdiplus,$(LIBGDIPLUS_VERSION))

# Although there is a LICENSE file thas specifies LGPL or MPLv1.1,
# looks like it is incorrect. The actual source files specify that
# they're licensed under MIT, and so does the COPYING file (and they
# all predate the addition of the LICENSE file).
LIBGDIPLUS_LICENSE = MIT
LIBGDIPLUS_LICENSE_FILES = COPYING src/carbon-private.h

LIBGDIPLUS_INSTALL_STAGING = YES

# github tarball doesn't have configure
LIBGDIPLUS_AUTORECONF = YES

LIBGDIPLUS_DEPENDENCIES = xlib_libXft libglib2 cairo libpng host-pkgconf

# API changes in recent versions of libgif makes it incompatible with
# this version of libgdiplus, so we are disabling it for now.
LIBGDIPLUS_CONF_OPTS = --without-libgif

# 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)
LIBGDIPLUS_CONF_OPTS += --with-libjpeg
LIBGDIPLUS_DEPENDENCIES += jpeg
else
LIBGDIPLUS_CONF_OPTS += --without-libjpeg
endif

ifeq ($(BR2_PACKAGE_TIFF),y)
LIBGDIPLUS_CONF_OPTS += --with-libtiff
LIBGDIPLUS_DEPENDENCIES += tiff
else
LIBGDIPLUS_CONF_OPTS += --without-libtiff
endif

$(eval $(autotools-package))