shairport: Update config and init scripts, fix build, remove libao dependency, add myself as pkg maintainer

Signed-off-by: Ted Hess <thess@kitschensync.net>
This commit is contained in:
thess
2014-07-16 13:51:18 -04:00
committed by Ted Hess
parent f61fe11ce0
commit 7fba5f8bee
4 changed files with 104 additions and 58 deletions
+7 -7
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2013 OpenWrt.org
# Copyright (C) 2013-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@@ -9,21 +9,21 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=shairport
PKG_VERSION:=2014-05-08
PKG_RELEASE:=$(PKG_SOURCE_VERSION)
PKG_RELEASE:=2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git://github.com/abrasive/shairport.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=078b21043cdcef6ffad7452db27f036770b23b0c
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
include $(INCLUDE_DIR)/package.mk
define Package/shairport
SECTION:=multimedia
CATEGORY:=Multimedia
DEPENDS:=+libpthread +avahi-utils +libopenssl +libao +libavahi-client \
+alsa-utils
DEPENDS:=+libpthread +avahi-utils +libopenssl +libavahi-client +alsa-utils
TITLE:=ShairPort AirPort Express emulator
endef
@@ -39,15 +39,15 @@ endef
TARGET_CFLAGS += $(FPIC)
LIBS:=-lao -lm -lcrypto -lpthread -lavahi-common -lavahi-client -lasound
LIBS:=-lm -lcrypto -lpthread -lavahi-common -lavahi-client -lasound
MAKE_FLAGS += \
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS) $(LIBS)"
define Package/shairport/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/shairport $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/shairport $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc/init.d/
$(INSTALL_BIN) files/shairport.init $(1)/etc/init.d/shairport
$(INSTALL_DIR) $(1)/etc/config