Wayland: try /usr/local for wayland-scanner/protocols

Default prefix is /usr/local on FreeBSD
This commit is contained in:
Greg V 2019-01-01 03:07:20 +03:00
parent f1e516bfaf
commit a1c15b5362

View File

@ -3,6 +3,11 @@ WAYSCAN=/usr/bin/wayland-scanner
WAYLAND_PROTOS=/usr/share/wayland-protocols
OUTPUT=gfx/common/wayland
if [ ! -d $WAYLAND_PROTOS ]; then
WAYSCAN=/usr/local/bin/wayland-scanner
WAYLAND_PROTOS=/usr/local/share/wayland-protocols
fi
if [ ! -d $OUTPUT ]; then
mkdir $OUTPUT
fi