source: freewrt/package/sablevm-classpath/Makefile@ 621d5d2

freewrt_2_0
Last change on this file since 621d5d2 was 9f572e3, checked in by Dirk Nehring <dnehring@…>, 19 years ago

drop --enable-largefile from makefiles. 2GB should be enough in most cases

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@975 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 3.1 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= sablevm-classpath
10PKG_VERSION:= 1.13
11PKG_RELEASE:= 1
12PKG_MD5SUM:= 9476bb7a0ad67c6cfa353d06f094cdce
13
14PKG_SOURCE_URL:= http://sablevm.org/download/release/$(PKG_VERSION)/
15PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
16
17include $(TOPDIR)/mk/package.mk
18
19FWRT_PACKAGE_LIBSABLEVM_CLASSPATH=m
20FWRT_PACKAGE_SABLEVM_CLASSPATH_FULL=m
21FWRT_PACKAGE_SABLEVM_CLASSPATH_MINI=m
22
23$(eval $(call PKG_template,LIBSABLEVM_CLASSPATH,libsablevm-classpath,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
24$(eval $(call PKG_template,SABLEVM_CLASSPATH_FULL,sablevm-classpath-full,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
25$(eval $(call PKG_template,SABLEVM_CLASSPATH_MINI,sablevm-classpath-mini,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
26
27$(WRKBUILD)/.configured:
28 (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
29 $(TARGET_CONFIGURE_OPTS) \
30 CFLAGS="$(strip $(TARGET_CFLAGS))" \
31 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
32 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
33 ./configure \
34 --target=$(GNU_TARGET_NAME) \
35 --host=$(GNU_TARGET_NAME) \
36 --build=$(GNU_HOST_NAME) \
37 --program-prefix="" \
38 --program-suffix="" \
39 --prefix=/usr \
40 --exec-prefix=/usr \
41 --bindir=/usr/bin \
42 --datadir=/usr/share \
43 --includedir=/usr/include \
44 --infodir=/usr/share/info \
45 --libdir=/usr/lib \
46 --libexecdir=/usr/lib \
47 --localstatedir=/var \
48 --mandir=/usr/share/man \
49 --sbindir=/usr/sbin \
50 --sysconfdir=/etc \
51 --disable-nls \
52 --enable-shared \
53 --disable-static \
54 --disable-gtk-peer \
55 --disable-gtk-cairo \
56 --without-x \
57 --with-jikes=jikes \
58 );
59 touch $@
60
61$(WRKBUILD)/.built:
62 rm -rf $(WRKINST)
63 mkdir -p $(WRKINST)
64 $(MAKE) -C $(WRKBUILD) \
65 DESTDIR="$(WRKINST)" \
66 all install
67 $(CP) ./files/mini.classlist $(WRKBUILD)/lib/
68 cd $(WRKBUILD)/lib ; fastjar -Mcf mini.jar -@ < mini.classlist
69 touch $@
70
71$(IPKG_LIBSABLEVM_CLASSPATH):
72 install -d -m0755 $(IDIR_LIBSABLEVM_CLASSPATH)/usr/lib/sablevm-classpath
73 $(CP) $(WRKINST)/usr/lib/sablevm-classpath/libjava*.so $(IDIR_LIBSABLEVM_CLASSPATH)/usr/lib/sablevm-classpath/
74 install -d -m0755 $(IDIR_LIBSABLEVM_CLASSPATH)/usr/lib/security
75 $(CP) $(WRKINST)/usr/lib/security/classpath.security $(IDIR_LIBSABLEVM_CLASSPATH)/usr/lib/security/
76 $(RSTRIP) $(IDIR_LIBSABLEVM_CLASSPATH)
77 $(IPKG_BUILD) $(IDIR_LIBSABLEVM_CLASSPATH) $(PACKAGE_DIR)
78
79$(IPKG_SABLEVM_CLASSPATH_FULL):
80 install -d -m0755 $(IDIR_SABLEVM_CLASSPATH_FULL)/usr/share/sablevm-classpath
81 $(CP) $(WRKINST)/usr/share/sablevm-classpath/{libclasspath,resources}.jar \
82 $(IDIR_SABLEVM_CLASSPATH_FULL)/usr/share/sablevm-classpath/
83 $(IPKG_BUILD) $(IDIR_SABLEVM_CLASSPATH_FULL) $(PACKAGE_DIR)
84
85$(IPKG_SABLEVM_CLASSPATH_MINI):
86 install -d -m0755 $(IDIR_SABLEVM_CLASSPATH_MINI)/usr/share/sablevm-classpath
87 install -m0755 $(WRKBUILD)/lib/mini.jar \
88 $(IDIR_SABLEVM_CLASSPATH_MINI)/usr/share/sablevm-classpath/libclasspath.jar
89 $(IPKG_BUILD) $(IDIR_SABLEVM_CLASSPATH_MINI) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.