f434348d0268fea1a5a1831dff6ed5f1eeadef0c
[vuplus_openembedded] / libsip / libsip_3.10.1.oe
1 DESCRIPTION = "Runtime helper for sip-generated python wrapper libraries"
2 SECTION = "base"
3 PRIORITY = "optional"
4 MAINTAINER = "Michael Lauer <mickey@Vanille.de>"
5 LICENSE = "GPL"
6 DEPENDS = "virtual/libc virtual/libqte2 python"
7
8 SRC_URI = "http://www.vanille.de/mirror/sip-${PV}.tar.gz"
9 S = "${WORKDIR}/sip-${PV}/siplib"
10
11 inherit qmake
12
13 QMAKE_PROFILES = "siplib.pro.in"
14
15 export QTDIR = "${STAGING_LIBDIR}/.."
16
17 #
18 # Warning: passing ' "FOO=BAR" results in double ""FOO=BAR"" which is then ignored by qmake
19 #
20
21 EXTRA_QMAKEVARS_POST = " CONFIG=qte \
22                          DESTDIR=${STAGING_LIBDIR}/python2.3/site-packages \
23                          TARGET=sip \
24                          DEFINES=SIP_MAKE_DLL \
25                          DEFINES+=SIP_QT_SUPPORT \
26                          INCLUDEPATH=. \
27                          INCLUDEPATH+=${STAGING_INCDIR}/python2.3 \
28                          INCLUDEPATH+=${STAGING_INCDIR} "
29
30
31 #
32 # It would be nice if I could use spaces, e.g. CONFIG=qt warn_off release dll
33 #
34
35 do_compile() {
36     oe_runmake LINK="${CC}" LIBS=""
37 }
38
39 do_stage() {
40     install -m 0644 sip.h ${STAGING_INCDIR}/sip.h
41     install -m 0644 sipQt.h ${STAGING_INCDIR}/sipQt.h
42 }