From 3a8365f4db802b48dc49e73e6c33d3be0cbfbc49 Mon Sep 17 00:00:00 2001 From: Michael Mrozek Date: Tue, 7 Jun 2011 12:40:43 +0200 Subject: [PATCH] gpm: Updated recipe --- recipes/gpm/gpm_1.20.6.bb | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 recipes/gpm/gpm_1.20.6.bb diff --git a/recipes/gpm/gpm_1.20.6.bb b/recipes/gpm/gpm_1.20.6.bb new file mode 100644 index 0000000000..d51536c796 --- /dev/null +++ b/recipes/gpm/gpm_1.20.6.bb @@ -0,0 +1,38 @@ +DESCRIPTION = "GPM (General Purpose Mouse) is a mouse server \ +for the console and xterm, with sample clients included \ +(emacs, etc)." +SECTION = "console/utils" +LICENSE = "GPL" +DEPENDS = "ncurses" + +PR = "r4" +PARALLEL_MAKE = "" + +SRC_URI = "http://www.nico.schottelius.org/software/gpm/archives/gpm-${PV}.tar.bz2 \ + file://configure.patch;patch=1 \ + file://no-docs.patch;patch=1 \ + file://gpm-OPEN_MAX.patch;patch=1 \ + file://init" + +inherit autotools update-rc.d + +INITSCRIPT_NAME = "gpm" +INITSCRIPT_PARAMS = "defaults" + +export LIBS = "-lm" + +do_configure_prepend () { + cp aclocal.m4 acinclude.m4 +} + +do_stage () { + install -m 0644 src/headers/gpm.h ${STAGING_INCDIR}/ + oe_libinstall -so -a -C src/lib libgpm ${STAGING_LIBDIR} +} + +do_install () { + oe_runmake 'ROOT=${D}' install + install -d ${D}/${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/gpm + cd ${D}${libdir} && ln -sf libgpm.so.1.19.0 libgpm.so.1 +} -- 2.39.5