enable mount nfs, thx ejka@imfi.kspu.ru
[openwrt.git] / package / jamvm / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=jamvm
4 PKG_VERSION:=1.4.1
5 PKG_RELEASE:=1
6 PKG_MD5SUM:=ed79d6b60e50b007614831f8c28321ac
7
8 PKG_SOURCE_URL:=@SF/jamvm
9
10 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
11 PKG_CAT:=zcat
12 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
13 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
14
15 include $(TOPDIR)/package/rules.mk
16
17 $(eval $(call PKG_template,JAMVM,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18
19 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
20 (cd $(PKG_BUILD_DIR); \
21 $(TARGET_CONFIGURE_OPTS) \
22 CFLAGS="$(TARGET_CFLAGS)" \
23 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
24 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
25 ./configure \
26 --target=$(GNU_TARGET_NAME) \
27 --host=$(GNU_TARGET_NAME) \
28 --build=$(GNU_HOST_NAME) \
29 --program-prefix="" \
30 --program-suffix="" \
31 --prefix=/usr \
32 --exec-prefix=/usr \
33 --bindir=/usr/bin \
34 --datadir=/usr/share \
35 --includedir=/usr/include \
36 --infodir=/usr/share/info \
37 --libdir=/usr/lib \
38 --libexecdir=/usr/lib \
39 --localstatedir=/var \
40 --mandir=/usr/share/man \
41 --sbindir=/usr/sbin \
42 --sysconfdir=/etc \
43 --enable-ffi \
44 );
45 touch $@
46
47
48 $(PKG_BUILD_DIR)/.built:
49 rm -rf $(PKG_INSTALL_DIR)
50 mkdir -p $(PKG_INSTALL_DIR)/usr/bin
51 mkdir -p $(PKG_INSTALL_DIR)/usr/share/jamvm
52 $(MAKE) -C $(PKG_BUILD_DIR)/src \
53 $(TARGET_CONFIGURE_OPTS)
54 $(CP) $(PKG_BUILD_DIR)/src/jamvm $(PKG_INSTALL_DIR)/usr/bin
55 $(MAKE) -C $(PKG_BUILD_DIR)/lib
56 $(CP) $(PKG_BUILD_DIR)/lib/classes.zip $(PKG_INSTALL_DIR)/usr/share/jamvm
57 touch $@
58
59 $(IPKG_JAMVM):
60 install -d -m0755 $(IDIR_JAMVM)/usr/bin
61 install -d -m0755 $(IDIR_JAMVM)/usr/share/jamvm
62 $(CP) $(PKG_INSTALL_DIR)/usr/bin/jamvm $(IDIR_JAMVM)/usr/bin
63 $(CP) $(PKG_INSTALL_DIR)/usr/share/jamvm/classes.zip $(IDIR_JAMVM)/usr/share/jamvm
64 $(RSTRIP) $(IDIR_JAMVM)
65 $(IPKG_BUILD) $(IDIR_JAMVM) $(PACKAGE_DIR)
66
67 mostlyclean:
68 make -C $(PKG_BUILD_DIR) clean
69 rm $(PKG_BUILD_DIR)/.built
This page took 0.053046 seconds and 5 git commands to generate.