2024-01-12 Fred Gleason <fredg@paravelsystems.com>

* Updated the build system to DEB packages to support environments
	with no HPI support.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2024-01-12 15:53:06 -05:00
parent efc5a0199d
commit 29db78fd24
4 changed files with 11 additions and 2 deletions

View File

@@ -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.src > 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