blob: 84e05530b4ea48685177b922e0ae301dc033a127 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
#
# Copyright (C) 2014-2016 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:=hamlib
PKG_VERSION:=3.3
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/hamlib
PKG_HASH:=c90b53949c767f049733b442cd6e0a48648b55d99d4df5ef3f852d985f45e880
PKG_MAINTAINER:=Vasilis Tsiligiannis <acinonyx@openwrt.gr>
PKG_LICENSE:=GPLv2
PKG_LICENSE_FILES:=COPYING
PKG_FIXUP:=autoreconf
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/hamlib/Default
TITLE:=Ham Radio Control
URL:=http://hamlib.sourceforge.net
endef
define Package/hamlib/Default/description
Ham Radio Control Libraries is a development effort to provide a consistent
interface for programmers wanting to incorporate radio control in their
programs.
endef
define Package/hamlib
$(call Package/hamlib/Default)
TITLE+= utilities
SECTION:=utils
CATEGORY:=Utilities
DEPENDS:=+libhamlib
endef
define Package/hamlib/description
$(call Package/hamlib/Default/description)
This package contains the utilities and daemons.
endef
define Package/libhamlib/Default
$(call Package/hamlib/Default)
SECTION:=libs
CATEGORY:=Libraries
TITLE+= shared library
endef
define Package/libhamlib
$(call Package/libhamlib/Default)
DEPENDS:=+libusb-1.0
MENU:=1
endef
define Package/libhamlib/description
$(call Package/hamlib/Default/description)
This package contains the hamlib shared library.
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/hamlib
$(CP) $(PKG_INSTALL_DIR)/usr/include/hamlib/*.h $(1)/usr/include/hamlib
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libhamlib.so* $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/hamlib.pc $(1)/usr/lib/pkgconfig/
endef
CONFIGURE_ARGS+= \
--disable-html-matrix \
--disable-winradio \
--without-readline \
--without-cxx-binding \
--with-pic \
CONFIGURE_VARS+= \
LIBUSB_LIBS="-lusb-1.0" \
define Package/hamlib/install
$(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/{rig,rot}* $(1)/usr/bin/
endef
define Package/libhamlib/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libhamlib.so* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,hamlib))
$(eval $(call BuildPackage,libhamlib))
|