bash: version bump to 4.4.12
[feed/packages.git] / libs / libndpi / 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:=libndpi
11 PKG_VERSION:=1.8
12 PKG_RELEASE:=1
13 PKG_MAINTAINER:=Banglang Huang <banglang.huang@foxmail.com>
14
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_URL:=https://github.com/ntop/nDPI.git
17 PKG_SOURCE_VERSION:=6450ae256cfd7a6006d39df4a29de32f2f6fb7eb
18
19 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
21 PKG_MIRROR_HASH:=4e8fe352bd739c76c980f52904a4a2eefbc17ad68e55603c6c19598d7ccfba3c
22 PKG_LICENSE:=LGPLv3
23
24 PKG_INSTALL:=1
25 PKG_FIXUP:=autoreconf
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/libndpi
30 SECTION:=libs
31 CATEGORY:=Libraries
32 TITLE:=Library for deep-packet inspection
33 URL:=https://github.com/ntop/nDPI
34 DEPENDS:=+libpcap +libjson-c
35 endef
36
37 define Package/libndpi/description
38 nDPI is an open source LGPLv3 library for deep-packet inspection.
39 Based on OpenDPI it includes ntop extensions.
40 endef
41
42 define Build/Configure
43 ( cd $(PKG_BUILD_DIR); ./autogen.sh )
44 $(call Build/Configure/Default)
45 endef
46
47 define Build/InstallDev
48 $(INSTALL_DIR) $(1)/usr/include/
49 $(CP) \
50 $(PKG_INSTALL_DIR)/usr/include/libndpi-1.8.0/libndpi \
51 $(1)/usr/include/
52
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) \
55 $(PKG_INSTALL_DIR)/usr/lib/libndpi.so* \
56 $(1)/usr/lib/
57
58 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
59 $(CP) \
60 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libndpi.pc \
61 $(1)/usr/lib/pkgconfig/
62 endef
63
64 define Package/libndpi/install
65 $(INSTALL_DIR) $(1)/usr/lib/
66 $(CP) \
67 $(PKG_INSTALL_DIR)/usr/lib/libndpi.so* \
68 $(1)/usr/lib/
69 $(INSTALL_DIR) $(1)/usr/bin/
70 $(CP) \
71 $(PKG_INSTALL_DIR)/usr/bin/ndpiReader \
72 $(1)/usr/bin/
73 endef
74
75 $(eval $(call BuildPackage,libndpi))