5815bf435b6d9a7bcf0750792e399e436527add2
[packages.git] / libs / classpath / Makefile
1 #
2 # Copyright (C) 2006-2010 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.98
12 PKG_RELEASE:=4
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/classpath
16 PKG_MD5SUM:=90c6571b8b0309e372faa0f9f6255ea9
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/classpath
24   SECTION:=libs
25   CATEGORY:=Libraries
26   TITLE:=GNU Classpath
27   URL:=http://www.gnu.org/software/classpath/
28   MAINTAINER:=Roberto Riggio <roberto.riggio@create-net.org>
29 endef
30
31 define Package/classpath/Description
32         GNU Classpath, Essential Libraries for Java, is a GNU project 
33         to create free core class libraries for use with virtual 
34         machines and compilers for the java programming language.
35 endef
36
37 define Download/antlr
38   URL:=http://www.antlr.org/download
39   FILE:=antlr-3.4-complete.jar
40   MD5SUM:=1b91dea1c7d480b3223f7c8a9aa0e172
41 endef
42 $(eval $(call Download,antlr))
43
44 CONFIGURE_ARGS += \
45         --without-x \
46         --disable-gtk-peer \
47         --disable-qt-peer \
48         --disable-dssi \
49         --disable-plugin \
50         --disable-gconf-peer \
51         --disable-gjdoc \
52         --with-antlr-jar=$(DL_DIR)/antlr-3.4-complete.jar
53
54 define Package/classpath/install
55         $(INSTALL_DIR) \
56                 $(1)/usr/lib/classpath \
57                 $(1)/usr/share/classpath
58         $(CP) \
59                 $(PKG_INSTALL_DIR)/usr/lib/security \
60                 $(PKG_INSTALL_DIR)/usr/lib/logging.properties \
61                 $(1)/usr/lib/
62         $(CP) $(PKG_INSTALL_DIR)/usr/lib/classpath/*.so* $(1)/usr/lib/classpath/
63         $(CP) $(PKG_INSTALL_DIR)/usr/share/classpath/*.zip $(1)/usr/share/classpath/
64 endef
65
66 define Build/InstallDev
67         $(CP) $(PKG_INSTALL_DIR)/* $(1)/
68 endef
69
70 $(eval $(call BuildPackage,classpath))