[PATCH] Jamvm + classpatch (2/2)
[openwrt/svn-archive/archive.git] / libs / classpath / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=classpath
11 PKG_VERSION:=0.97.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=ftp://ftp.gnu.org/gnu/classpath/
16 PKG_MD5SUM:=6a35347901ace03c31cc49751b338f31
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/classpath
21 SECTION:=libs
22 CATEGORY:=Libraries
23 TITLE:=GNU Classpath
24 URL:=http://www.gnu.org/software/classpath/
25 MAINTAINER:=Roberto Riggio (roberto.riggio@create-net.org)
26 endef
27
28 define Package/classpath/Description
29 GNU Classpath, Essential Libraries for Java, is a GNU project
30 to create free core class libraries for use with virtual
31 machines and compilers for the java programming language.
32 endef
33
34 CONFIGURE_ARGS+= \
35 --with-javac \
36 --enable-jni \
37 --disable-gtk-peer \
38 --disable-gconf-peer \
39 --disable-plugin \
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" \
43 CPPFLAGS="$(TARGET_CPPFLAGS)" \
44 all install
45 endef
46
47 define Package/classpath/install
48 $(INSTALL_DIR) $(1)/usr/local/classpath/share/classpath/
49 $(INSTALL_DIR) $(1)/usr/local/classpath/lib/classpath/
50 $(CP) $(PKG_INSTALL_DIR)/usr/share/classpath/glibj.zip $(1)/usr/local/classpath/share/classpath/
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/classpath/* $(1)/usr/local/classpath/lib/classpath/
52 endef
53
54 $(eval $(call BuildPackage,classpath))