Linux HOWTOs

About | Home | Search


HOWTO: plib
Description: Portable game library
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# plib 1.8.4
# ==========
# Prerequisites:
# gawk
# X: XFree86 or X.org
# OpenGL (part of X, ...in recent versions)

# This would not build against Slackware 10.2's 2.6 kernel-headers package
# from 'testing' but does build against the normal (2.4) one.

cd
test -f installed/plib-1.8.4.tar.gz && mv installed/plib-1.8.4.tar.gz .
test ! -f plib-1.8.4.tar.gz &&
 wget http://plib.sourceforge.net/dist/plib-1.8.4.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "plib-*" -exec rm -r {} \;
tar xzvf ~/plib-1.8.4.tar.gz
cd plib-1.8.4
test $UID = 0 && chown -R root:root .
./configure
make
su -c "make install ; ldconfig"
cd
mkdir -p -m 0700 installed
rm -f installed/plib-*.tar.*
mv plib-1.8.4.tar.gz installed/


# If you ever want to uninstall plib, this should do it:
cd
su
test -d src/plib-* && ( cd src/plib-* ; make uninstall )
test -d /usr/include/plib && rm -r /usr/include/plib
( cd /usr/lib ; rm -f libplibfnt.* libplibjs.* libplibnet.* libplibpsl.* \
 libplibpu.* libplibpuaux.* libplibpw.* libplibsg.* libplibsl.* \
 libplibssg.* libplibssgaux.* libplibul.* )
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "plib-*" -exec rm -r {} \;
rm -f ~/installed/plib-*.tar.*

Back to the list


Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>