Commit Graph
488 Commits
Author SHA1 Message Date
Mike Brady 885377ca75 Add a configuration check for the xxd program when building for AirPlay 2. 2022-12-01 15:47:55 +00:00
Mike Brady f1f59099e5 Try AC_CHECK_LIB is PKG_CHECK_MODULES can't find libavcodec 2022-10-31 09:42:49 +00:00
Mike Brady 86a52964f9 Don't automatically try to build the man file -- assume it's already there. Add a separate Makefile for the man directory. Only generate the man file (not the html file) by default. Specify the man file in this directory for installation during installation of shairport sync 2022-10-10 22:39:15 +01:00
Mike Brady de217191e0 Only attempt to build the HTML version of the man page if xsltproc is installed. 2022-10-10 21:20:32 +01:00
Mike Brady 0cc97d5099 Start using libgcrypt again, as there appears to be a memory leak in openssl when used in the pair_ap library. 2022-10-07 16:17:42 +01:00
Mike Brady 30aaabc47e Remove the need for the gcrypt library; use openssl instead, as it's mandatory elsewhere in Shairport Sync. 2022-09-26 17:42:13 +01:00
Mike Brady fd880056fb Squashed commit of the following:
Add three parameters to the backend play() function call -- (1) a flag indicating whether the samples are timed or not. If timed, (2) the timestamp and (3) the local time at which the first frame should be heard.
    Update missing pipewire library message.
    Makefile.am fix.
    Update the SHM version and fix the SHM name so that it works with FreeBSD.
    Remove redundant (?) AC_HEADER_STDC check.
    Fix compilation and installation under FreeBSD -- changes to allow building in a separate directory broke the FreeBSD build process.
    Add AC_CHECK_LIB for gcrypt in case PKG_CHECK_MODULES fails to find it.
    Find gcrypt using pkg-config
    Add code to detect when the RTSP channel goes idle for a period, and use it to reset clocks and timings, etc. so that SPS resumes correctly where the source has gone to sleep while playing a realtime stream and has subsequently woken up.
    Don't exit if a UDP Clock Control packet is empty. Also check minimum packet size.
    Remove some very experimental code which may cause memory and port leaks.
    Strip file path from the filename used in debug messages, information messages, warnings and fatal error messages.
    BB fix to Makefile.am -- overwriting the DBUS stuff with MPRIS definitions, duh.
    Fix some problems building on FreeBSD and tidy up the use of the "sed" editor.
    Fix some problems building on picore.
    Fix an uninitialised variable
    start using the "nqptp" SMI
2022-09-12 15:19:52 +01:00
Mike Brady 6767bde989 Add AC_CHECK_LIB for gcrypt in case PKG_CHECK_MODULES fails to find it. 2022-09-07 13:49:16 +01:00
Mike Brady 7cbf302666 Use pkg-config to find gcrypt and remove a few commented-out lines. 2022-09-05 21:09:08 +01:00
Mike Brady 3419f09049 Merge branch 'autoconf-build-dir' of https://github.com/lrusak/shairport-sync into lrusak-autoconf-build-dir 2022-08-15 08:52:20 +01:00
Mike Brady 074457c857 Add conditional test for Darwin. 2022-08-08 12:17:20 +01:00
Lukas Rusak 40e28ba2c7 Makefile.am: allow building from separate build directory 2022-07-28 20:34:10 -07:00
Mike Brady 38bbad6f63 Remove the requirement for Avahi in the systemd startup file unless Avahi is included in the build. 2022-04-05 07:22:34 +01:00
Mike Brady 5a23ff5224 slightly simplify function generate_preliminary_string. 2021-12-16 09:47:50 +00:00
Mike Brady 5aa3324d3d Merge "openbsd corrections #1357" after resolving one conflict. 2021-12-09 14:16:37 +00:00
Anton Lindqvist 7693b4ae1b configure: openbsd is supported 2021-12-05 08:52:22 +01:00
Anton Lindqvist 5aeb4ab9ed configure: fix handling of non linux operating systems
The OS whitelist conditional is malformed due to missing test(1) commands
causing the following error to be emitted during configure while using something
other than Linux:

	../configure[3340]: xopenbsd: not found

Instead, favor a switch statement which makes the line a bit shorter as well.

Also, the AC_MSG_ERROR argument must be wrapped in brackets due to presence of a
comma. Otherwise, the tail will be interpreted as an additional argument.
2021-12-05 08:52:21 +01:00
Mike Brady b3526c5472 Use PKG_CHECK_MODULES to find libavcodec, to make it work with Fedora 35 (?) 2021-12-01 17:58:22 +00:00
fwcd 9065ebc6f0 Try finding libplist as libplist-2.0 on Linux too 2021-11-24 16:22:23 +01:00
Fabrice Fontaine 424cc39824 configure.ac: fix build with automake 1.16.5
Fix the following build failure with convolution raised since automake
1.16.5 and
https://git.savannah.gnu.org/cgit/automake.git/commit/?id=f4a3a70f69e1dbccb6578f39ef47835098a04624:

configure.ac:305: error: AM_INIT_AUTOMAKE expanded multiple times
/home/giuliobenetti/autobuild/run/instance-1/output-1/host/share/aclocal-1.16/init.m4:29: AM_INIT_AUTOMAKE is expanded from...
configure.ac:6: the top level
/home/giuliobenetti/autobuild/run/instance-1/output-1/host/share/aclocal-1.16/init.m4:29: AM_INIT_AUTOMAKE is expanded from...
configure.ac:305: the top level

