summaryrefslogtreecommitdiff
path: root/packages/efl/imlib2.inc
blob: 6a040c53860f2f6f74cf02247865fe3bfdde614c (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
50
51
52
53
54
55
56
57
58
DESCRIPTION = "A graphic library for file loading, saving, rendering, and manipulation."
LICENSE = "BSD"
# can also depend on tiff34, ungif or gif, z, bz2, id3tag
DEPENDS = "freetype libpng jpeg"
PROVIDES += "virtual/imlib2"

inherit efl

SRC_URI = "http://enlightenment.freedesktop.org/files/imlib2-${PV}.tar.gz"
S = "${WORKDIR}/imlib2-${PV}"

libraries = ""
headers = ""

do_stage_append() {
        oe_libinstall -C src/lib libImlib2 ${STAGING_LIBDIR}/
        install -m 0644 ${S}/src/lib/Imlib2.h ${STAGING_INCDIR}/

        install -d ${STAGING_LIBDIR}/imlib2/loaders
        for i in src/modules/loaders/.libs/*.so
        do
                install -m 0755 $i ${STAGING_LIBDIR}/imlib2/loaders
        done

        install -d ${STAGING_LIBDIR}/imlib2/filters
        for i in src/modules/filters/.libs/*.so
        do
                install -m 0755 $i ${STAGING_LIBDIR}/imlib2/filters
        done
}

do_install() {
        install -d "${D}${includedir}"
        oe_libinstall -C src/lib libImlib2 ${D}${libdir}/
        install -m 0644 ${S}/src/lib/Imlib2.h ${D}${includedir}/

        install -d ${D}${libdir}/imlib2/loaders
        for i in src/modules/loaders/.libs/*.so
        do
                install -m 0755 $i ${D}${libdir}/imlib2/loaders
        done

        install -d ${D}${libdir}/imlib2/filters
        for i in src/modules/filters/.libs/*.so
        do
                install -m 0755 $i ${D}${libdir}/imlib2/filters
        done
}

PACKAGES =+ "imlib2-loaders-dbg imlib2-filters-dbg imlib2-loaders imlib2-filters"
FILES_${PN} = "${libdir}/lib*.so.* ${libdir}/imlib2/*/*.so"
FILES_${PN}-dbg = "${libdir}/.debug/"
FILES_${PN}-dev += "${bindir}/imlib2-config ${libdir}/*.so ${includedir}"
FILES_imlib2-bin = "${bindir}"
FILES_imlib2-loaders = "${libdir}/imlib2/loaders/*.so"
FILES_imlib2-filters = "${libdir}/imlib2/filters/*.so"
FILES_imlib2-loaders-dbg += "${libdir}/imlib2/loaders/.debug"
FILES_imlib2-filters-dbg += "${libdir}/imlib2/filters/.debug"