Merge pull request #762 from jow-/smartmontools-autoreconf
[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 --with-gmp="$(STAGING_DIR)/usr" \
55 --without-x \
56 --disable-gtk-peer \
57 --disable-qt-peer \
58 --disable-dssi \
59 --disable-plugin \
60 --disable-gconf-peer \
61 --disable-gjdoc \
62 --disable-examples \
63 --with-antlr-jar=$(DL_DIR)/antlr-3.4-complete.jar
64
65 define Package/classpath/install
66 $(INSTALL_DIR) \
67 $(1)/usr/lib/classpath \
68 $(1)/usr/share/classpath
69 $(CP) \
70 $(PKG_INSTALL_DIR)/usr/lib/security \
71 $(PKG_INSTALL_DIR)/usr/lib/logging.properties \
72 $(1)/usr/lib/
73 $(CP) $(PKG_INSTALL_DIR)/usr/lib/classpath/*.so* $(1)/usr/lib/classpath/
74 $(CP) $(PKG_INSTALL_DIR)/usr/share/classpath/glibj.zip $(1)/usr/share/classpath/
75 endef
76
77 define Package/classpath-tools/install
78 $(INSTALL_DIR) \
79 $(1)/usr/bin \
80 $(1)/usr/share/classpath
81 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
82 $(CP) $(PKG_INSTALL_DIR)/usr/share/classpath/tools.zip $(1)/usr/share/classpath/
83 endef
84
85 define Build/InstallDev
86 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
87 endef
88
89 $(eval $(call BuildPackage,classpath))
90 $(eval $(call BuildPackage,classpath-tools))