sofia-sip: bump to 1.13.17
[feed/telephony.git] / libs / libctb / Makefile
1 #
2 # Copyright (C) 2018 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:=libctb
11 PKG_VERSION:=0.16
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://iftools.com/download/ctb/$(PKG_VERSION)
16 PKG_HASH:=1cb0026a66cfbf8e26988f76cb861f1fbfd04f272f9b9adaf0d463d01282fc08
17
18 MAKE_PATH:=build
19
20 PKG_INSTALL:=1
21
22 PKG_LICENSE:=LGPL
23 PKG_LICENSE_FILES:=build/COPYING
24 PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/$(PKG_NAME)
29 SUBMENU:=Telephony
30 SECTION:=libs
31 CATEGORY:=Libraries
32 TITLE:=Communications toolbox - ctb
33 URL:=https://iftools.com/opensource/ctb.en.php
34 DEPENDS:=+libstdcpp
35 endef
36
37 define Package/$(PKG_NAME)/description
38 Multiplatform library for different interfaces.
39 endef
40
41 MAKE_FLAGS += \
42 DEBUG=0 \
43 GPIB=0 \
44 prefix=/usr
45
46 define Build/InstallDev
47 $(INSTALL_DIR) $(1)/usr/include/ctb-$(PKG_VERSION)/linux
48 $(INSTALL_DATA) \
49 $(PKG_INSTALL_DIR)/usr/include/ctb-$(PKG_VERSION)/*.h \
50 $(PKG_BUILD_DIR)/include/ctb-$(PKG_VERSION)/kbhit.h \
51 $(1)/usr/include/ctb-$(PKG_VERSION)
52 $(INSTALL_DATA) \
53 $(PKG_INSTALL_DIR)/usr/include/ctb-$(PKG_VERSION)/linux/*.h \
54 $(1)/usr/include/ctb-$(PKG_VERSION)/linux
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(INSTALL_BIN) \
57 $(PKG_INSTALL_DIR)/usr/lib/$(PKG_NAME)-$(PKG_VERSION).so \
58 $(1)/usr/lib
59 endef
60
61 define Package/$(PKG_NAME)/install
62 $(INSTALL_DIR) $(1)/usr/lib
63 $(INSTALL_BIN) \
64 $(PKG_INSTALL_DIR)/usr/lib/$(PKG_NAME)-$(PKG_VERSION).so \
65 $(1)/usr/lib
66 endef
67
68 $(eval $(call BuildPackage,$(PKG_NAME)))