OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 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 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=listener |
| 11 | PKG_VERSION:=1.7.2 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz |
| 15 | PKG_SOURCE_URL:=http://www.vanheusden.com/listener/ |
| 16 | PKG_MD5SUM:=8ad9c24c45c7d28aed606304a2bf80bf |
| 17 | |
| 18 | include $(INCLUDE_DIR)/package.mk |
| 19 | |
| 20 | define Package/listener |
| 21 | SECTION:=sound |
| 22 | CATEGORY:=Sound |
| 23 | DEPENDS:=+libncurses +libsndfile |
| 24 | TITLE:=Listener automatically records when sound is detected |
| 25 | URL:=http://www.vanheusden.com/listener/ |
| 26 | endef |
| 27 | |
| 28 | define Package/listener/description |
| 29 | This program listens for sound. If it detects any, it starts recording |
| 30 | automatically and also automatically stops when things become silent |
| 31 | again. |
| 32 | endef |
| 33 | |
| 34 | TARGET_CFLAGS+= -DCONFIGFILE=\\\"/etc/listener.conf\\\" |
| 35 | |
| 36 | define Package/listener/install |
| 37 | $(INSTALL_DIR) $(1)/usr/bin |
| 38 | $(CP) $(PKG_BUILD_DIR)/{listener,listenersoundpipe,setlistener} $(1)/usr/bin/ |
| 39 | |
| 40 | $(INSTALL_DIR) $(1)/etc |
| 41 | $(CP) $(FILES_DIR)/listener.conf $(1)/etc/ |
| 42 | |
| 43 | $(INSTALL_DIR) $(1)/usr/share/listener |
| 44 | $(CP) $(PKG_BUILD_DIR)/manual.html $(1)/usr/share/listener/ |
| 45 | endef |
| 46 | |
| 47 | $(eval $(call BuildPackage,listener)) |
| 48 |