Fixes:
 - http://autobuild.buildroot.org/results/464148bdccb705d8992dc860262bfdeb01b7e2a1

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2021-10-15 08:20:12 +02:00
Mike Brady 37faed13af Is sufficiently different from 4.0-dev... 2021-09-27 19:37:09 +01:00
Fabrice Fontaine 246f26afe4 configure.ac: find sndfile through pkg-config
Find sndfile through pkg-config to retrieve sndfile dependencies such as
flac and avoid the following static build failure:

/tmp/instance-3/output-1/host/lib/gcc/xtensa-buildroot-linux-uclibc/10.3.0/../../../../xtensa-buildroot-linux-uclibc/bin/ld: /tmp/instance-3/output-1/host/bin/../xtensa-buildroot-linux-uclibc/sysroot/usr/lib/libsndfile.a(libsndfile_la-flac.o): in function `flac_byterate':
flac.c:(.text+0xfc): undefined reference to `FLAC__StreamDecoderErrorStatusString'

Fixes:
 - http://autobuild.buildroot.org/results/92ed30a6855ca11800b779718822bcba4a69c9a3

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2021-08-06 11:41:49 +02:00
Mike BradyandGitHub 8c9f438bda Merge pull request #1177 from lrusak/pipewire
pipewire: add initial support
2021-07-22 16:35:10 +01:00
Mike Brady d4a625cf9c Check that a git archive actually exists as well as the git app being installed. 2021-07-06 19:24:51 +01:00
Mike Brady 5850696ac0 Switch over to AC_CHECK_LIB from PKG_CHECK_MODULES for checking for libgcrypt. 2021-06-29 10:55:21 +01:00
Mike Brady 1a21a1aaae Switch to libgcrypt for the pairing library for compatibility with Ubuntu on an M1. 2021-06-29 10:23:56 +01:00
Mike Brady e925e196c8 Changes to allow it to compile in FreeBSD and fix a few issues that were picked up by clang 10. 2021-06-22 13:49:11 +01:00
Mike Brady c37ee4542d Add code to skip packets of buffered audio that are late or too early. 2021-06-09 19:35:08 +01:00
Mike Brady aa8d251aef Check for a version of libplist that is recent enough. 2021-06-08 14:14:23 +01:00
Mike Brady 2203d6a335 Start using automatic git-based versioning 2021-05-14 22:49:17 +01:00
Mike Brady 056b37020c Was 4.0d4 with some extras. Moving to git-based semantic versioning. 2021-05-14 14:23:10 +01:00
Mike Brady c8e45b3206 Bump for changes to missing clock and flushing. 2021-05-13 21:16:58 +01:00
Mike BradyandGitHub e270f8a9a5 Update configure.ac
Bumped for an update to `pair_ap`.
2021-05-08 15:29:54 +01:00
Mike Brady fd4cc98aba Slightly better timing. Bumped version for ejurgensen's new pair_ap work. 2021-05-05 18:33:21 +01:00
Mike Brady 9a29fac7c7 Initial working SPS4. AirPlay 1 build works and AirPlay 2 build works. Yay. 2021-04-30 15:17:11 +01:00
Mike Brady 0af7f4fbde Bring in files and settings from sps2-ex1 2021-04-27 20:07:50 +01:00
Mike Brady 8110851d5f Remove tinyhttp files prior to adding it as a submodule 2021-04-27 19:26:08 +01:00
Mike BradyandGitHub 669c8d6ff9 Update configure.ac 2021-04-08 13:59:44 +01:00
Lukas Rusak ec23236370 pipewire: add initial support 2021-04-01 10:12:42 -07:00
Mike Brady 6a42c76569 Stop using snd_pcm_status_get_driver_htstamp in the alsa precision timing function. It seems to have changed (?). 2021-03-27 16:12:42 +00:00
Mike Brady 23ac1e31e1 Fix omission of libdaemon when it is requested. 2021-02-08 11:45:23 +00:00
Mike Brady 106d0b327a This is 3.3.8rc3 2021-01-24 18:01:39 +00:00
Mike Brady ca40780a76 Add some simple configuration tests. 2021-01-01 19:16:27 +00:00
Mike Brady 26ff0c2095 More of the configure.ac fixes done. Still incomplete. 2020-12-30 19:32:46 +00:00
Mike Brady 9af9dafb97 Partially fix the --with-* and --without-* issues and clean up the script. 2020-12-26 16:11:53 +00:00
Mike Brady 3612fa374f Further changes, make ALAC and GIO lowecase. 2020-12-26 16:10:04 +00:00
Mike Brady 2538e46abe Further changes, use AS_HELP_STRING macros, remove most include messages, make many tokens lowercase. 2020-12-26 15:45:13 +00:00
Mike Brady 72176a95a4 Fix up AC_ARG_WITH logic to work with --without-* properly. Also do some tidying up. Fixed --with-apple-alac, --with-pipe, --with-stdout, --with-dummy. More to do. 2020-12-26 14:35:18 +00:00
Mike Brady a1810786fa Bug fixes 2020-12-23 16:14:01 +00:00
Mike Brady cf5a9f764d Handle active_remote_id as a string rather than an unsigned 32-bit number. It seems ROON uses a longer character sequence. Tidy up some error messages aboout which backend is selected. 2020-09-27 10:48:27 +01:00