[OE-core] [PATCH 1/2] fltk: add this recipe for alsa-tools build
Dongxiao Xu
dongxiao.xu at intel.com
Fri Jul 8 02:11:53 UTC 2011
alsa-tools has dependency on fltk.
Import this recipe from open-embedded.
Signed-off-by: Dongxiao Xu <dongxiao.xu at intel.com>
---
.../fltk/fltk-1.1.10/disable_test.patch | 18 +++++++++
meta/recipes-multimedia/fltk/fltk_1.1.10.bb | 38 ++++++++++++++++++++
2 files changed, 56 insertions(+), 0 deletions(-)
create mode 100644 meta/recipes-multimedia/fltk/fltk-1.1.10/disable_test.patch
create mode 100644 meta/recipes-multimedia/fltk/fltk_1.1.10.bb
diff --git a/meta/recipes-multimedia/fltk/fltk-1.1.10/disable_test.patch b/meta/recipes-multimedia/fltk/fltk-1.1.10/disable_test.patch
new file mode 100644
index 0000000..0221503
--- /dev/null
+++ b/meta/recipes-multimedia/fltk/fltk-1.1.10/disable_test.patch
@@ -0,0 +1,18 @@
+Disable the test component.
+Derived from OE.
+
+Upstream-Status: Inappropriate [configuration]
+
+Index: fltk-1.1.9/Makefile
+===================================================================
+--- fltk-1.1.9.orig/Makefile 2008-06-06 16:14:11.936736201 +0200
++++ fltk-1.1.9/Makefile 2008-06-06 16:14:22.526357637 +0200
+@@ -27,7 +27,7 @@
+
+ include makeinclude
+
+-DIRS = $(IMAGEDIRS) src fluid test documentation
++DIRS = $(IMAGEDIRS) src fluid documentation
+
+ all: makeinclude fltk-config
+ for dir in $(DIRS); do\
diff --git a/meta/recipes-multimedia/fltk/fltk_1.1.10.bb b/meta/recipes-multimedia/fltk/fltk_1.1.10.bb
new file mode 100644
index 0000000..bd25344
--- /dev/null
+++ b/meta/recipes-multimedia/fltk/fltk_1.1.10.bb
@@ -0,0 +1,38 @@
+DESCRIPTION = "FLTK is a cross-platform C++ GUI toolkit"
+HOMEPAGE = "http://www.fltk.org"
+SECTION = "libs"
+PRIORITY = "optional"
+LICENSE = "LGPL"
+DEPENDS = "alsa-lib zlib jpeg libpng libxext libxft"
+LIC_FILES_CHKSUM = "file://COPYING;md5=1c0b73db66884b6a925e727400315130"
+
+PR = "r0"
+
+SRC_URI = "http://ftp.easysw.com/ftp/pub/fltk/${PV}/fltk-${PV}-source.tar.bz2 \
+ file://disable_test.patch \
+ "
+
+S = "${WORKDIR}/fltk-${PV}"
+
+inherit lib_package autotools binconfig
+
+TARGET_CC_ARCH += "${LDFLAGS} -DXFT_MAJOR=2"
+
+EXTRA_OECONF = "--enable-shared \
+ --enable-threads \
+ --enable-xdbe --enable-xft --enable-gl \
+ --x-includes=${STAGING_INCDIR} --x-libraries=${STAGING_LIBDIR}"
+
+do_configure() {
+ oe_runconf
+}
+
+python populate_packages_prepend () {
+ if (bb.data.getVar('DEBIAN_NAMES', d, 1)):
+ bb.data.setVar('PKG_${PN}', 'libfltk${PV}', d)
+}
+
+LEAD_SONAME = "libfltk.so"
+
+SRC_URI[md5sum] = "a1765594bc427ff892e36089fe1fa672"
+SRC_URI[sha256sum] = "37ada22bf2586b8dd30d84209b8b58bdcb864627e5d02ae3f2c323a29261b19a"
--
1.7.1
More information about the Openembedded-core
mailing list