lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

commit bf4523259169e094f319689360d31e7101ca2333
parent 3d2d5d9f5ddc96c6e2bdc2521c990ce2f4f65422
Author: Anton Glukhov <anton.a.glukhov@gmail.com>
Date:   Wed, 30 Sep 2015 15:28:04 +0300

libcoap: Add new package

Signed-off-by: Anton Glukhov <anton.a.glukhov@gmail.com>

Diffstat:
Alibs/libcoap/Makefile | 58++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+), 0 deletions(-)

diff --git a/libs/libcoap/Makefile b/libs/libcoap/Makefile @@ -0,0 +1,58 @@ +# +# Copyright (C) 2015 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:=libcoap +PKG_RELEASE:=1 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/obgm/libcoap +PKG_SOURCE_SUBDIR:=$(PKG_NAME) +PKG_SOURCE_VERSION:=2da31de732c0e51a9bc9e1d4aea21e25da89cf87 +PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.bz2 + +PKG_MAINTAINER:=Anton Glukhov <anton.a.glukhov@gmail.com> +PKG_LICENSE:=GPL-2.0+ BSD-2-Clause +PKG_LICENSE_FILE:=COPYING LICENSE.GPL LICENSE.BSD + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/libcoap + SECTION:=libs + CATEGORY:=Libraries + TITLE:=CoAP (RFC 7252) library + URL:=http://libcoap.net/ +endef + +define Package/libcoap/description + Constrained Application Protocol (RFC 7252) library +endef + +TARGET_CFLAGS += $(FPIC) + +CONFIGURE_ARGS += \ + --disable-examples \ + --disable-documentation + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include + $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ + + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ +endef + +define Package/libcoap/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcoap-1.so* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libcoap))