source: freewrt/package/sablevm-classpath/Makefile@ 6fc4520e

freewrt_1_0 freewrt_2_0
Last change on this file since 6fc4520e was c8b93bd, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

major package Makefile cleanup. remove mostly-clean, add licence header, always use RSTRIP varibale for stripping, rename some init scripts, indent

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

  • Property mode set to 100644
File size: 3.1 KB
RevLine 
[c8b93bd]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.
[475ad56]6
7include $(TOPDIR)/rules.mk
8
[c8b93bd]9PKG_NAME:= sablevm-classpath
10PKG_VERSION:= 1.13
11PKG_RELEASE:= 1
12PKG_MD5SUM:= 9476bb7a0ad67c6cfa353d06f094cdce
[475ad56]13
[c8b93bd]14PKG_SOURCE_URL:= http://sablevm.org/download/release/$(PKG_VERSION)/
15PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
[475ad56]16
[c8b93bd]17include $(TOPDIR)/mk/package.mk
[475ad56]18
[c04ece1]19FWRT_PACKAGE_LIBSABLEVM_CLASSPATH=m
20FWRT_PACKAGE_SABLEVM_CLASSPATH_FULL=m
21FWRT_PACKAGE_SABLEVM_CLASSPATH_MINI=m
[475ad56]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
[d419478]27$(WRKBUILD)/.configured:
28 (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
[475ad56]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 \
[c57fbc9]51 --enable-largefile \
52 --disable-nls \
[475ad56]53 --enable-shared \
54 --disable-static \
55 --disable-gtk-peer \
56 --disable-gtk-cairo \
57 --without-x \
[839dc39]58 --with-jikes=jikes \
[475ad56]59 );
60 touch $@
61
[d419478]62$(WRKBUILD)/.built:
63 rm -rf $(WRKINST)
64 mkdir -p $(WRKINST)
65 $(MAKE) -C $(WRKBUILD) \
66 DESTDIR="$(WRKINST)" \
[475ad56]67 all install
[d419478]68 $(CP) ./files/mini.classlist $(WRKBUILD)/lib/
69 cd $(WRKBUILD)/lib ; fastjar -Mcf mini.jar -@ < mini.classlist
[475ad56]70 touch $@
71
72$(IPKG_LIBSABLEVM_CLASSPATH):
73 install -d -m0755 $(IDIR_LIBSABLEVM_CLASSPATH)/usr/lib/sablevm-classpath
[d419478]74 $(CP) $(WRKINST)/usr/lib/sablevm-classpath/libjava*.so $(IDIR_LIBSABLEVM_CLASSPATH)/usr/lib/sablevm-classpath/
[475ad56]75 install -d -m0755 $(IDIR_LIBSABLEVM_CLASSPATH)/usr/lib/security
[d419478]76 $(CP) $(WRKINST)/usr/lib/security/classpath.security $(IDIR_LIBSABLEVM_CLASSPATH)/usr/lib/security/
[475ad56]77 $(RSTRIP) $(IDIR_LIBSABLEVM_CLASSPATH)
78 $(IPKG_BUILD) $(IDIR_LIBSABLEVM_CLASSPATH) $(PACKAGE_DIR)
79
80$(IPKG_SABLEVM_CLASSPATH_FULL):
81 install -d -m0755 $(IDIR_SABLEVM_CLASSPATH_FULL)/usr/share/sablevm-classpath
[d419478]82 $(CP) $(WRKINST)/usr/share/sablevm-classpath/{libclasspath,resources}.jar \
[475ad56]83 $(IDIR_SABLEVM_CLASSPATH_FULL)/usr/share/sablevm-classpath/
84 $(IPKG_BUILD) $(IDIR_SABLEVM_CLASSPATH_FULL) $(PACKAGE_DIR)
85
86$(IPKG_SABLEVM_CLASSPATH_MINI):
87 install -d -m0755 $(IDIR_SABLEVM_CLASSPATH_MINI)/usr/share/sablevm-classpath
[d419478]88 install -m0755 $(WRKBUILD)/lib/mini.jar \
[475ad56]89 $(IDIR_SABLEVM_CLASSPATH_MINI)/usr/share/sablevm-classpath/libclasspath.jar
90 $(IPKG_BUILD) $(IDIR_SABLEVM_CLASSPATH_MINI) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.