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.

94 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_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_BUILD_DEPENDS:=jamvm/host
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/classpath
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=GNU Classpath
  25. URL:=https://www.gnu.org/software/classpath/
  26. DEPENDS:=+alsa-lib +libgmp +libmagic
  27. endef
  28. define Package/classpath/Description
  29. GNU Classpath, Essential Libraries for Java, is a GNU project
  30. to create free core class libraries for use with virtual
  31. machines and compilers for the java programming language.
  32. endef
  33. define Package/classpath-tools
  34. SECTION:=libs
  35. CATEGORY:=Libraries
  36. TITLE:=GNU Classpath tools
  37. URL:=https://www.gnu.org/software/classpath/
  38. endef
  39. define Download/antlr
  40. URL:=https://www.antlr.org/download
  41. FILE:=antlr-3.4-complete.jar
  42. HASH:=9d3e866b610460664522520f73b81777b5626fb0a282a5952b9800b751550bf7
  43. endef
  44. $(eval $(call Download,antlr))
  45. EXTRA_CFLAGS += -Wno-error=implicit-fallthrough
  46. CONFIGURE_ARGS += \
  47. --with-gmp="$(STAGING_DIR)/usr" \
  48. --without-x \
  49. --disable-gtk-peer \
  50. --disable-qt-peer \
  51. --disable-dssi \
  52. --disable-plugin \
  53. --disable-gconf-peer \
  54. --disable-gjdoc \
  55. --disable-examples \
  56. --with-antlr-jar=$(DL_DIR)/antlr-3.4-complete.jar
  57. define Package/classpath/install
  58. $(INSTALL_DIR) \
  59. $(1)/usr/lib/classpath \
  60. $(1)/usr/share/classpath
  61. $(CP) \
  62. $(PKG_INSTALL_DIR)/usr/lib/security \
  63. $(PKG_INSTALL_DIR)/usr/lib/logging.properties \
  64. $(1)/usr/lib/
  65. $(CP) $(PKG_INSTALL_DIR)/usr/lib/classpath/*.so* $(1)/usr/lib/classpath/
  66. $(CP) $(PKG_INSTALL_DIR)/usr/share/classpath/glibj.zip $(1)/usr/share/classpath/
  67. endef
  68. define Package/classpath-tools/install
  69. $(INSTALL_DIR) \
  70. $(1)/usr/bin \
  71. $(1)/usr/share/classpath
  72. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  73. $(CP) $(PKG_INSTALL_DIR)/usr/share/classpath/tools.zip $(1)/usr/share/classpath/
  74. endef
  75. define Build/InstallDev
  76. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  77. endef
  78. $(eval $(call BuildPackage,classpath))
  79. $(eval $(call BuildPackage,classpath-tools))