1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/games/xmris/scripts/pre-configure

21 lines
533 B
Plaintext
Raw Normal View History

#!/bin/sh
# X must be running when the scram program creates the bitmaps
xwd -root >/dev/null 2>&1
if [ $? != 0 ]; then
echo "X needs to be started to build xmris"
exit 1
fi
mv ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig
echo "LOCAL=/usr/local" >${WRKSRC}/Imakefile || exit 1;
# remove extra space after \ in continuation lines
sed -e 's/\\ $/\\/' <${WRKSRC}/Imakefile.orig >>${WRKSRC}/Imakefile || exit 1
echo "CDEBUGFLAGS=-O2" >>${WRKSRC}/Imakefile || exit 1
echo "MANSUFFIX=6" >>${WRKSRC}/Imakefile || exit 1
exit 0