2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
11 PKG_NAME
:=sablevm-classpath
14 PKG_MD5SUM
:=9476bb7a0ad67c6cfa353d06f094cdce
16 PKG_SOURCE_URL
:=http
://sablevm.org
/download
/release
/$(PKG_VERSION
)/
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/libsablevm-classpath
28 TITLE
:=Essential native libraries for Java
29 DESCRIPTION
:=GNU Classpath
, Essential Libraries for Java
, is a GNU project to create
\\\
30 free core class libraries for use with virtual machines and compilers for
\\\
31 the java programming language.
\\\
32 This is a modified version for use with SableVM.
\\\
33 URL
:=http
://www.gnu.org
/software
/classpath
/
36 define Package
/sablevm-classpath-full
39 DEPENDS
:=libsablevm-classpath
43 define Package
/sablevm-classpath-mini
46 DEPENDS
:=libsablevm-classpath
50 define Build
/Configure
51 $(call Build
/Configure
/Default
,--enable-shared \
60 rm -rf
$(PKG_INSTAL_DIR
)
61 mkdir
-p
$(PKG_INSTALL_DIR
)
62 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
63 DESTDIR
="$(PKG_INSTALL_DIR)" \
65 $(CP
) .
/files
/mini.classlist
$(PKG_BUILD_DIR
)/lib
/
66 cd
$(PKG_BUILD_DIR
)/lib
; fastjar
-Mcf mini.jar
-@
< mini.classlist
69 define Package
/libsablevm-classpath
/install
70 install -d
-m0755
$(1)/usr
/lib
/sablevm-classpath
71 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/sablevm-classpath
/libjava
*.so
$(1)/usr
/lib
/sablevm-classpath
/
72 install -d
-m0755
$(1)/usr
/lib
/security
73 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/security
/classpath.security
$(1)/usr
/lib
/security
/
76 define Package
/sablevm-classpath-full
/install
77 install -d
-m0755
$(1)/usr
/share
/sablevm-classpath
78 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/sablevm-classpath
/{libclasspath
,resources
}.jar \
79 $(1)/usr
/share
/sablevm-classpath
/
82 define Package
/sablevm-classpath-mini
/install
83 install -d
-m0755
$(1)/usr
/share
/sablevm-classpath
84 install -m0755
$(PKG_BUILD_DIR
)/lib
/mini.jar \
85 $(1)/usr
/share
/sablevm-classpath
/libclasspath.jar
88 $(eval
$(call BuildPackage
,libsablevm-classpath
))
89 $(eval
$(call BuildPackage
,sablevm-classpath-full
))
90 $(eval
$(call BuildPackage
,sablevm-classpath-mini
))
92 $(eval
$(call RequireCommand
,jikes jikes-sablevm sablevm fastjar
, \
93 libsablevm-classpath require jikes jikes-sablevm sablevm fastjar to compile. \