From 2c2db16beee474260741a2abed903f15d9b62e2d Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Wed, 20 Mar 2024 20:11:41 -0400 Subject: xpipe: add patch for makefile option BSDDIR --- .../debian/patches/01-makefile-option-bsddir.patch | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 xpipe/debian/patches/01-makefile-option-bsddir.patch (limited to 'xpipe/debian/patches/01-makefile-option-bsddir.patch') diff --git a/xpipe/debian/patches/01-makefile-option-bsddir.patch b/xpipe/debian/patches/01-makefile-option-bsddir.patch new file mode 100644 index 0000000..fbfe845 --- /dev/null +++ b/xpipe/debian/patches/01-makefile-option-bsddir.patch @@ -0,0 +1,28 @@ +Description: Add Makefile option for BSDDIR + Debian does not store libbsd headers directly at /usr/include/bsd; it + stores them elsewhere. + . + Use this patch to find it or else be able to set it on the Make + invocation with `make BSDDIR=/path/to/libbsd/include/bsd` +Author: B. Stack +Origin: Devuan +Last-Update: 2024-03-20 +--- a/Makefile ++++ b/Makefile +@@ -6,6 +6,7 @@ PREFIX?=/usr/local + CFLAGS+= -Wall -Werror -Wextra -I${PREFIX}/include + LDFLAGS+= -L${PREFIX}/lib + LIBS= -lm ++BSDDIR :=$(shell find /usr/include -name bsd -type d -quit) + + OS!=uname + +@@ -28,7 +29,7 @@ help: + configure: + @ \ + if [ "x${OS}" = x"Linux" ]; then \ +- if [ ! -d /usr/include/bsd ] && [ ! -d ${PREFIX}/include/bsd ]; then \ ++ if [ ! -d /usr/include/bsd ] && [ ! -d ${PREFIX}/include/bsd ] && [ ! -d ${BSDDIR} ] ; then \ + echo "Please install 'libbsd' and 'libbsd-devel'." >&2; \ + exit 1; \ + fi; \ -- cgit