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
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://sablevm.org
/download
/release
/$(PKG_VERSION
)/
17 PKG_MD5SUM
:=9476bb7a0ad67c6cfa353d06f094cdce
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
/sablevm-classpath
/Default
28 URL
:=http
://www.gnu.org
/software
/classpath
/
31 define Package
/libsablevm-classpath
32 $(call Package
/sablevm-classpath
/Default
)
33 TITLE
:=Essential native libraries for Java
35 GNU Classpath
, Essential Libraries for Java
, is a GNU project to create
\\\
36 free core class libraries for use with virtual machines and compilers for
\\\
37 the java programming language.
\\\
38 This is a modified version for use with SableVM.
41 define Package
/sablevm-classpath-full
42 $(call Package
/sablevm-classpath
/Default
)
43 DEPENDS
:=+libsablevm-classpath
47 define Package
/sablevm-classpath-mini
48 $(call Package
/sablevm-classpath
/Default
)
49 DEPENDS
:=+libsablevm-classpath
53 define Build
/Configure
54 $(call Build
/Configure
/Default
, \
64 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
65 DESTDIR
="$(PKG_INSTALL_DIR)" \
67 $(CP
) .
/files
/mini.classlist
$(PKG_BUILD_DIR
)/lib
/
68 cd
$(PKG_BUILD_DIR
)/lib
; fastjar
-Mcf mini.jar
-@
< mini.classlist
71 define Package
/libsablevm-classpath
/install
72 $(INSTALL_DIR
) $(1)/usr
/lib
/sablevm-classpath
73 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/sablevm-classpath
/libjava
*.so
$(1)/usr
/lib
/sablevm-classpath
/
74 $(INSTALL_DIR
) $(1)/usr
/lib
/security
75 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/security
/classpath.security
$(1)/usr
/lib
/security
/
78 define Package
/sablevm-classpath-full
/install
79 $(INSTALL_DIR
) $(1)/usr
/share
/sablevm-classpath
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/sablevm-classpath
/{libclasspath
,resources
}.jar \
81 $(1)/usr
/share
/sablevm-classpath
/
84 define Package
/sablevm-classpath-mini
/install
85 $(INSTALL_DIR
) $(1)/usr
/share
/sablevm-classpath
86 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/lib
/mini.jar \
87 $(1)/usr
/share
/sablevm-classpath
/libclasspath.jar
90 $(eval
$(call BuildPackage
,libsablevm-classpath
))
91 $(eval
$(call BuildPackage
,sablevm-classpath-full
))
92 $(eval
$(call BuildPackage
,sablevm-classpath-mini
))
94 $(foreach command
, jikes fastjar
, \
95 $(eval
$(call RequireCommand
,$(command
), \
96 $(PKG_NAME
) requires
$(command
). \