add ser2net from hazimin fauzi, thx
[openwrt.git] / package / peercast / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=peercast
6 PKG_VERSION:=0.1214
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=4e8449cde7135ad97f788e67e1bd64ee
9
10 PKG_SOURCE_URL:=http://www.cti.ecp.fr/~beauxir5/peercast
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 $(eval $(call PKG_template,PEERCAST,peercast,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
23 BUILD_CC=$(TARGET_CC) HOSTCC=$(HOSTCC) \
24 $(TARGET_CONFIGURE_OPTS) \
25 CFLAGS="$(TARGET_CFLAGS)" \
26 CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -nostdinc++ -nodefaultlibs" \
27 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
28 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
29 LIBS="-nodefaultlibs -luClibc++ -lpthread" \
30 ./configure \
31 --target=$(GNU_TARGET_NAME) \
32 --host=$(GNU_TARGET_NAME) \
33 --build=$(GNU_HOST_NAME) \
34 --program-prefix="" \
35 --program-suffix="" \
36 --prefix=/usr \
37 --exec-prefix=/usr \
38 --bindir=/usr/bin \
39 --datadir=/usr/share \
40 --includedir=/usr/include \
41 --infodir=/usr/share/info \
42 --libdir=/usr/lib \
43 --libexecdir=/usr/lib \
44 --localstatedir=/var \
45 --mandir=/usr/share/man \
46 --sbindir=/usr/sbin \
47 --sysconfdir=/etc \
48 $(DISABLE_LARGEFILE) \
49 $(DISABLE_NLS) \
50 --enable-shared \
51 --disable-static \
52 --with-gnu-ld \
53 --enable-staticbin \
54 );
55 touch $@
56
57 $(PKG_BUILD_DIR)/.built:
58 rm -rf $(PKG_INSTALL_DIR)
59 mkdir -p $(PKG_INSTALL_DIR)
60 $(MAKE) -C $(PKG_BUILD_DIR) \
61 DESTDIR="$(PKG_INSTALL_DIR)" \
62 all install
63 touch $@
64
65 $(IPKG_PEERCAST):
66 install -m0755 -d $(IDIR_PEERCAST)/usr/sbin
67 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/peercast $(IDIR_PEERCAST)/usr/sbin/
68 install -m0755 -d $(IDIR_PEERCAST)/usr/share/peercast/html
69 $(CP) $(PKG_INSTALL_DIR)/usr/share/peercast/html/en $(IDIR_PEERCAST)/usr/share/peercast/html/
70 install -m0755 -d $(IDIR_PEERCAST)/etc
71 install -m0644 ./files/peercast.ini $(IDIR_PEERCAST)/etc/
72 install -m0755 -d $(IDIR_PEERCAST)/etc/init.d
73 install -m0755 ./files/peercast.init $(IDIR_PEERCAST)/etc/init.d/peercast
74 ln -sf peercast $(IDIR_PEERCAST)/etc/init.d/S60peercast
75 $(RSTRIP) $(IDIR_PEERCAST)
76 $(IPKG_BUILD) $(IDIR_PEERCAST) $(PACKAGE_DIR)
This page took 0.053197 seconds and 5 git commands to generate.