mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
fontsrv: only build when the pieces are there
This commit is contained in:
parent
1a512ec048
commit
cb71c0bdc4
2 changed files with 17 additions and 2 deletions
15
INSTALL
15
INSTALL
|
@ -89,6 +89,21 @@ if [ `uname` = Darwin ]; then
|
|||
rm -f ./a.out
|
||||
fi
|
||||
|
||||
if [ `uname` != Darwin ]; then
|
||||
# Determine whether fontsrv X11 files are available.
|
||||
rm -f a.out
|
||||
gcc -o a.out -c -Iinclude -I/usr/include -I/usr/include/freetype2 src/cmd/fontsrv/x11.c >/dev/null 2>&1
|
||||
if [ -f a.out ]; then
|
||||
echo " fontsrv dependencies found."
|
||||
echo "FONTSRV=fontsrv" >>$PLAN9/config
|
||||
else
|
||||
echo " fontsrv dependencies not found."
|
||||
echo "FONTSRV=" >>$PLAN9/config
|
||||
rm -f bin/fontsrv
|
||||
fi
|
||||
rm -f a.out
|
||||
fi
|
||||
|
||||
if [ -f LOCAL.config ]; then
|
||||
echo Using LOCAL.config options:
|
||||
sed 's/^/ /' LOCAL.config
|
||||
|
|
|
@ -4,8 +4,8 @@ TARG=`ls *.[cy] *.lx | egrep -v "\.tab\.c$|^x\." | sed 's/\.[cy]//; s/\.lx//'`
|
|||
|
||||
<$PLAN9/src/mkmany
|
||||
|
||||
BUGGERED='CVS|faces|factotum|lp|ip|mailfs|upas|vncv|mnihongo|mpm|index|u9fs|secstore|smugfs|snarfer'
|
||||
DIRS=lex `ls -l |sed -n 's/^d.* //p' |egrep -v "^($BUGGERED)$"|egrep -v '^lex$'`
|
||||
BUGGERED='CVS|faces|factotum|fontsrv|lp|ip|mailfs|upas|vncv|mnihongo|mpm|index|u9fs|secstore|smugfs|snarfer'
|
||||
DIRS=lex `ls -l |sed -n 's/^d.* //p' |egrep -v "^($BUGGERED)$"|egrep -v '^lex$'` $FONTSRV
|
||||
|
||||
<$PLAN9/src/mkdirs
|
||||
|
||||
|
|
Loading…
Reference in a new issue