2 # Copyright (C) 2014-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_SOURCE_URL
:=@SF
/hamlib
15 PKG_HASH
:=b1aea97d6093990b77d5dc4bde6b9ca06183ddb7e24da7e2367a2acc957b7ac2
17 PKG_MAINTAINER
:=Vasilis Tsiligiannis
<acinonyx@openwrt.gr
>
19 PKG_LICENSE_FILES
:=COPYING
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/hamlib
/Default
28 TITLE
:=Ham Radio Control
29 URL
:=http
://hamlib.sourceforge.net
32 define Package
/hamlib
/Default
/description
33 Ham Radio Control Libraries is a development effort to provide a consistent
34 interface for programmers wanting to incorporate radio control in their
39 $(call Package
/hamlib
/Default
)
46 define Package
/hamlib
/conffiles
50 define Package
/hamlib
/description
51 $(call Package
/hamlib
/Default
/description
)
53 This package contains the utilities and daemons.
56 define Package
/libhamlib
/Default
57 $(call Package
/hamlib
/Default
)
60 TITLE
+= shared library
63 define Package
/libhamlib
64 $(call Package
/libhamlib
/Default
)
69 define Package
/libhamlib
/description
70 $(call Package
/hamlib
/Default
/description
)
72 This package contains the hamlib shared library.
75 define Build
/InstallDev
76 $(INSTALL_DIR
) $(1)/usr
/include/hamlib
77 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/hamlib
/*.h
$(1)/usr
/include/hamlib
78 $(INSTALL_DIR
) $(1)/usr
/lib
79 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libhamlib.so
* $(1)/usr
/lib
/
80 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
81 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/hamlib.
pc $(1)/usr
/lib
/pkgconfig
/
85 --disable-html-matrix \
88 --without-cxx-binding \
92 LIBUSB_LIBS
="-lusb-1.0" \
94 define Package
/hamlib
/install
95 $(INSTALL_DIR
) $(1)/usr
/bin
96 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/{rig
,rot
}* $(1)/usr
/bin
/
98 $(INSTALL_DIR
) $(1)/etc
/init.d
99 $(INSTALL_BIN
) .
/files
/rigctld.init
$(1)/etc
/init.d
/rigctld
101 $(INSTALL_DIR
) $(1)/etc
/config
102 $(INSTALL_CONF
) .
/files
/rigctld.conf
$(1)/etc
/config
/rigctld
105 define Package
/libhamlib
/install
106 $(INSTALL_DIR
) $(1)/usr
/lib
107 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libhamlib.so
* $(1)/usr
/lib
/
110 $(eval
$(call BuildPackage
,hamlib
))
111 $(eval
$(call BuildPackage
,libhamlib
))