[oe-commits] org.oe.oz354x gizmod: add gizmod

justinp commit openembedded-commits at lists.openembedded.org
Sun Jan 21 20:41:37 UTC 2007


gizmod: add gizmod

Author: justinp at openembedded.org
Branch: org.openembedded.oz354x
Revision: b21b0528d7ca0d8a49cc2ffae06e5dee391f9fa1
ViewMTN: http://monotone.openembedded.org/revision.psp?id=b21b0528d7ca0d8a49cc2ffae06e5dee391f9fa1
Files:
1
packages/gizmod
packages/gizmod/files
packages/gizmod/files/disable-xmms.patch
packages/gizmod/files/fix-python-configure.patch
packages/gizmod/gizmod_2.3.bb
Diffs:

#
# mt diff -rc74b99d62800afdf3db8102fc75f5dbba25c05e8 -rb21b0528d7ca0d8a49cc2ffae06e5dee391f9fa1
#
# 
# 
# add_dir "packages/gizmod"
# 
# add_dir "packages/gizmod/files"
# 
# add_file "packages/gizmod/files/disable-xmms.patch"
#  content [d49a4a58e0fe166a918ee875a8e175907a40d189]
# 
# add_file "packages/gizmod/files/fix-python-configure.patch"
#  content [67e0e9c0f1b9b0fa7607568c8ba8ff43afb8f9dc]
# 
# add_file "packages/gizmod/gizmod_2.3.bb"
#  content [24198ca1f78b933d1dc2086f9f933faf13379f4b]
# 
============================================================
--- packages/gizmod/files/disable-xmms.patch	d49a4a58e0fe166a918ee875a8e175907a40d189
+++ packages/gizmod/files/disable-xmms.patch	d49a4a58e0fe166a918ee875a8e175907a40d189
@@ -0,0 +1,113 @@
+Index: gizmod-2.3/configure.ac
+===================================================================
+--- gizmod-2.3.orig/configure.ac
++++ gizmod-2.3/configure.ac
+@@ -393,60 +393,6 @@ fi
+ 
+ ###########################################################################
+ ##
+-## Check whether to build XMMS plugin
+-##
+-
+-##################
+-## enabled?
+-########
+-
+-AC_MSG_CHECKING(Whether or not to build XMMS plugin)
+-AC_ARG_ENABLE(xmms,
+-              [  --enable-xmms           build XMMS plugin                    <default = yes>],
+-              [enable_xmms="$enableval"], enable_xmms=yes)
+-AC_MSG_RESULT($enable_xmms)
+-
+-AM_CONDITIONAL(BUILD_EXTERNALPLUGIN_XMMS, test x$enable_xmms = xyes)
+-AM_CONDITIONAL(BUILD_PLUGIN_XMMSCONTROL, test x$enable_xmms = xyes)
+-
+-##################
+-## can we build it if it's enabled?
+-########
+-
+-if test "$enable_xmms" == "yes"; then
+-
+-XMMS_CFLAGS=""
+-XMMS_LIBS=""
+-
+-#check stuff
+-
+-AM_PATH_XMMS(1.2.4,
+-	XMMS_CFLAGS=`xmms-config --cflags`
+-	CPPFLAGS="$CPPFLAGS $XMMS_CFLAGS"
+-	XMMS_LIBS=`xmms-config --libs`
+-	,
+-	AC_MSG_ERROR([You must have the XMMS development headers installed to build the XMMS plugin!])
+-)
+-
+-AC_CHECK_HEADER(xmms/xmmsctrl.h, [
+-	AC_DEFINE(HAVE_XMMSCTRL_H, 1, [Has xmms/xmmsctrl.h])
+-	], [
+-	AC_MSG_ERROR([Cannot find xmmsctrl.h!])
+-	])
+-	
+-AC_CHECK_HEADER(xmms/plugin.h, [
+-	AC_DEFINE(HAVE_XMMSPLUGIN_H, 1, [Has xmms/xmmsplugin.h])
+-	], [
+-	AC_MSG_ERROR([Cannot find xmms/plugin.h!])
+-	])
+-
+-AC_SUBST(XMMS_CFLAGS)
+-AC_SUBST(XMMS_LIBS)
+-
+-fi
+-
+-###########################################################################
+-##
+ ## Check whether to build Sound Visualization plugin
+ ##
+ 
+@@ -691,10 +637,8 @@ AC_CONFIG_FILES([
+ 	plugins/soundVisualization/Makefile
+ 	plugins/cpuUsage/Makefile
+ 	plugins/x11/Makefile
+-	plugins/xmmsControl/Makefile
+ 	plugins/bmpControl/Makefile
+ 	plugins/externalPlugins/Makefile
+-	plugins/externalPlugins/xmms/Makefile
+ 	plugins/externalPlugins/bmp/Makefile
+ 	plugins/lirc/Makefile
+ ])
+@@ -774,22 +718,10 @@ else
+ 	echo "          BMP Control plugin: Disabled"
+ fi
+ 
+-if test "$enable_xmms" == "yes"; then
+-	echo "         XMMS Control plugin: Enabled"
+-else
+-	echo "         XMMS Control plugin: Disabled"
+-fi
+-
+ if test "$enable_bmp" == "yes"; then
+ 	echo "    BMP Visualization plugin: Enabled"
+ else
+ 	echo "    BMP Visualization plugin: Disabled"
+ fi
+ 
+-if test "$enable_xmms" == "yes"; then
+-	echo "   XMMS Visualization plugin: Enabled"
+-else
+-	echo "   XMMS Visualization plugin: Disabled"
+-fi
+-
+ echo
+Index: gizmod-2.3/plugins/Makefile.am
+===================================================================
+--- gizmod-2.3.orig/plugins/Makefile.am
++++ gizmod-2.3/plugins/Makefile.am
+@@ -1 +1 @@
+-SUBDIRS=scriptingPlugins powermate alsaMixer xosd generic externalPlugins soundVisualization cpuUsage x11 xmmsControl bmpControl lirc
++SUBDIRS=scriptingPlugins powermate alsaMixer xosd generic externalPlugins soundVisualization cpuUsage x11 bmpControl lirc
+Index: gizmod-2.3/plugins/externalPlugins/Makefile.am
+===================================================================
+--- gizmod-2.3.orig/plugins/externalPlugins/Makefile.am
++++ gizmod-2.3/plugins/externalPlugins/Makefile.am
+@@ -1 +1 @@
+-SUBDIRS=xmms bmp
++SUBDIRS=bmp
============================================================
--- packages/gizmod/files/fix-python-configure.patch	67e0e9c0f1b9b0fa7607568c8ba8ff43afb8f9dc
+++ packages/gizmod/files/fix-python-configure.patch	67e0e9c0f1b9b0fa7607568c8ba8ff43afb8f9dc
@@ -0,0 +1,26 @@
+Index: gizmod-2.3/configure.ac
+===================================================================
+--- gizmod-2.3.orig/configure.ac
++++ gizmod-2.3/configure.ac
+@@ -134,7 +134,7 @@ AC_MSG_CHECKING(for Python linkage)
+ 	py_libdir="${py_prefix}/lib/python${py_ver}"
+ AC_MSG_RESULT($py_libdir)
+ AC_MSG_CHECKING(for Python includes)
+-	PYTHON_INC="-I${py_prefix}/include/python${py_ver}"
++	PYTHON_INC="-I${py_prefix}/TARGET_SYS/include/python${py_ver}"
+ AC_MSG_RESULT($PYTHON_INC)
+ AC_MSG_CHECKING(for Python libs)
+ 	py_libs=`grep '^LIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
+@@ -162,11 +162,7 @@ CFLAGS="$PYTHON_INC $CFLAGS"
+ #	AC_MSG_ERROR([Cannot find python.h!])
+ #	])
+ 
+-AC_CHECK_FILE(${py_prefix}/include/python${py_ver}/Python.h, [
+-	AC_DEFINE(HAVE_PYTHON_H, 1, [Has Python.h])
+-	], [
+-	AC_MSG_ERROR([Cannot find Python.h!])
+-	])
++AC_DEFINE(HAVE_PYTHON_H, 1, [Has Python.h])
+ 
+ CFLAGS="$OLD_CFLAGS"
+ 	
============================================================
--- packages/gizmod/gizmod_2.3.bb	24198ca1f78b933d1dc2086f9f933faf13379f4b
+++ packages/gizmod/gizmod_2.3.bb	24198ca1f78b933d1dc2086f9f933faf13379f4b
@@ -0,0 +1,22 @@
+DESCRIPTION = "Gizmo Daemon"
+HOMEPAGE = "http://gizmod.sourceforge.net"
+LICENSE = "GPLv2"
+MAINTAINER = "Justin Patrin <papercrane at reversefold.com>"
+SECTION = "console/multimedia"
+DEPENDS = "python x11"
+SRC_URI = "${SOURCEFORGE_MIRROR}/gizmod/gizmod-${PV}.tar.bz2 \
+           file://fix-python-configure.patch;patch=1 \
+           file://disable-xmms.patch;patch=1"
+
+PR = "r0"
+
+inherit autotools
+
+EXTRA_OECONF = "--disable-xmms --disable-bmp --disable-xosd"
+
+do_configure_prepend() {
+    sed -i 's/TARGET_SYS/${TARGET_SYS}/' ${S}/configure.ac
+}
+
+FILES_${PN} += "${datadir}/gizmo/plugins/*.so ${datadir}/gizmo/plugins/*.so.*"
+FILES_${PN}-dev += "${datadir}/gizmo/plugins/*.a ${datadir}/gizmo/plugins/*.la"






More information about the Openembedded-commits mailing list