swig: add host build
authorJohn Crispin <[email protected]>
Fri, 2 Oct 2015 11:30:29 +0000 (13:30 +0200)
committerJohn Crispin <[email protected]>
Thu, 15 Oct 2015 22:11:57 +0000 (00:11 +0200)
this is a binding generator needed to build node plugins

Signed-off-by: John Crispin <[email protected]>
utils/swig/Makefile [new file with mode: 0644]

diff --git a/utils/swig/Makefile b/utils/swig/Makefile
new file mode 100644 (file)
index 0000000..c74bdb8
--- /dev/null
@@ -0,0 +1,35 @@
+# 
+# Copyright (C) 2006-2013 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=swig
+PKG_VERSION:=3.0.7
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=@SF/$(PKG_NAME)
+PKG_MD5SUM:=7fff46c84b8c630ede5b0f0827e3d90a
+PKG_INSTALL:=1
+
+PKG_MAINTAINER:=John Crispin <[email protected]>
+PKG_LICENSE:=GPL-3.0
+
+include $(INCLUDE_DIR)/host-build.mk
+include $(INCLUDE_DIR)/package.mk
+
+define Package/swig
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE:=swig binding generator
+  BUILDONLY:=1
+endef
+
+define Package/swig/description
+  tool that generates bindings for various languages
+endef
+
+$(eval $(call HostBuild))
+$(eval $(call BuildPackage,swig))