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.

95 lines
2.4 KiB

  1. #
  2. # Copyright (C) 2006-2015 OpenWrt.org
  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:=classpath
  9. PKG_VERSION:=0.99
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@GNU/classpath
  13. PKG_HASH:=f929297f8ae9b613a1a167e231566861893260651d913ad9b6c11933895fecc8
  14. PKG_MAINTAINER:=Dana H. Myers <k6jq@comcast.net>
  15. PKG_LICENSE:=GPL-2.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_CPE_ID:=cpe:/a:gnu:classpath
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_BUILD_DEPENDS:=jamvm/host
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/classpath
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=GNU Classpath
  26. URL:=https://www.gnu.org/software/classpath/
  27. DEPENDS:=+alsa-lib +libgmp +libmagic
  28. endef
  29. define Package/classpath/Description
  30. GNU Classpath, Essential Libraries for Java, is a GNU project
  31. to create free core class libraries for use with virtual
  32. machines and compilers for the java programming language.
  33. endef
  34. define Package/classpath-tools
  35. SECTION:=libs
  36. CATEGORY:=Libraries
  37. TITLE:=GNU Classpath tools
  38. URL:=https://www.gnu.org/software/classpath/
  39. endef
  40. define Download/antlr
  41. URL:=https://www.antlr.org/download
  42. FILE:=antlr-3.4-complete.jar
  43. HASH:=9d3e866b610460664522520f73b81777b5626fb0a282a5952b9800b751550bf7
  44. endef
  45. $(eval $(call Download,antlr))
  46. EXTRA_CFLAGS += -Wno-error=implicit-fallthrough
  47. CONFIGURE_ARGS += \
  48. --with-gmp="$(STAGING_DIR)/usr" \
  49. --without-x \
  50. --disable-gtk-peer \
  51. --disable-qt-peer \
  52. --disable-dssi \
  53. --disable-plugin \
  54. --disable-gconf-peer \
  55. --disable-gjdoc \
  56. --disable-examples \
  57. --with-antlr-jar=$(DL_DIR)/antlr-3.4-complete.jar
  58. define Package/classpath/install
  59. $(INSTALL_DIR) \
  60. $(1)/usr/lib/classpath \
  61. $(1)/usr/share/classpath
  62. $(CP) \
  63. $(PKG_INSTALL_DIR)/usr/lib/security \
  64. $(PKG_INSTALL_DIR)/usr/lib/logging.properties \
  65. $(1)/usr/lib/
  66. $(CP) $(PKG_INSTALL_DIR)/usr/lib/classpath/*.so* $(1)/usr/lib/classpath/
  67. $(CP) $(PKG_INSTALL_DIR)/usr/share/classpath/glibj.zip $(1)/usr/share/classpath/
  68. endef
  69. define Package/classpath-tools/install
  70. $(INSTALL_DIR) \
  71. $(1)/usr/bin \
  72. $(1)/usr/share/classpath
  73. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  74. $(CP) $(PKG_INSTALL_DIR)/usr/share/classpath/tools.zip $(1)/usr/share/classpath/
  75. endef
  76. define Build/InstallDev
  77. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  78. endef
  79. $(eval $(call BuildPackage,classpath))
  80. $(eval $(call BuildPackage,classpath-tools))