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.

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