change icecast to use libvorbisidec instead of libogg/libvorbis (thanks to David...
[openwrt.git] / openwrt / package / sablevm / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=sablevm
6 PKG_VERSION:=1.11.3
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=aea6e808c5f2e3646a60971485220bff
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_SABLEVM=m
20
21 $(eval $(call PKG_template,SABLEVM,sablevm,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
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" \
29 ./configure \
30 --target=$(GNU_TARGET_NAME) \
31 --host=$(GNU_TARGET_NAME) \
32 --build=$(GNU_HOST_NAME) \
33 --program-prefix="" \
34 --program-suffix="" \
35 --prefix=/usr \
36 --exec-prefix=/usr \
37 --bindir=/usr/bin \
38 --datadir=/usr/share \
39 --includedir=/usr/include \
40 --infodir=/usr/share/info \
41 --libdir=/usr/lib \
42 --libexecdir=/usr/lib \
43 --localstatedir=/var \
44 --mandir=/usr/share/man \
45 --sbindir=/usr/sbin \
46 --sysconfdir=/etc \
47 $(DISABLE_LARGEFILE) \
48 $(DISABLE_NLS) \
49 --enable-shared \
50 --disable-static \
51 );
52 touch $@
53
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)" \
59 all install
60 touch $@
61
62 $(IPKG_SABLEVM):
63 install -m0755 -d $(IDIR_SABLEVM)/usr/bin
64 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/{java-,}sablevm $(IDIR_SABLEVM)/usr/bin/
65 install -m0755 -d $(IDIR_SABLEVM)/usr/lib
66 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libsablevm-*.so $(IDIR_SABLEVM)/usr/lib/
67 $(RSTRIP) $(IDIR_SABLEVM)
68 $(IPKG_BUILD) $(IDIR_SABLEVM) $(PACKAGE_DIR)
This page took 0.041885 seconds and 5 git commands to generate.