fontsrv: fix build on OpenBSD 5.2
R=rsc CC=plan9port.codebot https://codereview.appspot.com/6850108
This commit is contained in:
parent
0b4fd92105
commit
1a512ec048
5 changed files with 14 additions and 2 deletions
|
|
@ -12,6 +12,7 @@ Anthony Sorace <a@9srv.net>
|
||||||
Arvindh Rajesh Tamilmani <art@a-30.net>
|
Arvindh Rajesh Tamilmani <art@a-30.net>
|
||||||
Benjamin Huntsman <BHuntsman@mail2.cu-portland.edu>
|
Benjamin Huntsman <BHuntsman@mail2.cu-portland.edu>
|
||||||
Caio Oliveira <cmarcelo@gmail.com>
|
Caio Oliveira <cmarcelo@gmail.com>
|
||||||
|
Christian Kellermann <ckeen@pestilenz.org>
|
||||||
Christopher Brannon <chris@the-brannons.com>
|
Christopher Brannon <chris@the-brannons.com>
|
||||||
David du Colombier <0intro@gmail.com>
|
David du Colombier <0intro@gmail.com>
|
||||||
David Jeannot <djeannot24@gmail.com>
|
David Jeannot <djeannot24@gmail.com>
|
||||||
|
|
|
||||||
5
INSTALL
5
INSTALL
|
|
@ -45,6 +45,11 @@ rm -f config
|
||||||
echo "* Compiler version:"
|
echo "* Compiler version:"
|
||||||
9c -v 2>&1 | grep -v 'Configured with:' | grep -i version | sed 's/^/ /'
|
9c -v 2>&1 | grep -v 'Configured with:' | grep -i version | sed 's/^/ /'
|
||||||
|
|
||||||
|
if [ `uname` = OpenBSD ]; then
|
||||||
|
echo "* Running on OpenBSD, adjusting linker flags"
|
||||||
|
echo "LDFLAGS='-L/usr/X11R6/lib -pthread'" >> $PLAN9/config
|
||||||
|
fi
|
||||||
|
|
||||||
if [ `uname` = Linux ]; then
|
if [ `uname` = Linux ]; then
|
||||||
# On Linux, we use the kernel version to decide whether
|
# On Linux, we use the kernel version to decide whether
|
||||||
# to use pthreads or not. On 2.6 versions that aren't
|
# to use pthreads or not. On 2.6 versions that aren't
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,7 @@ fi
|
||||||
|
|
||||||
echo 'WSYSTYPE='$WSYSTYPE
|
echo 'WSYSTYPE='$WSYSTYPE
|
||||||
echo 'X11='$X11
|
echo 'X11='$X11
|
||||||
|
echo 'X11H='$X11H
|
||||||
|
|
||||||
if [ $WSYSTYPE = x11 ]; then
|
if [ $WSYSTYPE = x11 ]; then
|
||||||
echo 'CFLAGS=$CFLAGS '$X11H
|
echo 'CFLAGS=$CFLAGS '$X11H
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,12 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ "x$1" = "xx11" ]; then
|
if [ "x$1" = "xx11" ]; then
|
||||||
echo 'CFLAGS=$CFLAGS -I/usr/include/freetype2'
|
if [ "x$2" = "x" ]; then
|
||||||
|
i=/usr/include
|
||||||
|
else
|
||||||
|
i=$2
|
||||||
|
fi
|
||||||
|
echo 'CFLAGS=$CFLAGS '$i'/freetype2'
|
||||||
echo 'LDFLAGS=$LDFLAGS -lfontconfig -lfreetype -lz'
|
echo 'LDFLAGS=$LDFLAGS -lfontconfig -lfreetype -lz'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<$PLAN9/src/mkhdr
|
<$PLAN9/src/mkhdr
|
||||||
<|sh ../devdraw/mkwsysrules.sh
|
<|sh ../devdraw/mkwsysrules.sh
|
||||||
<|sh freetyperules.sh $WSYSTYPE
|
<|sh freetyperules.sh $WSYSTYPE $X11H
|
||||||
|
|
||||||
TARG=fontsrv
|
TARG=fontsrv
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue