source: freewrt/package/sablevm-classpath/Makefile@ 8e47882

freewrt_1_0 freewrt_2_0
Last change on this file since 8e47882 was c04ece1, checked in by Thorsten Glaser <tg@…>, 19 years ago

as discussed with wbx@ some 2-3 weeks ago, change
the BR2_ prefix to FWRT_

tested with a standard build (only the squashfs
image since the jffs2 didn't get built)

git-svn-id: svn://www.freewrt.org/trunk/freewrt@360 afb5a338-a214-0410-bd46-81f09a774fd1

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