summaryrefslogtreecommitdiff
path: root/recipes/agg/agg-minimal_2.5.bb
blob: 69fa1c61eb872da85c872d4c3448b159c25f23ec (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
DESCRIPTION = "Anti Grain Geometry - A High Quality Rendering Engine for C++"
AUTHOR = "mcseem@antigrain.com"
HOMEPAGE = "http://www.antigrain.com"
SECTION = "libs"
LICENSE = "AGG License"
DEPENDS = "freetype"

PR = "r0"

SRC_URI = "http://www.antigrain.com/agg-${PV}.tar.gz;name=archive"
SRC_URI += "http://www.wxsvg.org/files/agg-2.5_cygming.patch;name=patch"
S = "${WORKDIR}/agg-${PV}"

inherit autotools pkgconfig

CFLAGS += " -I{$STAGING_INCDIR} "

FILES_${PN} = "${libdir}/libagg.so.* \
               ${libdir}/libaggfontfreetype.so.*"

LEAD_SONAME = "libagg.so"

EXTRA_OECONF = "--disable-gpc --without-x --disable-examples --disable-ctrl \
--disable-platform --disable-win32tt --disable-sdltest"

do_stage() {
    oe_libinstall -a -so libagg ${STAGING_LIBDIR}
    oe_libinstall -a -so libaggfontfreetype ${STAGING_LIBDIR}
    install -m 0644 libagg.m4 ${STAGING_DATADIR}/aclocal/
    install -d ${STAGING_INCDIR}/agg2

    for f in font_freetype font_win32_tt gpc
    do
            install -m 0644 ${S}/$f/*.h ${STAGING_INCDIR}/agg2/
    done

    cd include
    headers=`find . -name "*.h"`
    for f in $headers
    do
            install -D -m 0644 $f ${STAGING_INCDIR}/agg2/$f
    done
}

SRC_URI[archive.md5sum] = "0229a488bc47be10a2fee6cf0b2febd6"
SRC_URI[archive.sha256sum] = "ab1edc54cc32ba51a62ff120d501eecd55fceeedf869b9354e7e13812289911f"
# no checksum for patch because of 404
#SRC_URI[patch.md5sum] = ""
#SRC_URI[patch.sha256sum] = ""