[oe-commits] Michael 'Mickey' Lauer : fsod: make it build with python support

GIT User account git at amethyst.openembedded.net
Thu Nov 20 17:07:08 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dev
Commit: f0f46dca8706b0c63174895afa5bd180df2c9e0e
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=f0f46dca8706b0c63174895afa5bd180df2c9e0e

Author: Michael 'Mickey' Lauer <mickey at vanille-media.de>
Date:   Thu Nov 20 18:05:24 2008 +0100

fsod: make it build with python support

---

 .../frameworkd/om-gta02/frameworkd.conf            |    3 ++
 packages/freesmartphone/fsod/autofoo.patch         |   13 ++++++++++++
 packages/freesmartphone/fsod_git.bb                |   21 ++++++++++++-------
 3 files changed, 29 insertions(+), 8 deletions(-)

diff --git a/packages/freesmartphone/frameworkd/om-gta02/frameworkd.conf b/packages/freesmartphone/frameworkd/om-gta02/frameworkd.conf
index a2210a8..796d4fb 100644
--- a/packages/freesmartphone/frameworkd/om-gta02/frameworkd.conf
+++ b/packages/freesmartphone/frameworkd/om-gta02/frameworkd.conf
@@ -43,3 +43,6 @@ rootdir = ../etc/freesmartphone/opreferences:/etc/freesmartphone/opreferences:/u
 [oeventsd]
 rules_file = ../etc/freesmartphone/oevents/rules.yaml:/etc/freesmartphone/oevents/rules.yaml:/usr/etc/freesmartphone/oevents/rules.yaml
 
+[opimd]
+disable = 1
+
diff --git a/packages/freesmartphone/fsod/autofoo.patch b/packages/freesmartphone/fsod/autofoo.patch
new file mode 100644
index 0000000..3ed26ae
--- /dev/null
+++ b/packages/freesmartphone/fsod/autofoo.patch
@@ -0,0 +1,13 @@
+Index: fsod/configure.ac
+===================================================================
+--- fsod/configure.ac
++++ ~fsod/configure.ac
+@@ -85,7 +85,7 @@ if test "x$have_python" != "xno"; then
+ 	PY_EXEC_PREFIX=`$PYTHON -c 'import sys ; print sys.exec_prefix'`
+ 	PYTHON_LIBS="-lpython$PYTHON_VERSION"
+ 	PYTHON_LIB_LOC="-L$PY_EXEC_PREFIX/lib/python$PYTHON_VERSION/config"
+-	PYTHON_CFLAGS="-I$PY_PREFIX/include/python$PYTHON_VERSION"
++	PYTHON_CFLAGS="${PYTHON_INCLUDES}" # "-I`$PYTHON -c 'from distutils import sysconfig; print sysconfig.get_python_inc()'`"
+ 	PYTHON_MAKEFILE="$PY_EXEC_PREFIX/lib/python$PYTHON_VERSION/config/Makefile"
+ 	PYTHON_LOCALMODLIBS=`sed -n -e 's/^LOCALMODLIBS=\(.*\)/\1/p' $PYTHON_MAKEFILE`
+ 	PYTHON_BASEMODLIBS=`sed -n -e 's/^BASEMODLIBS=\(.*\)/\1/p' $PYTHON_MAKEFILE`
diff --git a/packages/freesmartphone/fsod_git.bb b/packages/freesmartphone/fsod_git.bb
index 2783313..c0af2ca 100644
--- a/packages/freesmartphone/fsod_git.bb
+++ b/packages/freesmartphone/fsod_git.bb
@@ -3,21 +3,26 @@ HOMEPAGE = "http://www.freesmartphone.org/"
 AUTHOR = "Sudharshan S"
 SECTION = "console/network"
 DEPENDS = "dbus dbus-glib libnl vala-native"
+# for pygobject-codegen
+DEPENDS += "python-pygtk"
 LICENSE = "LGPL"
 PV = "0.1+gitr${SRCREV}"
-PR = "r0"
+PR = "r1"
+
+inherit autotools pkgconfig update-rc.d distutils-base
+
+EXTRA_OECONF = "--enable-python --with-python-includes=${STAGING_INCDIR}/.."
+
+INITSCRIPT_NAME = "fsod"
+INITSCRIPT_PARAMS = "defaults 21"
 
 SRC_URI = "\
   ${FREESMARTPHONE_GIT}/openmoko-gsoc2008.git;protocol=git;branch=master \
+  file://autofoo.patch;patch=1 \
 #  file://fsod \
 "
 S = "${WORKDIR}/git/fsod"
 
-inherit autotools pkgconfig update-rc.d
-
-INITSCRIPT_NAME = "fsod"
-INITSCRIPT_PARAMS = "defaults 21"
-
 do_install_append() {
 #        install -d ${D}${sysconfdir}/init.d
 #        install -m 0755 ${WORKDIR}/fsod ${D}${sysconfdir}/init.d/
@@ -26,9 +31,9 @@ do_install_append() {
 RCONFLICTS_${PN} = "frameworkd"
 RREPLACES_${PN} = "frameworkd"
 
-FILES_${PN} += "${sysconfdir}"
+FILES_${PN} += "${sysconfdir} ${datadir}"
 FILES_${PN}-dbg += "\
+  ${bindir}/.debug \
   ${libdir}/fsod/subsystems/.debug \
   ${libdir}/fsod/subsystems/*/.debug \
 "
-





More information about the Openembedded-commits mailing list