diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2011-07-24 17:57:24 +0100 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2011-07-30 02:35:12 +0100 |
commit | e9b45ff67d32fdc27950a51135b6dabada8334e7 (patch) | |
tree | de99cd760c8292ee1dd334e23e1e5cc43e90dfbd /recipes-support/obexpush/obexpush_1.0.0.bb | |
download | meta-opie-e9b45ff67d32fdc27950a51135b6dabada8334e7.tar.gz |
initial commit of meta-opie
Populate the repository with files from OpenEmbedded at revision
45edf621296daf150c72b876d720861235e5762e - no changes, only rearranged
the directory structure to match the new oe-core style and added
COPYING.MIT and README.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'recipes-support/obexpush/obexpush_1.0.0.bb')
-rw-r--r-- | recipes-support/obexpush/obexpush_1.0.0.bb | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/recipes-support/obexpush/obexpush_1.0.0.bb b/recipes-support/obexpush/obexpush_1.0.0.bb new file mode 100644 index 0000000..5701c28 --- /dev/null +++ b/recipes-support/obexpush/obexpush_1.0.0.bb @@ -0,0 +1,53 @@ +DESCRIPTION = "Obex Push Utilities" +HOMEPAGE = "http://www.caside.lancs.ac.uk/java_bt.php" +SECTION = "console/network" +LICENSE = "GPL" +DEPENDS = "glib-2.0 openobex bluez-libs" +PR = "r7" + +SRC_URI = "http://www.caside.lancs.ac.uk/bt/obexpush.tar.gz \ + file://add-obextool.patch \ + file://init \ + file://opd_args" +S = "${WORKDIR}/obexpush" + +inherit update-rc.d + +INITSCRIPT_NAME = "opd" +INITSCRIPT_PARAMS = "defaults 33 9" + +export GLIBINC = "-I${STAGING_INCDIR}/glib-2.0 -I${STAGING_LIBDIR}/glib-2.0/include" +export GLIBLIB = "-I${STAGING_LIBDIR} -lglib-2.0" +export OBEXINC = "-I${STAGING_INCDIR}" +export OBEXLIB = "${LDFLAGS} -lopenobex" + +do_configure() { + rm -f client/*.o client/ussp-push + rm -f opd/*.o opd/opd + sed -i 's:gcc:${CC}:' */Makefile + sed -i 's:__FUNCTION__::' opd/*.c +} + +do_compile() { + oe_runmake -C client ussp-push + oe_runmake -C client obextool + oe_runmake -C opd +} + +do_install() { + install -d ${D}${bindir} + install -d ${D}${sbindir} + install -m 0755 client/ussp-push ${D}${bindir} + install -m 0755 client/obextool ${D}${bindir} + install -m 0755 opd/opd ${D}${sbindir} + + install -d ${D}${sysconfdir}/init.d + install -d ${D}${sysconfdir}/default + install -d ${D}/var/obexpush + install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/opd + install -m 0755 ${WORKDIR}/opd_args ${D}${sysconfdir}/default/opd_args +} + + +SRC_URI[md5sum] = "edb66ba97fe6c84b6160c670c4bcdea8" +SRC_URI[sha256sum] = "341c6865aa392b6cf056e1bd9cda53d2f31a942460087ad22d6f6dc91bb0bd0e" |