Merge pull request #738 from danak6jq/new-classpath2
[feed/packages.git] / libs / classpath / Makefile
1 #
2 # Copyright (C) 2006-2015 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.99
12 PKG_RELEASE:=1
13 PKG_LICENSE:=GPL-2.0
14 PKG_MAINTAINER:=Dana H. Myers <k6jq@comcast.net>
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=@GNU/classpath
18 PKG_MD5SUM:=0ae1571249172acd82488724a3b8acb4
19
20 PKG_FIXUP:=autoreconf
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/classpath
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=GNU Classpath
29 URL:=http://www.gnu.org/software/classpath/
30 DEPENDS:=+alsa-lib +libgmp +libmagic
31 endef
32
33 define Package/classpath/Description
34 GNU Classpath, Essential Libraries for Java, is a GNU project
35 to create free core class libraries for use with virtual
36 machines and compilers for the java programming language.
37 endef
38
39 define Package/classpath-tools
40 SECTION:=libs
41 CATEGORY:=Libraries
42 TITLE:=GNU Classpath tools
43 URL:=http://www.gnu.org/software/classpath/
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 --disable-examples \
62 --with-antlr-jar=$(DL_DIR)/antlr-3.4-complete.jar
63
64 define Package/classpath/install
65 $(INSTALL_DIR) \
66 $(1)/usr/lib/classpath \
67 $(1)/usr/share/classpath
68 $(CP) \
69 $(PKG_INSTALL_DIR)/usr/lib/security \
70 $(PKG_INSTALL_DIR)/usr/lib/logging.properties \
71 $(1)/usr/lib/
72 $(CP) $(PKG_INSTALL_DIR)/usr/lib/classpath/*.so* $(1)/usr/lib/classpath/
73 $(CP) $(PKG_INSTALL_DIR)/usr/share/classpath/glibj.zip $(1)/usr/share/classpath/
74 endef
75
76 define Package/classpath-tools/install
77 $(INSTALL_DIR) \
78 $(1)/usr/bin \
79 $(1)/usr/share/classpath
80 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
81 $(CP) $(PKG_INSTALL_DIR)/usr/share/classpath/tools.zip $(1)/usr/share/classpath/
82 endef
83
84 define Build/InstallDev
85 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
86 endef
87
88 $(eval $(call BuildPackage,classpath))
89 $(eval $(call BuildPackage,classpath-tools))