aboutsummaryrefslogtreecommitdiffstats
path: root/fltk
diff options
context:
space:
mode:
authorRene Wagner <rw@handhelds.org>2004-08-17 21:03:55 +0000
committerRene Wagner <rw@handhelds.org>2004-08-17 21:03:55 +0000
commit604fe06c1df14ef4fbe6d1947b7f8f823dd1096c (patch)
tree56923c62a9db81e0540fff1d6efc0e17f835da86 /fltk
parentc853226632b7a14641aeb6ace0bf59d6160b11e5 (diff)
downloadopenembedded-604fe06c1df14ef4fbe6d1947b7f8f823dd1096c.tar.gz
fltk: fix ftlk-config in staging
BKrev: 412272bbvw9OHXisJkvX84ADGmxr0Q
Diffstat (limited to 'fltk')
-rw-r--r--fltk/fltk_1.2+cvs20040806.oe47
1 files changed, 47 insertions, 0 deletions
diff --git a/fltk/fltk_1.2+cvs20040806.oe b/fltk/fltk_1.2+cvs20040806.oe
index e69de29bb2..bd6b5a671f 100644
--- a/fltk/fltk_1.2+cvs20040806.oe
+++ b/fltk/fltk_1.2+cvs20040806.oe
@@ -0,0 +1,47 @@
+DESCRIPTION = "FLTK is a cross-platform C++ GUI toolkit"
+HOMEPAGE = "http://www.fltk.org"
+SECTION = "libs"
+PRIORITY = "optional"
+MAINTAINER = "Rene Wagner <reenoo@gmx.de>"
+DEPENDS = "jpeg libpng zlib"
+PR = "r1"
+
+SRC_URI = "cvs://anonymous:@cvs.sourceforge.net/cvsroot/fltk;module=fltk;method=pserver;tag=v1_2;date=${@oe.data.getVar('PV', d, 1)[7:]} \
+ file://makefiles.patch;patch=1 \
+ file://autotools.patch;patch=1"
+S="${WORKDIR}/fltk"
+
+inherit autotools
+
+do_configure_prepend() {
+ autoconf
+}
+
+FILES_${PN} = "${libdir}/lib*.so.*"
+FILES_${PN}-dev += " ${bindir}/fltk-config"
+LEAD_SONAME = "libfltk.so"
+
+EXTRA_OECONF = "--enable-shared --disable-gl"
+
+do_install () {
+ oe_runmake prefix="${D}/${prefix}" \
+ bindir="${D}/${bindir}" \
+ libdir="${D}/${libdir}" \
+ includedir="${D}/${includedir}" \
+ install
+}
+
+do_stage() {
+ oe_runmake install prefix=${STAGING_DIR} \
+ bindir=${STAGING_BINDIR} \
+ includedir=${STAGING_INCDIR} \
+ libdir=${STAGING_LIBDIR} \
+ datadir=${STAGING_DATADIR}
+ cat fltk-config | sed -e "s,includedir=/usr/include,includedir=${STAGING_INCDIR}," \
+ | sed -e "s,libdir=/usr/lib,libdir=${STAGING_LIBDIR}," > ${STAGING_BINDIR}/fltk-config
+}
+
+python populate_packages_prepend () {
+ if (oe.data.getVar('DEBIAN_NAMES', d, 1)):
+ oe.data.setVar('PKG_${PN}', 'libfltk1.2', d)
+}