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
# OpenGL (part of X, 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.

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 &&
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 .
su -c "make install ; ldconfig"
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:
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.* )
find ~/src -maxdepth 1 -type d -name "plib-*" -exec rm -r {} \;
rm -f ~/installed/plib-*.tar.*

Back to the list

Last updated: Wed, 29 Apr 2020 22:04:50 -0400
Jason Englander <jason at englanders dot us>