[OpenWrt-Devel] [PATCH] Updates Jamvm and classpath to the latest versions (correct header and MD5)
http://lists.openwrt.org/pipermail/openwrt-devel/2008-March/001769.html Other recent OpenWRT users are using jamvm with classpath, see, e.g.: http://forum.openwrt.org/viewtopic.php?id=16445 I tested this patch and everything works wonderfully! Please commit. I attach my diff just in case (I had to change some TABs, not sure if this is because I copied->pasted from my browser). Misha --- Index: lang/classpath/Makefile =================================================================== --- lang/classpath/Makefile (revision 0) +++ lang/classpath/Makefile (revision 0) @@ -0,0 +1,57 @@ +# +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# $Id$ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=classpath +PKG_VERSION:=0.97.1 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=ftp://ftp.gnu.org/gnu/classpath/ +PKG_MD5SUM:=35e81f0e0055a8b8a7a879077cf2b3c6 + +include $(INCLUDE_DIR)/package.mk + +define Package/classpath + SUBMENU:=Java + SECTION:=lang + CATEGORY:=Languages + TITLE:=GNU Classpath + URL:=http://www.gnu.org/software/classpath/ +# MAINTAINER:=Roberto Riggio (roberto.riggio at create-net.org) +endef + +define Package/classpath/Description + GNU Classpath, Essential Libraries for Java, is a GNU project + to create free core class libraries for use with virtual + machines and compilers for the java programming language. +endef + +CONFIGURE_ARGS+= \ + --with-javac \ + --enable-jni \ + --disable-gtk-peer \ + --disable-gconf-peer \ + --disable-plugin \ + +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" \ + CPPFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \ + all install +endef + +define Package/classpath/install + $(INSTALL_DIR) $(1)/usr/lib/classpath + $(INSTALL_DIR) $(1)/usr/share/classpath + $(CP) $(PKG_INSTALL_DIR)/usr/lib/classpath/* $(1)/usr/lib/classpath + $(CP) $(PKG_INSTALL_DIR)/usr/share/classpath/glibj.zip $(1)/usr/share/classpath +endef + +$(eval $(call BuildPackage,classpath)) + Index: lang/jamvm/patches/001-heap_size.patch =================================================================== --- lang/jamvm/patches/001-heap_size.patch (revision 0) +++ lang/jamvm/patches/001-heap_size.patch (revision 0) @@ -0,0 +1,12 @@ +--- jamvm-1.5.1-old/src/jam.h 2008-02-22 02:57:22.000000000 +0100 ++++ jamvm-1.5.1-new/src/jam.h 2008-03-12 12:21:31.000000000 +0100 +@@ -676,7 +676,7 @@ + + /* default maximum size of object heap */ + #ifndef DEFAULT_MAX_HEAP +-#define DEFAULT_MAX_HEAP 128*MB ++#define DEFAULT_MAX_HEAP 64*MB + #endif + + /* default size of the Java stack */ + Index: lang/jamvm/Makefile =================================================================== --- lang/jamvm/Makefile (revision 12652) +++ lang/jamvm/Makefile (working copy) @@ -9,12 +9,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=jamvm -PKG_VERSION:=1.5.0 +PKG_VERSION:=1.5.1 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:[EMAIL PROTECTED]/jamvm -PKG_MD5SUM:=a965452442cdbfc94caba57d0dd25a8f +PKG_MD5SUM:=5a82751b50391eb092c906ce64f3b6bf include $(INCLUDE_DIR)/package.mk @@ -24,7 +24,8 @@ CATEGORY:=Languages TITLE:=A compact Java Virtual Machine URL:=http://sourceforge.net/projects/jamvm - DEPENDS:=+libffi-sable @!mips @!mipsel + MAINTAINER:=Roberto Riggio (roberto.riggio at create-net.org) + DEPENDS:=+libffi-sable +libpthread +zlib +classpath @!mips endef define Package/jamvm/description @@ -38,6 +39,7 @@ CONFIGURE_ARGS+= \ --enable-ffi \ + --with-classpath-install-dir=/usr \ --disable-int-threading \ define Build/Compile
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel