From 709c4d66e0b107ca606941b988bad717c0b45d9b Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Tue, 17 Mar 2009 14:32:59 -0400 Subject: rename packages/ to recipes/ per earlier agreement See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko Acked-by: Mike Westerhof Acked-by: Philip Balister Acked-by: Khem Raj Acked-by: Marcin Juszkiewicz Acked-by: Koen Kooi Acked-by: Frans Meulenbroeks --- recipes/libnl/files/fix-includes.patch | 13 +++++++++++++ .../local-includes-and-avoid-wrong-ldflags.patch | 13 +++++++++++++ recipes/libnl/libnl_1.1.bb | 19 +++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 recipes/libnl/files/fix-includes.patch create mode 100644 recipes/libnl/files/local-includes-and-avoid-wrong-ldflags.patch create mode 100644 recipes/libnl/libnl_1.1.bb (limited to 'recipes/libnl') diff --git a/recipes/libnl/files/fix-includes.patch b/recipes/libnl/files/fix-includes.patch new file mode 100644 index 0000000000..b172fd2f86 --- /dev/null +++ b/recipes/libnl/files/fix-includes.patch @@ -0,0 +1,13 @@ +diff -ruN libnl-1.1/lib/route/link/vlan.c libnl-1.1-new/lib/route/link/vlan.c +--- libnl-1.1/lib/route/link/vlan.c 2008-01-14 18:48:45.000000000 +0300 ++++ libnl-1.1-new/lib/route/link/vlan.c 2009-01-30 10:55:09.000000000 +0300 +@@ -26,7 +26,9 @@ + #include + #include + ++#ifndef VLAN_FLAG_REORDER_HDR + #include ++#endif + + /** @cond SKIP */ + #define VLAN_HAS_ID (1<<0) diff --git a/recipes/libnl/files/local-includes-and-avoid-wrong-ldflags.patch b/recipes/libnl/files/local-includes-and-avoid-wrong-ldflags.patch new file mode 100644 index 0000000000..428df53a94 --- /dev/null +++ b/recipes/libnl/files/local-includes-and-avoid-wrong-ldflags.patch @@ -0,0 +1,13 @@ +--- libnl-1.0-pre8/Makefile.opts.in.orig 2007-11-21 18:25:39.000000000 +0100 ++++ libnl-1.0-pre8/Makefile.opts.in 2008-04-04 23:38:40.000000000 +0200 +@@ -10,8 +10,8 @@ + # + + CC := @CC@ +-CFLAGS := @CFLAGS@ +-LDFLAGS := @LDFLAGS@ ++CFLAGS := -I./include -I. -I../include @CFLAGS@ ++LDFLAGS := + CPPFLAGS := @CPPFLAGS@ + PACKAGE_NAME := @PACKAGE_NAME@ + PACKAGE_VERSION := @PACKAGE_VERSION@ diff --git a/recipes/libnl/libnl_1.1.bb b/recipes/libnl/libnl_1.1.bb new file mode 100644 index 0000000000..dcca3c6e92 --- /dev/null +++ b/recipes/libnl/libnl_1.1.bb @@ -0,0 +1,19 @@ +DESCRIPTION = "libnl is a library for applications dealing with netlink sockets" +SECTION = "libs/network" +LICENSE = "LGPL" +HOMEPAGE = "http://people.suug.ch/~tgr/libnl" +PR = "r1" + +inherit autotools pkgconfig + +CFLAGS += '-DVLAN_FLAG_REORDER_HDR=1' + +SRC_URI = "\ + http://people.suug.ch/~tgr/libnl/files/libnl-${PV}.tar.gz \ + file://local-includes-and-avoid-wrong-ldflags.patch;patch=1 \ + file://fix-includes.patch;patch=1 \ +" + +do_stage () { + autotools_stage_all prefix=${prefix} +} -- cgit v1.2.3