summaryrefslogtreecommitdiff
path: root/games/xmris/scripts/pre-configure
blob: ba6bc097353dc78de469b63475b797504db94024 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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