Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Danomi Manchego <danomimanchego123@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] New package: LuaExpat [v2]
Date: Sun, 15 Jul 2012 22:59:26 -0400	[thread overview]
Message-ID: <1342407566-2819-2-git-send-email-danomimanchego123@gmail.com> (raw)
In-Reply-To: <1342407566-2819-1-git-send-email-danomimanchego123@gmail.com>

Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>
---
 package/Config.in            |    1 +
 package/luaexpat/Config.in   |    7 +++++++
 package/luaexpat/luaexpat.mk |   39 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 47 insertions(+)
 create mode 100644 package/luaexpat/Config.in
 create mode 100644 package/luaexpat/luaexpat.mk

diff --git a/package/Config.in b/package/Config.in
index 99257b4..5126f1a 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -250,6 +250,7 @@ menu "LUA libraries/modules"
 source "package/cgilua/Config.in"
 source "package/copas/Config.in"
 source "package/coxpcall/Config.in"
+source "package/luaexpat/Config.in"
 source "package/luafilesystem/Config.in"
 source "package/luasocket/Config.in"
 source "package/rings/Config.in"
diff --git a/package/luaexpat/Config.in b/package/luaexpat/Config.in
new file mode 100644
index 0000000..186c5c9
--- /dev/null
+++ b/package/luaexpat/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_LUAEXPAT
+	bool "luaexpat"
+	select BR2_PACKAGE_EXPAT
+	help
+	  LuaExpat is a SAX XML parser based on the Expat library.
+
+	  http://matthewwild.co.uk/projects/luaexpat/
diff --git a/package/luaexpat/luaexpat.mk b/package/luaexpat/luaexpat.mk
new file mode 100644
index 0000000..e23473e
--- /dev/null
+++ b/package/luaexpat/luaexpat.mk
@@ -0,0 +1,39 @@
+#############################################################
+#
+# luaexpat
+#
+#############################################################
+
+LUAEXPAT_VERSION      = 1.2.0
+LUAEXPAT_SOURCE       = luaexpat-$(LUAEXPAT_VERSION).tar.gz
+LUAEXPAT_SITE         = http://matthewwild.co.uk/projects/luaexpat
+LUAEXPAT_DEPENDENCIES = lua expat
+
+
+LUAEXPAT_MFLAGS += LUA_VERSION_NUM=501
+LUAEXPAT_MFLAGS += LUA_INC=$(STAGING_DIR)/usr/include/lua
+LUAEXPAT_MFLAGS += EXPAT_INC=$(STAGING_DIR)/usr/include
+LUAEXPAT_MFLAGS += LIBNAME=lxp.so
+LUAEXPAT_MFLAGS += LIB_OPTION="-shared -fPIC $(TARGET_CFLAGS)"
+LUAEXPAT_MFLAGS += CC="$(TARGET_CC) -fPIC $(TARGET_CFLAGS)"
+
+
+define LUAEXPAT_BUILD_CMDS
+	$(MAKE) -C $(@D) $(LUAEXPAT_MFLAGS)
+endef
+
+define LUAEXPAT_INSTALL_TARGET_CMDS
+	$(INSTALL) -D $(@D)/src/lxp.so $(TARGET_DIR)/usr/lib/lua/lxp.so
+	$(INSTALL) -D -m 0644 $(@D)/src/lxp/lom.lua $(TARGET_DIR)/usr/share/lua/lxp/lom.lua
+endef
+
+define LUAEXPAT_UNINSTALL_TARGET_CMDS
+	rm -f "$(TARGET_DIR)/usr/lib/lua/lxp.so"
+	rm -f "$(TARGET_DIR)/usr/share/lua/lxp/lom.lua"
+endef
+
+define LUAEXPAT_CLEAN_CMDS
+	$(MAKE) -C $(@D) $(LUAEXPAT_MFLAGS) clean
+endef
+
+$(eval $(call GENTARGETS))
-- 
1.7.9.5

  reply	other threads:[~2012-07-16  2:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-16  2:59 [Buildroot] (no subject) Danomi Manchego
2012-07-16  2:59 ` Danomi Manchego [this message]
2012-07-16 14:47   ` [Buildroot] [PATCH] New package: LuaExpat [v2] François Perrad
2012-07-17 21:32   ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1342407566-2819-2-git-send-email-danomimanchego123@gmail.com \
    --to=danomimanchego123@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox