summaryrefslogtreecommitdiff
path: root/recipes/gnokii
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/gnokii')
-rw-r--r--recipes/gnokii/gnokii/configure.patch21
-rw-r--r--recipes/gnokii/gnokii_0.6.14.bb26
-rw-r--r--recipes/gnokii/gnokii_0.6.4.bb28
3 files changed, 75 insertions, 0 deletions
diff --git a/recipes/gnokii/gnokii/configure.patch b/recipes/gnokii/gnokii/configure.patch
new file mode 100644
index 0000000000..0cc3cb4a6b
--- /dev/null
+++ b/recipes/gnokii/gnokii/configure.patch
@@ -0,0 +1,21 @@
+--- gnokii-0.6.4/configure.in.old 2005-01-09 20:15:53.000000000 +0000
++++ gnokii-0.6.4/configure.in 2005-01-09 20:15:55.000000000 +0000
+@@ -379,11 +379,16 @@
+ AC_MSG_WARN(Cannot find library libX11.)
+ AC_MSG_WARN(Disabling xgnokii.)
+ else
++ if test "x$x_libraries" != "x"; then
++ l_x_libraries="-L$x_libraries"
++ else
++ l_x_libraries=""
++ fi
+ AC_CHECK_LIB(Xpm, XpmWriteFileFromXpmImage,
+- [ XPM_CFLAGS="$XINCL" XPM_LIBS="-L$x_libraries -lXpm -lX11"
++ [ XPM_CFLAGS="$XINCL" XPM_LIBS="$l_x_libraries -lXpm -lX11"
+ AC_DEFINE(XPM) ],
+ AC_MSG_WARN(Cannot found library libXpm - disabling XPM support.),
+- [ -L$x_libraries -lX11 ]
++ [ $l_x_libraries -lX11 ]
+ )
+
+ if test "x$PTHREAD_LIBS" = xerror; then
diff --git a/recipes/gnokii/gnokii_0.6.14.bb b/recipes/gnokii/gnokii_0.6.14.bb
new file mode 100644
index 0000000000..7a7a3d71e3
--- /dev/null
+++ b/recipes/gnokii/gnokii_0.6.14.bb
@@ -0,0 +1,26 @@
+LICENSE = "GPL"
+DESCRIPTION = "Cellphone tools and driver software"
+SRC_URI = "http://www.gnokii.org/download/gnokii/gnokii-${PV}.tar.bz2 \
+ file://configure.patch;patch=1"
+
+DEPENDS = "libxpm gtk+"
+
+inherit autotools pkgconfig
+
+PARALLEL_MAKE = ""
+
+PACKAGES += "libgnokii libgnokii-dev"
+
+FILES_${PN} = "${bindir} ${sbindir}"
+FILES_libgnokii-dev = "${includedir} ${libdir}/lib*.so ${libdir}/*.la \
+ ${libdir}/*.a ${libdir}/*.o ${libdir}/pkgconfig \
+ /lib/*.a /lib/*.o ${datadir}/aclocal"
+FILES_${PN}-dev = ""
+FILES_libgnokii = "${libdir}/libgnokii.so.*"
+
+do_stage() {
+ autotools_stage_includes
+
+ oe_libinstall -C common -so libgnokii ${STAGING_LIBDIR}
+}
+
diff --git a/recipes/gnokii/gnokii_0.6.4.bb b/recipes/gnokii/gnokii_0.6.4.bb
new file mode 100644
index 0000000000..44582f3db6
--- /dev/null
+++ b/recipes/gnokii/gnokii_0.6.4.bb
@@ -0,0 +1,28 @@
+LICENSE = "GPL"
+DESCRIPTION = "Cellphone tools and driver software"
+SRC_URI = "http://www.gnokii.org/download/gnokii/0.6.x/gnokii-${PV}.tar.bz2 \
+ file://configure.patch;patch=1"
+
+DEPENDS = "libxpm"
+
+inherit autotools pkgconfig
+
+PACKAGES += "libgnokii libgnokii-dev"
+
+FILES_${PN} = "${bindir} ${sbindir}"
+FILES_libgnokii-dev = "${includedir} ${libdir}/lib*.so ${libdir}/*.la \
+ ${libdir}/*.a ${libdir}/*.o ${libdir}/pkgconfig \
+ /lib/*.a /lib/*.o ${datadir}/aclocal"
+FILES_${PN}-dev = ""
+FILES_libgnokii = "${libdir}/libgnokii.so.*"
+
+do_compile_prepend() {
+ sed -i s:foo::g Makefile.global
+}
+
+do_stage() {
+ autotools_stage_includes
+
+ oe_libinstall -C common -so libgnokii ${STAGING_LIBDIR}
+}
+