3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=d5828200032bfe921dd43e450931e38c
10 PKG_SOURCE_URL
:=http
://sablevm.org
/download
/release
/$(PKG_VERSION
)/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
21 $(eval
$(call PKG_template
,SABLEVM
,sablevm
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
23 $(PKG_BUILD_DIR
)/.configured
:
24 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
25 $(TARGET_CONFIGURE_OPTS
) \
26 CFLAGS
="$(strip $(TARGET_CFLAGS))" \
27 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
28 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -lffi -lltdl -lpopt -lz" \
30 --target
=$(GNU_TARGET_NAME
) \
31 --host
=$(GNU_TARGET_NAME
) \
32 --build
=$(GNU_HOST_NAME
) \
38 --datadir=/usr
/share \
39 --includedir=/usr
/include \
40 --infodir=/usr
/share
/info \
42 --libexecdir
=/usr
/lib \
43 --localstatedir
=/var \
44 --mandir=/usr
/share
/man \
47 $(DISABLE_LARGEFILE
) \
54 $(PKG_BUILD_DIR
)/.built
:
55 rm -rf
$(PKG_INSTALL_DIR
)
56 mkdir
-p
$(PKG_INSTALL_DIR
)
57 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
58 DESTDIR
="$(PKG_INSTALL_DIR)" \
63 install -m0755
-d
$(IDIR_SABLEVM
)/usr
/bin
64 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/{java-
,}sablevm
$(IDIR_SABLEVM
)/usr
/bin
/
65 install -m0755
-d
$(IDIR_SABLEVM
)/usr
/lib
66 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libsablevm-
*.so
$(IDIR_SABLEVM
)/usr
/lib
/
67 $(RSTRIP
) $(IDIR_SABLEVM
)
68 $(IPKG_BUILD
) $(IDIR_SABLEVM
) $(PACKAGE_DIR
)