forked from mikebrady/shairport-sync
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
144 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,36 @@ | ||
Type 'make' to build the packet decoder, 'hairtunes'. | ||
|
||
To Run make, you need pkg-config installed (mac): | ||
brew install pkg-config | ||
|
||
You need the following installed: | ||
openssl | ||
libao (if you use homebrew, use brew install libao) | ||
avahi (avahi-daemon running and avahi-publish-service on path, no need on Mac OSX) | ||
Perl | ||
|
||
Debian/Ubuntu users need: | ||
libssl-dev libcrypt-openssl-rsa-perl libao2 libao-dev2 libio-socket-inet6-perl | ||
libssl-dev libcrypt-openssl-rsa-perl libao2 libao-dev libio-socket-inet6-perl | ||
|
||
Perl modules (install from CPAN if needed): | ||
Perl modules (e.g. `perl -MCPAN -e 'install X'`): | ||
HTTP::Message | ||
Crypt::OpenSSL::RSA | ||
IO::Socket::INET6 | ||
|
||
MacOSX: | ||
* install XCode | ||
* install homebrew (https://github.com/mxcl/homebrew) | ||
* export ARCHFLAGS="-arch x86_64" | ||
* brew install pkg-config libao | ||
* make | ||
* perl -MCPAN -e 'install Crypt::OpenSSL::RSA' | ||
* perl -MCPAN -e 'install IO::Socket::INET6' | ||
* perl shairport.pl | ||
|
||
OSX 10.5 only bundles perl 5.8, which won't work with shairport. | ||
After getting a update here (http:https://www.perl.org/get.html), it worked. | ||
|
||
How to run as a daemon on Mac 10.6 | ||
------ | ||
* cp hairtunes shairport.pl /usr/local/bin | ||
* vi /usr/local/bin/shairport.pl, change the path of hairtunes from ./hairtunes to /usr/local/bin/hairtunes | ||
* cp org.mafipulation.shairport.plist ~/Library/LaunchAgents/ | ||
* launchctl load org.mafipulation.shairport.plist | ||
* launchctl unload org.mafipulation.shairport.plist (to remove) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
CFLAGS = `pkg-config --cflags --libs ao openssl` | ||
#CFLAGS = `pkg-config --cflags --libs openssl` -lportaudio | ||
CFLAGS = `pkg-config --cflags --libs openssl ao` | ||
|
||
hairtunes: hairtunes.c alac.c | ||
gcc hairtunes.c alac.c -D__i386 -lm $(CFLAGS) -o hairtunes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters