ports/audio/csound/scripts/check-fltk-threads.sh
Rong-En Fan fc22f851b1 - When fltk is not installed, scripts/check-fltk-threads.sh misbehaves
due to not checking existence of fltk-config before using it. Fix that
  by checking existence before using.

PR:             ports/116623
Submitted by:   bgruber <knightbg at yahoo.com>
Approved by:    Martin Tournoij <carpetsmoker at xs4all.nl> (maintainer)
2007-09-25 08:53:49 +00:00

10 lines
354 B
Bash

#!/bin/sh
if [ -x ${FLTKBASE}/bin/fltk-config ] && [ -z "$(fltk-config --ldflags | grep pthread)" ]; then
echo "FLTK does not have threading support enabled."
echo "Please remove the x11-toolkits/fltk port first and recompile csound again"
echo "The csound port will automatically install the x11-toolkits/fltk-threads port."
exit 1
else
exit 0
fi