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
14 PKG_MD5SUM
:=d5828200032bfe921dd43e450931e38c
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
/sablevm
28 DEPENDS
:=+libffi-sable
+libltdl
+libpopt
+libpthread
+zlib
29 TITLE
:=A Java Virtual Machine
(JVM
) implementation
30 DESCRIPTION
:=SableVM is a robust
, extremely portable
, efficient
, and specifications-
\\\
31 -compliant Java virtual machine that aims to be easy to maintain and to
\\\
32 extend. It features a state-of-the-art and efficient interpreter engine.
\\\
33 Its source code is very accessible and easy to understand. It also has
\\\
34 many robustness features that have been the object of careful design.
\\\
35 URL
:=http
://sablevm.org
/
39 define Build
/Configure
40 $(call Build
/Configure
/Default
,--enable-shared \
41 --disable-static
, LDFLAGS
="-L$(STAGING_DIR)/usr/lib -lffi -lltdl -lpopt -lz")
45 rm -rf
$(PKG_INSTALL_DIR
)
46 mkdir
-p
$(PKG_INSTALL_DIR
)
47 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
48 DESTDIR
="$(PKG_INSTALL_DIR)" \
52 define Package
/sablevm
/install
53 install -m0755
-d
$(1)/usr
/bin
54 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/{java-
,}sablevm
$(1)/usr
/bin
/
55 install -m0755
-d
$(1)/usr
/lib
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libsablevm-
*.so
$(1)/usr
/lib
/
59 $(eval
$(call BuildPackage
,sablevm
))