Merge pull request #1199 from kooiot/master

Added a few lua modules (lpeg, md5, cjson, copas, coxpcall, lzlib, rings...
This commit is contained in:
Steven Barth
2015-04-28 08:51:37 +02:00
22 changed files with 918 additions and 0 deletions
+81
View File
@@ -0,0 +1,81 @@
#
# Copyright (C) 2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# This Makefile for ZeroMQ
#
include $(TOPDIR)/rules.mk
PKG_NAME:=zeromq
PKG_VERSION:=4.0.5
PKG_RELEASE:=1
PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com>
PKG_LICENSE:=GPL-3.0+
PKG_LICENSE_FILES:=LICENCE.txt
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:= http://download.zeromq.org
PKG_MD5SUM:=73c39f5eb01b9d7eaf74a5d899f1d03d
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_DEPENDS:=libuuid
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
include $(INCLUDE_DIR)/uclibc++.mk
include $(INCLUDE_DIR)/package.mk
define Package/libzmq/Default
TITLE:=ZeroMQ - Code Connected
URL:=http://www.zeromq.org/
endef
define Package/libzmq/Default/description
A replacment for raw socket developing library
endef
define Package/libzmq
$(call Package/libzmq/Default)
SECTION:=libs
CATEGORY:=Libraries
DEPENDS:=+libuuid +libpthread +librt $(CXX_DEPENDS)
TITLE+= (library)
URL:=
endef
define Package/libzmq/description
$(call Package/libzmq/Default/description)
This package contains the ZeroMQ shared library, used by other
programs.
endef
# add extra configure flags here
CONFIGURE_ARGS += \
--enable-static \
--enable-shared
# add make variable overrides here
MAKE_FLAGS +=
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/zmq.h $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/zmq_utils.h $(1)/usr/include
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libzmq.{a,so*} $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libzmq.pc $(1)/usr/lib/pkgconfig/
endef
define Package/libzmq/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libzmq.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libzmq))
@@ -0,0 +1,14 @@
--- zeromq-4.0.4_org/configure.ac 2014-06-04 10:19:35.140061796 +0800
+++ zeromq-4.0.4/configure.ac 2014-06-04 11:08:17.231997926 +0800
@@ -127,8 +127,10 @@
*linux*)
# Define on Linux to enable all library features. Define if using a gnu compiler
if test "x$GXX" = "xyes"; then
- CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS"
+ CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS -Wno-long-long"
fi
+ libzmq_pedantic="no"
+ libzmq_werror="no"
AC_DEFINE(ZMQ_HAVE_LINUX, 1, [Have Linux OS])
libzmq_on_linux="yes"
@@ -0,0 +1,10 @@
--- zeromq-4.0.4_org/src/blob.hpp 2014-06-04 10:19:12.680062287 +0800
+++ zeromq-4.0.4/src/blob.hpp 2014-06-04 10:30:31.168047457 +0800
@@ -21,6 +21,7 @@
#define __ZMQ_BLOB_HPP_INCLUDED__
#include <string>
+#include <ios>
#include <string.h>
// Borrowed from id3lib_strings.h:
+10
View File
@@ -0,0 +1,10 @@
diff -ruNa zeromq-4.0.4_org/tools/Makefile.am zeromq-4.0.4/tools/Makefile.am
--- zeromq-4.0.4_org/tools/Makefile.am 2014-06-03 20:01:12.392379933 +0800
+++ zeromq-4.0.4/tools/Makefile.am 2014-06-03 19:59:18.616382420 +0800
@@ -1,5 +1,5 @@
EXTRA_DIST = curve_keygen.c
+CFLAGS += -std=c99
-
INCLUDES = -I$(top_srcdir)/include
bin_PROGRAMS = curve_keygen