packages/classpath: fix whitespaces
[openwrt/svn-archive/archive.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:=autoreconf
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 DEPENDS:=+alsa-lib +libgmp +libmagic
30 endef
31
32 define Package/classpath/Description
33 GNU Classpath, Essential Libraries for Java, is a GNU project
34 to create free core class libraries for use with virtual
35 machines and compilers for the java programming language.
36 endef
37
38 define Package/classpath-tools
39 SECTION:=libs
40 CATEGORY:=Libraries
41 TITLE:=GNU Classpath tools
42 URL:=http://www.gnu.org/software/classpath/
43 MAINTAINER:=Roberto Riggio <roberto.riggio@create-net.org>
44 endef
45
46 define Download/antlr
47 URL:=http://www.antlr.org/download
48 FILE:=antlr-3.4-complete.jar
49 MD5SUM:=1b91dea1c7d480b3223f7c8a9aa0e172
50 endef
51 $(eval $(call Download,antlr))
52
53 CONFIGURE_ARGS += \
54 --without-x \
55 --disable-gtk-peer \
56 --disable-qt-peer \
57 --disable-dssi \
58 --disable-plugin \
59 --disable-gconf-peer \
60 --disable-gjdoc \
61 --with-antlr-jar=$(DL_DIR)/antlr-3.4-complete.jar
62
63 define Package/classpath/install
64 $(INSTALL_DIR) \
65 $(1)/usr/lib/classpath \
66 $(1)/usr/share/classpath
67 $(CP) \
68 $(PKG_INSTALL_DIR)/usr/lib/security \
69 $(PKG_INSTALL_DIR)/usr/lib/logging.properties \
70 $(1)/usr/lib/
71 $(CP) $(PKG_INSTALL_DIR)/usr/lib/classpath/*.so* $(1)/usr/lib/classpath/
72 $(CP) $(PKG_INSTALL_DIR)/usr/share/classpath/glibj.zip $(1)/usr/share/classpath/
73 endef
74
75 define Package/classpath-tools/install
76 $(INSTALL_DIR) \
77 $(1)/usr/bin \
78 $(1)/usr/share/classpath
79 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
80 $(CP) $(PKG_INSTALL_DIR)/usr/share/classpath/tools.zip $(1)/usr/share/classpath/
81 endef
82
83 define Build/InstallDev
84 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
85 endef
86
87 $(eval $(call BuildPackage,classpath))
88 $(eval $(call BuildPackage,classpath-tools))