[packages] darkice: remove dependency on alsa-lib (support for ALSA is explicitly...
[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:=2
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:=libtool
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 +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
46 define Package/darkice/install
47         $(INSTALL_DIR) $(1)/usr/sbin
48         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/darkice $(1)/usr/sbin/
49         $(INSTALL_DIR) $(1)/etc
50         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/darkice.cfg $(1)/etc/
51 endef
52
53 $(eval $(call BuildPackage,darkice))