diff --git a/ChangeLog b/ChangeLog index e09fcd75..7ccd5cdf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24609,3 +24609,6 @@ 2024-01-12 Fred Gleason * Updated the screenshot of the Full Log widget in the 'Running Logs with RDAirPlay' chapter of the Operations Guide. +2024-01-12 Fred Gleason + * Updated the build system to DEB packages to support environments + with no HPI support. diff --git a/autogen.sh b/autogen.sh index 26c362fe..a026c8e6 100755 --- a/autogen.sh +++ b/autogen.sh @@ -24,7 +24,12 @@ # Generate Debian packaging metadata # DATESTAMP=`date +%a,\ %d\ %b\ %Y\ %T\ %z` +if test -f /usr/include/asihpi/hpi.h ; then + HPKLINUX_DEP="\,hpklinux-dev" +fi sed s/@VERSION@/`cat versions/PACKAGE_VERSION`/ < debian/control.src > debian/control +sed s/@HPKLINUX_DEP@/$HPKLINUX_DEP/ debian/control.src2 +sed s/@VERSION@/`cat versions/PACKAGE_VERSION`/ < debian/control.src2 > debian/control sed s/@VERSION@/`cat versions/PACKAGE_VERSION`/ < debian/changelog.src | sed "s/@DATESTAMP@/$DATESTAMP/" > debian/changelog sed s/@PYTHONAPI_VERSION@/`cat versions/PYTHONAPI_VERSION`/ < debian/rules.src > debian/rules diff --git a/debian/Makefile.am b/debian/Makefile.am index 22262c0a..7fa26ad9 100644 --- a/debian/Makefile.am +++ b/debian/Makefile.am @@ -2,7 +2,7 @@ ## ## Automake.am for rivendell debian/ ## -## (C) Copyright 2021 Fred Gleason +## (C) Copyright 2021-2023 Fred Gleason ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as @@ -35,4 +35,5 @@ EXTRA_DIST = changelog\ MAINTAINERCLEANFILES = changelog\ control\ + control.src2\ rules diff --git a/debian/control.src b/debian/control.src index 9bdb090a..d135e349 100644 --- a/debian/control.src +++ b/debian/control.src @@ -2,7 +2,7 @@ Source: rivendell Section: audio Priority: optional Maintainer: Fred Gleason -Build-Depends: debhelper-compat (= 12), autotools-dev, hpklinux-dev +Build-Depends: debhelper-compat (= 12), autotools-dev @HPKLINUX_DEP@ Standards-Version: 4.4.1 Package: rivendell