add prereq-check on openssl devel lib to squid, standardize, indent
[openwrt/svn-archive/archive.git] / lang / sablevm / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=sablevm
12 PKG_VERSION:=1.13
13 PKG_RELEASE:=1
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://sablevm.org/download/release/$(PKG_VERSION)/
18 PKG_MD5SUM:=d5828200032bfe921dd43e450931e38c
19 PKG_CAT:=zcat
20
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/sablevm
26 SECTION:=lang
27 CATEGORY:=Languages
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/
36 endef
37
38
39 define Build/Configure
40 $(call Build/Configure/Default, \
41 --enable-shared \
42 --disable-static, \
43 LIBS="-lffi -lltdl -lpopt -lz" \
44 )
45 endef
46
47 define Build/Compile
48 rm -rf $(PKG_INSTALL_DIR)
49 mkdir -p $(PKG_INSTALL_DIR)
50 $(MAKE) -C $(PKG_BUILD_DIR) \
51 DESTDIR="$(PKG_INSTALL_DIR)" \
52 all install
53 endef
54
55 define Package/sablevm/install
56 install -m0755 -d $(1)/usr/bin
57 $(CP) $(PKG_INSTALL_DIR)/usr/bin/{java-,}sablevm $(1)/usr/bin/
58 install -m0755 -d $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsablevm-*.so $(1)/usr/lib/
60 endef
61
62 $(eval $(call BuildPackage,sablevm))