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
12 PKG_HASH
:=3fec97ea326d02aa8f35834c4af34194a3f544e6212f391397d788c566b44e32
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/hamlib
20 PKG_LICENSE_FILES
:=COPYING
22 PKG_MAINTAINER
:=Vasilis Tsiligiannis
<acinonyx@openwrt.gr
>
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/hamlib
/Default
27 TITLE
:=Ham Radio Control
28 URL
:=http
://hamlib.sourceforge.net
31 define Package
/hamlib
/Default
/description
32 Ham Radio Control Libraries is a development effort to provide a consistent
33 interface for programmers wanting to incorporate radio control in their
38 $(call Package
/hamlib
/Default
)
45 define Package
/hamlib
/description
46 $(call Package
/hamlib
/Default
/description
)
48 This package contains the utilities and daemons.
51 define Package
/libhamlib
/Default
52 $(call Package
/hamlib
/Default
)
55 TITLE
+= shared library
58 define Package
/libhamlib
59 $(call Package
/libhamlib
/Default
)
64 define Package
/libhamlib
/description
65 $(call Package
/hamlib
/Default
/description
)
67 This package contains the hamlib shared library.
70 define Build
/InstallDev
71 $(INSTALL_DIR
) $(1)/usr
/include/hamlib
72 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/hamlib
/*.h
$(1)/usr
/include/hamlib
73 $(INSTALL_DIR
) $(1)/usr
/lib
74 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libhamlib.so
* $(1)/usr
/lib
/
75 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
76 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/hamlib.
pc $(1)/usr
/lib
/pkgconfig
/
80 --disable-html-matrix \
83 --without-cxx-binding \
87 LIBUSB_LIBS
="-lusb-1.0" \
89 define Package
/hamlib
/install
90 $(INSTALL_DIR
) $(1)/usr
/bin
91 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/{rig
,rot
}* $(1)/usr
/bin
/
94 define Package
/libhamlib
/install
95 $(INSTALL_DIR
) $(1)/usr
/lib
96 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libhamlib.so
* $(1)/usr
/lib
/
99 $(eval
$(call BuildPackage
,hamlib
))
100 $(eval
$(call BuildPackage
,libhamlib
))