3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=4e8449cde7135ad97f788e67e1bd64ee
10 PKG_SOURCE_URL
:=http
://www.cti.ecp.fr
/~beauxir5
/peercast
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
19 $(eval
$(call PKG_template
,PEERCAST
,peercast
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
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" \
31 --target
=$(GNU_TARGET_NAME
) \
32 --host
=$(GNU_TARGET_NAME
) \
33 --build
=$(GNU_HOST_NAME
) \
39 --datadir=/usr
/share \
40 --includedir=/usr
/include \
41 --infodir=/usr
/share
/info \
43 --libexecdir
=/usr
/lib \
44 --localstatedir
=/var \
45 --mandir=/usr
/share
/man \
48 $(DISABLE_LARGEFILE
) \
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)" \
66 install -m0755
-d
$(IDIR_PEERCAST
)/usr
/sbin
67 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/peercast
$(IDIR_PEERCAST
)/usr
/sbin
/
68 install -m0755
-d
$(IDIR_PEERCAST
)/usr
/share
/peercast
/html
69 cp
-fpR
$(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
)