add squashfs 2.2 for kernel 2.6, cleanup broadcom patch, remove .orig files
[openwrt.git] / openwrt / package / sablevm-classpath / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=sablevm-classpath
6 PKG_VERSION:=1.11.3
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=0aed850f5583199b3d1adb41ac2043ed
9
10 PKG_SOURCE_URL:=http://sablevm.org/download/release/$(PKG_VERSION)/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 BR2_PACKAGE_LIBSABLEVM_CLASSPATH=m
20 BR2_PACKAGE_SABLEVM_CLASSPATH_FULL=m
21 BR2_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 $(PKG_BUILD_DIR)/.configured:
28 (cd $(PKG_BUILD_DIR); 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_LARGEFILE) \
52 $(DISABLE_NLS) \
53 --enable-shared \
54 --disable-static \
55 --disable-gtk-peer \
56 --disable-gtk-cairo \
57 --without-x \
58 );
59 touch $@
60
61 $(PKG_BUILD_DIR)/.built:
62 rm -rf $(PKG_INSTALL_DIR)
63 mkdir -p $(PKG_INSTALL_DIR)
64 $(MAKE) -C $(PKG_BUILD_DIR) \
65 DESTDIR="$(PKG_INSTALL_DIR)" \
66 all install
67 cp ./files/mini.classlist $(PKG_BUILD_DIR)/lib/
68 cd $(PKG_BUILD_DIR)/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 -fpR $(PKG_INSTALL_DIR)/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 -fpR $(PKG_INSTALL_DIR)/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 -fpR $(PKG_INSTALL_DIR)/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 $(PKG_BUILD_DIR)/lib/mini.jar \
88 $(IDIR_SABLEVM_CLASSPATH_MINI)/usr/share/sablevm-classpath/libclasspath.jar
89 $(IPKG_BUILD) $(IDIR_SABLEVM_CLASSPATH_MINI) $(PACKAGE_DIR)
This page took 0.044271 seconds and 5 git commands to generate.