Merge pull request #10433 from flyn-org/grilo
[feed/packages.git] / libs / libnetconf2 / Makefile
1 #
2 # Copyright (C) 2017 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libnetconf2
11 PKG_VERSION:=0.12-r2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://codeload.github.com/CESNET/libnetconf2/tar.gz/v$(PKG_VERSION)?
16 PKG_HASH:=760061fb1c1fe87a2a068d5a9e5affcef280044c5940ef344854e9ea7ec26452
17
18 PKG_MAINTAINER:=Mislav Novakovic <mislav.novakovic@sartura.hr>
19 PKG_LICENSE:=BSD-3-Clause
20 PKG_LICENSE_FILES:=LICENSE
21
22 CMAKE_INSTALL:=1
23 PKG_BUILD_PARALLEL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26 include $(INCLUDE_DIR)/cmake.mk
27
28 define Package/libnetconf2
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=NETCONF library
32 URL:=https://github.com/CESNET/libnetconf2
33 DEPENDS:= +libyang +libssh +libopenssl +libpthread
34 endef
35
36 define Package/libnetconf2/description
37 libnetconf2 is the NETCONF library in C intended for building NETCONF clients and servers.
38
39 libnetconf2 provides basic functions to connect NETCONF client and server to each other via
40 SSH, to send and receive NETCONF messages. NETCONF datastore implementation is not included.
41 endef
42
43 define Package/libnetconf2/install
44 $(INSTALL_DIR) $(1)/usr/lib
45 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnetconf2.so* $(1)/usr/lib/
46
47 $(INSTALL_DIR) $(1)/usr/share/libnetconf2
48 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/libnetconf2/*.yin $(1)/usr/share/libnetconf2/
49 endef
50
51 $(eval $(call BuildPackage,libnetconf2))