Makefile 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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_MD5SUM:=0ae1571249172acd82488724a3b8acb4
  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. MD5SUM:=1b91dea1c7d480b3223f7c8a9aa0e172
  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))