source: packages/multimedia/icecast/Makefile @ 29199

Last change on this file since 29199 was 29199, checked in by nico, 5 years ago

packages: add missing conffiles define

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 2.5 KB
Line 
1#
2# Copyright (C) 2006-2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=icecast
11PKG_VERSION:=2.3.2
12PKG_RELEASE:=3
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://downloads.us.xiph.org/releases/icecast/
16PKG_MD5SUM:=ff516b3ccd2bcc31e68f460cd316093f
17
18PKG_FIXUP:=libtool
19
20include $(INCLUDE_DIR)/package.mk
21
22TREMOR_BUILD_DIR=$(PKG_BUILD_DIR)/libvorbisidec-1.2.0-dave
23TREMOR_DIR=$(TREMOR_BUILD_DIR)/ipkg-install/usr
24
25define Package/icecast
26  SECTION:=multimedia
27  CATEGORY:=Multimedia
28  DEPENDS:=+libcurl +libxml2 +libxslt +libogg
29  TITLE:=A streaming media server for Ogg/Vorbis and MP3 audio streams
30  URL:=http://www.icecast.org/
31endef
32
33define Package/icecast/description
34        Icecast is a streaming media server which currently supports Ogg
35        Vorbis and MP3 audio streams. It can be used to create an Internet
36        radio station or a privately running jukebox and many things in
37        between. It is very versatile in that new formats can be added
38        relatively easily and supports open standards for commuincation and
39        interaction.
40endef
41
42define Build/Prepare
43        $(Build/Prepare/Default)
44        $(SUBMAKE) -f libvorbisidec.mk \
45                BUILD_DIR="$(PKG_BUILD_DIR)" \
46                V=99 \
47                prepare
48endef
49
50define Build/Configure
51        $(MAKE) -f libvorbisidec.mk \
52                BUILD_DIR="$(PKG_BUILD_DIR)" \
53                V=99 \
54                compile
55        $(SED) 's,-lvorbis ,$(TREMOR_DIR)/lib/libvorbisidec.a -logg ,g' $(PKG_BUILD_DIR)/configure
56        $(call Build/Configure/Default, \
57                --enable-yp \
58                --with-curl="yes" \
59                --with-curl-config="$(STAGING_DIR)/usr/bin/curl-config" \
60                --with-ogg="$(STAGING_DIR)/usr" \
61                --with-speex="no" \
62                --with-theora="no" \
63                --with-vorbis="$(TREMOR_DIR)" \
64                --with-xslt-config="$(STAGING_DIR)/usr/bin/xslt-config" \
65                , \
66                CPPFLAGS="-I$(TREMOR_DIR)/include -I$(STAGING_DIR)/usr/include/libxml2 $(TARGET_CPPFLAGS)" \
67        )
68endef
69
70define Build/Compile
71        $(MAKE) -C $(PKG_BUILD_DIR) \
72                DESTDIR="$(PKG_INSTALL_DIR)" \
73                INCLUDES="-I$(PKG_BUILD_DIR)/src -I$(TREMOR_DIR)/include" \
74                all install
75endef
76
77define Package/icecast/install
78        $(INSTALL_DIR) $(1)/etc
79        $(CP) $(PKG_INSTALL_DIR)/etc/icecast.xml $(1)/etc/
80        $(INSTALL_DIR) $(1)/usr/bin
81        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/icecast $(1)/usr/bin/
82        $(INSTALL_DIR) $(1)/usr/share/icecast
83        $(CP) $(PKG_INSTALL_DIR)/usr/share/icecast/admin $(1)/usr/share/icecast/
84        $(CP) $(PKG_INSTALL_DIR)/usr/share/icecast/web $(1)/usr/share/icecast/
85endef
86
87define Package/icecast/conffiles
88/etc/icecast.xml
89endef
90
91$(eval $(call BuildPackage,icecast))
Note: See TracBrowser for help on using the repository browser.