mirror of
http://git.openwrt.org/packages.git
synced 2025-01-09 04:19:54 +08:00
a6ba01c54a
Add a config file based on: http://projects.qi-hardware.com/index.php/p/openwrt-packages/source/tree/master/listener/files/listener.conf Fix the location where listener is looking for its configuration file (thanks to Xiangfu Liu for pointing these) git-svn-id: svn://svn.openwrt.org/openwrt/packages@28594 3c298f89-4303-0410-b956-a3cf2f4a3e73
49 lines
1.1 KiB
Makefile
49 lines
1.1 KiB
Makefile
#
|
|
# 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))
|