mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
This program emulates an AirPort Express for the purpose of streaming music
from iTunes and compatible iPods. It implements a server for the Apple RAOP protocol. ShairPort does not support AirPlay v2 (video and photo streaming). It supports multiple simultaneous streams, if your audio output chain (as detected by libao) does so. WWW: https://github.com/albertz/shairport PR: ports/163777 Submitted by: Miks Mikelsons <miks at cubesystems.lv>
This commit is contained in:
parent
34763a9b5d
commit
17fb319ee4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=288667
@ -664,6 +664,7 @@
|
||||
SUBDIR += sdl_mixer
|
||||
SUBDIR += sdl_sound
|
||||
SUBDIR += sfront
|
||||
SUBDIR += shairport
|
||||
SUBDIR += shntool
|
||||
SUBDIR += shorten
|
||||
SUBDIR += shout
|
||||
|
48
audio/shairport/Makefile
Normal file
48
audio/shairport/Makefile
Normal file
@ -0,0 +1,48 @@
|
||||
# New ports collection makefile for: shairport
|
||||
# Date created: 2011.09.30
|
||||
# Whom: Aldis Berjoza <graudeejs@gmail.com>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= shairport
|
||||
PORTVERSION= 0.05
|
||||
CATEGORIES= audio
|
||||
MASTER_SITES= http://cloud.github.com/downloads/miks/${PORTNAME}/
|
||||
DISTNAME= miks-${PORTNAME}-${REV}
|
||||
|
||||
MAINTAINER= miks.mikelsons@gmail.com
|
||||
COMMENT= Airtunes emulator
|
||||
|
||||
LIB_DEPENDS= ao.4:${PORTSDIR}/audio/libao
|
||||
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
|
||||
${SITE_PERL}/Getopt/Long.pm:${PORTSDIR}/devel/p5-Getopt-Long \
|
||||
${SITE_PERL}/URI/Escape.pm:${PORTSDIR}/net/p5-URI \
|
||||
${SITE_PERL}/${PERL_ARCH}/Crypt/OpenSSL/RSA.pm:${PORTSDIR}/security/p5-Crypt-OpenSSL-RSA \
|
||||
${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
|
||||
${SITE_PERL}/HTTP/Request.pm:${PORTSDIR}/www/p5-HTTP-Message \
|
||||
avahi-publish-service:${PORTSDIR}/net/avahi-app
|
||||
|
||||
USE_GMAKE= yes
|
||||
USE_PERL5_RUN= yes
|
||||
USE_OPENSSL= yes
|
||||
USE_GNOME= pkgconfig
|
||||
|
||||
USE_RC_SUBR= ${PORTNAME}
|
||||
|
||||
PLIST_FILES= bin/${PORTNAME} bin/hairtunes bin/${PORTNAME}.pl
|
||||
|
||||
REV= b1cb9ea
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|avahi-|${LOCALBASE}/bin/avahi-|g' \
|
||||
-e 's|$$FindBin.*|"${PREFIX}/bin/hairtunes";|' \
|
||||
-e '/use FindBin;/d' ${WRKSRC}/shairport.c ${WRKSRC}/shairport.pl
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/bin
|
||||
.for file in ${PORTNAME} hairtunes
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.mk>
|
2
audio/shairport/distinfo
Normal file
2
audio/shairport/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (miks-shairport-b1cb9ea.tar.gz) = daf55530ba1fecb5a6b5a4c770c97e44cb0ca59a58cd87451975635197e1304f
|
||||
SIZE (miks-shairport-b1cb9ea.tar.gz) = 40425
|
31
audio/shairport/files/shairport.in
Normal file
31
audio/shairport/files/shairport.in
Normal file
@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
# PROVIDE: shairport
|
||||
# REQUIRE: DAEMON avahi_daemon
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf to
|
||||
# enable shairport:
|
||||
#
|
||||
# shairport_enable (bool): Set to NO by default. Set it to YES to
|
||||
# enable shairport.
|
||||
# shairport_flags='-a freebsdShairport'
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="shairport"
|
||||
rcvar=${name}_enable
|
||||
|
||||
command="%%PREFIX%%/bin/${name}.pl"
|
||||
pidfile="/var/run/${name}.pid"
|
||||
procname="perl"
|
||||
|
||||
command_args="-d -w ${pidfile}"
|
||||
|
||||
load_rc_config ${name}
|
||||
|
||||
: ${shairport_enable="NO"}
|
||||
|
||||
run_rc_command "$1"
|
8
audio/shairport/pkg-descr
Normal file
8
audio/shairport/pkg-descr
Normal file
@ -0,0 +1,8 @@
|
||||
This program emulates an AirPort Express for the purpose of streaming music
|
||||
from iTunes and compatible iPods. It implements a server for the Apple RAOP
|
||||
protocol. ShairPort does not support AirPlay v2 (video and photo streaming).
|
||||
|
||||
It supports multiple simultaneous streams, if your audio output chain (as
|
||||
detected by libao) does so.
|
||||
|
||||
WWW: https://github.com/albertz/shairport
|
Loading…
Reference in New Issue
Block a user