[oe-commits] Petr Štetiar : lua-zeromq: add new recipe
git version control
git at git.openembedded.org
Sun May 8 18:04:17 UTC 2011
Module: openembedded.git
Branch: master
Commit: 3f644fb436fb78602f59c24769558deb12ab3ed5
URL: http://git.openembedded.org/?p=openembedded.git&a=commit;h=3f644fb436fb78602f59c24769558deb12ab3ed5
Author: Petr Štetiar <ynezz at true.cz>
Date: Sun Oct 10 18:02:51 2010 +0200
lua-zeromq: add new recipe
Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
recipes/lua/lua-zeromq/makefile.patch | 37 +++++++++++++++++++++++++++++++++
recipes/lua/lua-zeromq_git.bb | 27 ++++++++++++++++++++++++
2 files changed, 64 insertions(+), 0 deletions(-)
diff --git a/recipes/lua/lua-zeromq/makefile.patch b/recipes/lua/lua-zeromq/makefile.patch
new file mode 100644
index 0000000..336b8de
--- /dev/null
+++ b/recipes/lua/lua-zeromq/makefile.patch
@@ -0,0 +1,37 @@
+Index: git/Makefile
+===================================================================
+--- git.orig/Makefile 2010-10-10 19:16:14.000000000 +0200
++++ git/Makefile 2010-10-10 19:13:20.000000000 +0200
+@@ -18,25 +18,25 @@
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ # THE SOFTWARE.
+
+-CC = gcc
+-CFLAGS = `pkg-config lua5.1 --cflags` -fPIC -O3 -Wall
+-LFLAGS = -shared `pkg-config --libs --cflags libzmq`
+-INSTALL_PATH = `pkg-config lua5.1 --variable=INSTALL_CMOD`
++#CC = gcc
++CFLAGS = $(MYFLAGS) `pkg-config lua5.1 --cflags` -fPIC -Wall
++LFLAGS = $(MYFLAGS) -shared `pkg-config --libs --cflags libzmq`
++#INSTALL_PATH = `pkg-config lua5.1 --variable=INSTALL_CMOD`
+
+
+ all: zmq.so
+
+
+ zmq.lo: zmq.c
+- $(CC) -o zmq.lo -c $(CFLAGS) zmq.c
++ $(CC) -o zmq.lo -c $(CFLAGS) -fPIC zmq.c
+
+
+ zmq.so: zmq.lo
+- $(CC) -o zmq.so $(LFLAGS) zmq.lo
++ $(CC) -o zmq.so $(LFLAGS) -shared zmq.lo
+
+
+ install: zmq.so
+- install -D -s zmq.so $(INSTALL_PATH)/zmq.so
++ install -D zmq.so $(PREFIX)/zmq.so
+
+
+ clean:
diff --git a/recipes/lua/lua-zeromq_git.bb b/recipes/lua/lua-zeromq_git.bb
new file mode 100644
index 0000000..32ebf39
--- /dev/null
+++ b/recipes/lua/lua-zeromq_git.bb
@@ -0,0 +1,27 @@
+DESCRIPTION = "Lua bindings to zeromq2."
+HOMEPAGE = "http://github.com/iamaleksey/lua-zmq"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://zmq.c;beginline=1;endline=21;md5=e1bbb5e9ca8c6fb7215f886d9d0d5cd3"
+
+DEPENDS += "lua5.1 zeromq"
+
+PR = "r0"
+PV = "0.10+gitr${SRCREV}"
+S = "${WORKDIR}/git/"
+SRCREV = "5578612efe296faa36203c7b80507e38fa7714e0"
+
+SRC_URI = "git://github.com/iamaleksey/lua-zmq.git;protocol=git \
+ file://makefile.patch \
+ "
+
+LUA_LIB_DIR = "${libdir}/lua/5.1"
+
+PACKAGES = "${PN} ${PN}-dbg"
+FILES_${PN}-dbg = "${LUA_LIB_DIR}/.debug/zmq.so"
+FILES_${PN} = "${LUA_LIB_DIR}/zmq.so"
+
+EXTRA_OEMAKE = "MYFLAGS='${CFLAGS} ${LDFLAGS} -shared'"
+
+do_install() {
+ oe_runmake install PREFIX=${D}${LUA_LIB_DIR}
+}
More information about the Openembedded-commits
mailing list