@ -1,4 +1,4 @@
#
#
# Copyright (C) 2016 OpenWrt.org
# Copyright (C) 2016 OpenWrt.org
#
#
# This is free software, licensed under the GNU General Public License v2.
# This is free software, licensed under the GNU General Public License v2.
@ -11,25 +11,22 @@ include $(TOPDIR)/rules.mk
PKG_NAME := zeromq
PKG_NAME := zeromq
PKG_VERSION := 4.1.7
PKG_VERSION := 4.1.7
PKG_RELEASE := 1
PKG_MAINTAINER := Dirk Chang <dirk@kooiot.com>
PKG_LICENSE := GPL-3.0+
PKG_LICENSE_FILES := LICENCE.txt
PKG_CPE_ID := cpe:/a:zeromq:libzmq
PKG_RELEASE := 2
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://github.com/zeromq/zeromq4-1/releases/download/v$( PKG_VERSION)
PKG_SOURCE_URL := https://github.com/zeromq/zeromq4-1/releases/download/v$( PKG_VERSION)
PKG_HASH := 31c383cfcd3be1dc8a66e448c403029e793687e70473b89c4cc0bd626e7da299
PKG_HASH := 31c383cfcd3be1dc8a66e448c403029e793687e70473b89c4cc0bd626e7da299
PKG_BUILD_DIR := $( BUILD_DIR) /$( PKG_NAME) -$( BUILD_VARIANT) /$( PKG_NAME) -$( PKG_VERSION)
PKG_BUILD_DIR := $( BUILD_DIR) /$( PKG_NAME) -$( BUILD_VARIANT) /$( PKG_NAME) -$( PKG_VERSION)
PKG_FIXUP := autoreconf
PKG_MAINTAINER := Dirk Chang <dirk@kooiot.com>
PKG_LICENSE := GPL-3.0-or-later
PKG_LICENSE_FILES := LICENCE.txt
PKG_CPE_ID := cpe:/a:zeromq:libzmq
PKG_INSTALL := 1
PKG_INSTALL := 1
PKG_BUILD_PARALLEL := 1
PKG_REMOVE_FILES := autogen.sh acinclude.m4 aclocal.m4
i n c l u d e $( INCLUDE_DIR ) / u c l i b c + + . m k
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / l i b z m q / d e f a u l t
d e f i n e P a c k a g e / l i b z m q / d e f a u l t
@ -37,7 +34,7 @@ define Package/libzmq/default
URL:= http://www.zeromq.org/
URL:= http://www.zeromq.org/
SECTION:= libs
SECTION:= libs
CATEGORY:= Libraries
CATEGORY:= Libraries
DEPENDS:= +libuuid +libpthread +librt $( CXX_DEPENDS)
DEPENDS:= +libuuid +libpthread +librt +libstdcpp
PROVIDES:= libzmq
PROVIDES:= libzmq
e n d e f
e n d e f
@ -65,7 +62,10 @@ endef
# add extra configure flags here
# add extra configure flags here
CONFIGURE_ARGS += \
CONFIGURE_ARGS += \
--enable-static \
--enable-static \
--enable-shared
--enable-shared \
--with-pic \
--with-relaxed \
--without-documentation
i f e q ( $( BUILD_VARIANT ) , c u r v e )
i f e q ( $( BUILD_VARIANT ) , c u r v e )
CONFIGURE_ARGS += --with-libsodium
CONFIGURE_ARGS += --with-libsodium
@ -73,6 +73,8 @@ else
CONFIGURE_ARGS += --without-libsodium
CONFIGURE_ARGS += --without-libsodium
e n d i f
e n d i f
TARGET_CXXFLAGS += -Wno-error= cpp
d e f i n e B u i l d / I n s t a l l D e v
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/include
$( INSTALL_DIR) $( 1) /usr/include
$( CP) $( PKG_INSTALL_DIR) /usr/include/zmq.h $( 1) /usr/include
$( CP) $( PKG_INSTALL_DIR) /usr/include/zmq.h $( 1) /usr/include