You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

101 lines
2.4 KiB

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