Merge oe-devel@oe-devel.bkbits.net:packages
[openembedded.git] / directfb / directfb_0.9.20.oe
1 DESCRIPTION = "DirectFB is a thin library that provides developers \
2 with hardware graphics acceleration, input device handling and \
3 abstraction, an integrated windowing system with support for \
4 translucent windows and multiple display layers on top of the \
5 Linux framebuffer device."
6 SECTION = "libs"
7 LICENSE = "LGPL"
8 PRIORITY = "optional"
9 MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
10 DEPENDS = "jpeg libpng zlib"
11 PR = "r1"
12
13 SRC_URI = "http://www.directfb.org/download/DirectFB/DirectFB-${PV}.tar.gz"
14 S = "${WORKDIR}/DirectFB-${PV}"
15
16 inherit autotools libtool pkgconfig
17
18 EXTRA_OECONF = "--with-gfxdrivers=none --enable-libmpeg3=no --enable-freetype=no --enable-sdl=no"
19
20 do_stage() {
21         oe_runmake -C src 'libdir=/lib' 'includedir=/include/directfb' \
22                           'oldincludedir=/include' 'datadir=/share' \
23                           'DESTDIR=${STAGING_LIBDIR}/..' \
24                           'INTERNALINCLUDEDIR=/include/directfb-internal' \
25                           install-internalincludeHEADERS install-libLTLIBRARIES
26         oe_runmake -C include 'libdir=/lib' 'includedir=/include/directfb' \
27                               'oldincludedir=/include' 'datadir=/share' \
28                               'DESTDIR=${STAGING_LIBDIR}/..' \
29                               'INTERNALINCLUDEDIR=/include/directfb-internal' \
30                               install-internalincludeHEADERS install-includeHEADERS
31 }
32
33 do_install() {
34         oe_runmake 'DESTDIR=${D}' install
35 }
36
37 FILES_directfb_append = " ${libdir}/directfb-${PV}/systems/*.so \
38                           ${libdir}/directfb-${PV}/inputdrivers/*.so \
39                           ${libdir}/directfb-${PV}/interfaces/*/*.so \
40                           ${datadir}/directfb-${PV}"