bzip2: moved to github
[openwrt.org/packages.git] / sound / listener / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#
# Copyright (C) 2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
 
include $(TOPDIR)/rules.mk
 
PKG_NAME:=listener
PKG_VERSION:=1.7.2
PKG_RELEASE:=1
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://www.vanheusden.com/listener/
PKG_MD5SUM:=8ad9c24c45c7d28aed606304a2bf80bf
 
include $(INCLUDE_DIR)/package.mk
 
define Package/listener
  SECTION:=sound
  CATEGORY:=Sound
  DEPENDS:=+libncurses +libsndfile
  TITLE:=Listener automatically records when sound is detected
  URL:=http://www.vanheusden.com/listener/
endef
 
define Package/listener/description
  This program listens for sound. If it detects any, it starts recording
  automatically and also automatically stops when things become silent
  again.
endef
 
MAKE_FLAGS+= \
        INSTALL_PREFIX= \
 
define Package/listener/conffiles
/etc/listener.conf
endef
 
define Package/listener/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/{listener,listenersoundpipe,setlistener} $(1)/usr/bin/
        $(INSTALL_DIR) $(1)/etc
        $(INSTALL_CONF) ./files/listener.conf $(1)/etc/
endef
 
$(eval $(call BuildPackage,listener))
 
comments