[packages] normalize PKG_FIXUP - the "libtool" fixup is merely an alias for "autoreco...
[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:=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 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 Package/classpath-tools
38   SECTION:=libs
39   CATEGORY:=Libraries
40   TITLE:=GNU Classpath tools
41   URL:=http://www.gnu.org/software/classpath/
42   MAINTAINER:=Roberto Riggio <roberto.riggio@create-net.org>
43 endef
44
45 define Download/antlr
46   URL:=http://www.antlr.org/download
47   FILE:=antlr-3.4-complete.jar
48   MD5SUM:=1b91dea1c7d480b3223f7c8a9aa0e172
49 endef
50 $(eval $(call Download,antlr))
51
52 CONFIGURE_ARGS += \
53         --without-x \
54         --disable-gtk-peer \
55         --disable-qt-peer \
56         --disable-dssi \
57         --disable-plugin \
58         --disable-gconf-peer \
59         --disable-gjdoc \
60         --with-antlr-jar=$(DL_DIR)/antlr-3.4-complete.jar
61
62 define Package/classpath/install
63         $(INSTALL_DIR) \
64                 $(1)/usr/lib/classpath \
65                 $(1)/usr/share/classpath
66         $(CP) \
67                 $(PKG_INSTALL_DIR)/usr/lib/security \
68                 $(PKG_INSTALL_DIR)/usr/lib/logging.properties \
69                 $(1)/usr/lib/
70         $(CP) $(PKG_INSTALL_DIR)/usr/lib/classpath/*.so* $(1)/usr/lib/classpath/
71         $(CP) $(PKG_INSTALL_DIR)/usr/share/classpath/glibj.zip $(1)/usr/share/classpath/
72 endef
73
74 define Package/classpath-tools/install
75         $(INSTALL_DIR) \
76                 $(1)/usr/bin \
77                 $(1)/usr/share/classpath
78         $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
79         $(CP) $(PKG_INSTALL_DIR)/usr/share/classpath/tools.zip $(1)/usr/share/classpath/
80 endef
81
82 define Build/InstallDev
83         $(CP) $(PKG_INSTALL_DIR)/* $(1)/
84 endef
85
86 $(eval $(call BuildPackage,classpath))
87 $(eval $(call BuildPackage,classpath-tools))