453b847a45c3b4d5cbc29387e0daa900858b283d
[packages.git] / multimedia / darkice / Makefile
1 #
2 # Copyright (C) 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=darkice
11 PKG_VERSION:=1.0
12 PKG_RELEASE:=4
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://darkice.googlecode.com/files/
16 PKG_MD5SUM:= 1804e63d42a9703d01fe378c9a77c473
17
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/darkice
24   SECTION:=multimedia
25   CATEGORY:=Multimedia
26   SUBMENU:=Streaming
27   TITLE:=DarkIce is a live audio streamer
28   DEPENDS:=+lame-lib +librt +libpthread +libstdcpp
29   MAINTAINER:=Artur Wronowski <arteqw@gmail.com>
30 endef
31
32 define Package/darkice/description
33 DarkIce is a live audio streamer. It records audio from an audio interface (e.g. sound card), encodes it and sends it to a streaming server.
34 endef
35
36 CONFIGURE_ARGS += \
37         --with-lame \
38         --without-aacplus \
39         --without-alsa \
40         --without-faac \
41         --without-jack \
42         --without-samplerate \
43         --without-twolame \
44         --without-vorbis \
45         --with-lame-prefix="$(STAGING_DIR)/usr" \
46
47 define Package/darkice/install
48         $(INSTALL_DIR) $(1)/usr/sbin
49         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/darkice $(1)/usr/sbin/
50         $(INSTALL_DIR) $(1)/etc
51         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/darkice.cfg $(1)/etc/
52 endef
53
54 define Package/darkice/conffiles
55 /etc/darkice.cfg
56 endef
57
58 $(eval $(call BuildPackage,darkice))