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.

90 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:=1
  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. CONFIGURE_ARGS += \
  44. --with-gmp="$(STAGING_DIR)/usr" \
  45. --without-x \
  46. --disable-gtk-peer \
  47. --disable-qt-peer \
  48. --disable-dssi \
  49. --disable-plugin \
  50. --disable-gconf-peer \
  51. --disable-gjdoc \
  52. --disable-examples \
  53. --with-antlr-jar=$(DL_DIR)/antlr-3.4-complete.jar
  54. define Package/classpath/install
  55. $(INSTALL_DIR) \
  56. $(1)/usr/lib/classpath \
  57. $(1)/usr/share/classpath
  58. $(CP) \
  59. $(PKG_INSTALL_DIR)/usr/lib/security \
  60. $(PKG_INSTALL_DIR)/usr/lib/logging.properties \
  61. $(1)/usr/lib/
  62. $(CP) $(PKG_INSTALL_DIR)/usr/lib/classpath/*.so* $(1)/usr/lib/classpath/
  63. $(CP) $(PKG_INSTALL_DIR)/usr/share/classpath/glibj.zip $(1)/usr/share/classpath/
  64. endef
  65. define Package/classpath-tools/install
  66. $(INSTALL_DIR) \
  67. $(1)/usr/bin \
  68. $(1)/usr/share/classpath
  69. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  70. $(CP) $(PKG_INSTALL_DIR)/usr/share/classpath/tools.zip $(1)/usr/share/classpath/
  71. endef
  72. define Build/InstallDev
  73. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  74. endef
  75. $(eval $(call BuildPackage,classpath))
  76. $(eval $(call BuildPackage,classpath-tools))