summaryrefslogtreecommitdiff
path: root/recipes/irda-utils
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/irda-utils')
-rw-r--r--recipes/irda-utils/irdadump/glib2.patch13
-rw-r--r--recipes/irda-utils/irdadump_0.9.16.bb10
2 files changed, 19 insertions, 4 deletions
diff --git a/recipes/irda-utils/irdadump/glib2.patch b/recipes/irda-utils/irdadump/glib2.patch
new file mode 100644
index 0000000000..ea37ab151b
--- /dev/null
+++ b/recipes/irda-utils/irdadump/glib2.patch
@@ -0,0 +1,13 @@
+Index: irdadump/configure.in
+===================================================================
+--- irdadump.orig/configure.in
++++ irdadump/configure.in
+@@ -9,7 +9,7 @@ AC_PROG_MAKE_SET
+
+ dnl Checks for libraries.
+ AM_PROG_LIBTOOL
+-AM_PATH_GLIB(1.2.0)
++AM_PATH_GLIB_2_0
+
+ dnl Checks for header files.
+ AC_HEADER_STDC
diff --git a/recipes/irda-utils/irdadump_0.9.16.bb b/recipes/irda-utils/irdadump_0.9.16.bb
index 5c64b2dd96..90fd03ecb3 100644
--- a/recipes/irda-utils/irdadump_0.9.16.bb
+++ b/recipes/irda-utils/irdadump_0.9.16.bb
@@ -1,14 +1,16 @@
DESCRIPTION = "Utility to dump IrDA traffic."
SECTION = "base"
LICENSE = "GPL"
-DEPENDS = "glib-1.2"
+DEPENDS = "glib-2.0 pkgconfig"
+PR = "r1"
-SRC_URI = "${SOURCEFORGE_MIRROR}/irda/irda-utils-${PV}.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/irda/irda-utils-${PV}.tar.gz \
+ file://glib2.patch;patch=1"
S="${WORKDIR}/irda-utils-${PV}/irdadump"
-EXTRA_CFLAGS += "-I${STAGING_INCDIR}/glib-1.2/"
-EXTRA_LDFLAGS += "-lglib"
+EXTRA_CFLAGS += "`pkg-config --cflags glib-2.0`"
+EXTRA_LDFLAGS += "`pkg-config --libs glib-2.0`"
inherit autotools