2006-08-08 08:50:14 +00:00
|
|
|
#
|
|
|
|
# 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:=sablevm-classpath
|
|
|
|
PKG_VERSION:=1.13
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-31 08:44:54 +00:00
|
|
|
PKG_SOURCE_URL:=http://sablevm.org/download/release/$(PKG_VERSION)/
|
|
|
|
PKG_MD5SUM:=9476bb7a0ad67c6cfa353d06f094cdce
|
2006-08-08 08:50:14 +00:00
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2006-10-31 08:44:54 +00:00
|
|
|
define Package/sablevm-classpath/Default
|
2006-08-08 08:50:14 +00:00
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
2006-10-31 08:44:54 +00:00
|
|
|
URL:=http://www.gnu.org/software/classpath/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libsablevm-classpath
|
|
|
|
$(call Package/sablevm-classpath/Default)
|
2006-08-08 08:50:14 +00:00
|
|
|
TITLE:=Essential native libraries for Java
|
2006-10-31 08:44:54 +00:00
|
|
|
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 \\\
|
2006-08-08 08:50:14 +00:00
|
|
|
the java programming language.\\\
|
2006-10-31 08:44:54 +00:00
|
|
|
This is a modified version for use with SableVM.
|
2006-08-08 08:50:14 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/sablevm-classpath-full
|
2006-10-31 08:44:54 +00:00
|
|
|
$(call Package/sablevm-classpath/Default)
|
|
|
|
DEPENDS:=+libsablevm-classpath
|
|
|
|
TITLE+= (full)
|
2006-08-08 08:50:14 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/sablevm-classpath-mini
|
2006-10-31 08:44:54 +00:00
|
|
|
$(call Package/sablevm-classpath/Default)
|
|
|
|
DEPENDS:=+libsablevm-classpath
|
|
|
|
TITLE+= (minimal)
|
2006-08-08 08:50:14 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2006-10-31 08:44:54 +00:00
|
|
|
$(call Build/Configure/Default, \
|
2006-08-08 08:50:14 +00:00
|
|
|
--disable-gtk-peer \
|
|
|
|
--disable-gtk-cairo \
|
2006-10-31 08:44:54 +00:00
|
|
|
--with-jikes \
|
|
|
|
--without-x \
|
|
|
|
)
|
2006-08-08 08:50:14 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
$(CP) ./files/mini.classlist $(PKG_BUILD_DIR)/lib/
|
|
|
|
cd $(PKG_BUILD_DIR)/lib ; fastjar -Mcf mini.jar -@ < mini.classlist
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libsablevm-classpath/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/sablevm-classpath
|
2006-08-08 08:51:13 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/sablevm-classpath/libjava*.so $(1)/usr/lib/sablevm-classpath/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/security
|
2006-08-08 08:51:13 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/security/classpath.security $(1)/usr/lib/security/
|
2006-08-08 08:50:14 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/sablevm-classpath-full/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/sablevm-classpath
|
2006-08-08 08:50:14 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/sablevm-classpath/{libclasspath,resources}.jar \
|
2006-08-08 08:51:13 +00:00
|
|
|
$(1)/usr/share/sablevm-classpath/
|
2006-08-08 08:50:14 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/sablevm-classpath-mini/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/sablevm-classpath
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/mini.jar \
|
2006-08-08 08:51:13 +00:00
|
|
|
$(1)/usr/share/sablevm-classpath/libclasspath.jar
|
2006-08-08 08:50:14 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libsablevm-classpath))
|
|
|
|
$(eval $(call BuildPackage,sablevm-classpath-full))
|
|
|
|
$(eval $(call BuildPackage,sablevm-classpath-mini))
|
|
|
|
|
2006-10-03 14:29:49 +00:00
|
|
|
$(foreach command, jikes fastjar, \
|
|
|
|
$(eval $(call RequireCommand,$(command), \
|
|
|
|
$(PKG_NAME) requires $(command). \
|
2006-08-30 09:49:53 +00:00
|
|
|
)) \
|
|
|
|
)
|