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.

49 lines
1.1 KiB

  1. #
  2. # Copyright (C) 2016 Dana H. Myers <k6jq@comcast.net>
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=rxtx
  9. PKG_VERSION:=2.2pre2
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=LGPL-2.1
  12. PKG_MAINTAINER:=Dana H. Myers <k6jq@comcast.net>
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
  14. PKG_SOURCE_URL:=http://rxtx.qbang.org/pub/rxtx/
  15. PKG_MD5SUM:=7eedb18e3f33a427e2b0e9be8ce3f94c
  16. PKG_FIXUP:=patch-libtool
  17. PKG_CHECK_FORMAT_SECURITY:=0
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/rxtx
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=RX/TX Support for Java serial communications
  23. URL:=http://rxtx.qbang.org/wiki/index.php/Main_Page
  24. DEPENDS:=+libpthread
  25. endef
  26. define Package/rxtx/description
  27. RX/TX Support for Java serial communications
  28. endef
  29. CONFIGURE_ARGS += \
  30. --disable-PRINTER
  31. define Package/rxtx/install
  32. $(INSTALL_DIR) \
  33. $(1)/usr/lib/classpath
  34. $(CP) $(PKG_BUILD_DIR)/$(GNU_TARGET_NAME)-gnu/.libs/*.so \
  35. $(1)/usr/lib/classpath/
  36. $(CP) $(PKG_BUILD_DIR)/RXTXcomm.jar \
  37. $(1)/usr/lib/classpath/
  38. endef
  39. $(eval $(call BuildPackage,rxtx))