aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-mono/libgdiplus/libgdiplus_4.2.bb
blob: 9516550effa59b15fbc54fa136a0ca440365a0ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
SUMMARY = "An Open Source implementation of the GDI+ API"
DESCRIPTION = "This is part of the Mono project - http://mono-project.com"
HOMEPAGE = "http://mono-project.com"
BUGTRACKER = "http://bugzilla.xamarin.com/"
SECTION = "libs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=fe7364dfce9f3689eb6995e7cdd56879"

PACKAGECONFIG ??= "jpeg tiff gif exif"
PACKAGECONFIG[jpeg] = "--with-libjpeg,--without-libjpeg,jpeg"
PACKAGECONFIG[tiff] = "--with-libtiff,--without-libtiff,tiff"
PACKAGECONFIG[gif] = "--with-libgif,--without-libgif,giflib"
PACKAGECONFIG[exif] = "--with-libexif,--without-libexif,libexif"

SRC_URI = "https://github.com/mono/libgdiplus/archive/${PV}.tar.gz \
	   file://01-remove-libjpeg-path.patch \
	   file://libgdiplus-2.10.9-format.patch \
	"

inherit autotools pkgconfig

DEPENDS =+ "cairo freetype fontconfig libxft libpng"

SRC_URI[md5sum] = "925709982aba701c567850617e2206b1"
SRC_URI[sha256sum] = "98f8a8e58ed22e136c4ac6eaafbc860757f5a97901ecc0ea357e2b6e4cfa2be5"

FILES_${PN} += "${libdir}/libgdiplus.so"
INSANE_SKIP_${PN} += "dev-so"

do_install_append() {
# fix pkgconfig .pc file
sed -i -e s#I${STAGING_DIR_HOST}#I#g ${D}${libdir}/pkgconfig/*.pc
}