[packages] Use default templates instead of custom reimplementations where applicable
[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:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/classpath
16 PKG_MD5SUM:=90c6571b8b0309e372faa0f9f6255ea9
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/classpath
23   SECTION:=libs
24   CATEGORY:=Libraries
25   TITLE:=GNU Classpath
26   URL:=http://www.gnu.org/software/classpath/
27   MAINTAINER:=Roberto Riggio (roberto.riggio@create-net.org)
28 endef
29
30 define Package/classpath/Description
31         GNU Classpath, Essential Libraries for Java, is a GNU project 
32         to create free core class libraries for use with virtual 
33         machines and compilers for the java programming language.
34 endef
35
36 define Build/Configure
37         $(call Build/Configure/Default, \
38                 --with-javac \
39                 --enable-jni \
40                 --disable-gtk-peer \
41                 --disable-gconf-peer \
42                 --disable-plugin \
43         )
44 endef
45
46 define Package/classpath/install
47         $(INSTALL_DIR) $(1)/usr/share/classpath
48         $(INSTALL_DIR) $(1)/usr/lib/classpath
49         $(CP) $(PKG_INSTALL_DIR)/usr/share/classpath/glibj.zip $(1)/usr/share/classpath/
50         $(CP) $(PKG_INSTALL_DIR)/usr/lib/classpath/* $(1)/usr/lib/classpath/
51 endef
52
53 $(eval $(call BuildPackage,classpath))