summaryrefslogtreecommitdiff
path: root/packages/efl/imlib2.inc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/efl/imlib2.inc')
-rw-r--r--packages/efl/imlib2.inc53
1 files changed, 53 insertions, 0 deletions
diff --git a/packages/efl/imlib2.inc b/packages/efl/imlib2.inc
new file mode 100644
index 0000000000..2aa53b96a0
--- /dev/null
+++ b/packages/efl/imlib2.inc
@@ -0,0 +1,53 @@
+DESCRIPTION = "A graphic library for file loading, saving, rendering, and manipulation."
+LICENSE = "BSD"
+PROVIDES = "virtual/imlib2"
+DEPENDS = "freetype libpng jpeg"
+
+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() {
+ oe_libinstall -C src/lib libImlib2 ${D}${libdir}/
+ install -m 0644 ${S}/src/lib/Imlib2.h ${D}${incdir}/
+
+ 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 imlib2-filters"
+FILES_${PN} = "${libdir}/lib*.so.* ${libdir}/imlib2"
+FILES_${PN}-dev += "${bindir}/imlib2-config"
+FILES_imlib2-bin = "${bindir}"
+FILES_imlib2-loaders = "${libdir}/imlib2/loaders/*.so"
+FILES_imlib2-filters = "${libdir}/imlib2/filters/*.so"