# 2001 05 23 Mouse # Unpack the .tar.gz and normalize permissions: gunzip < DIST/libpng-1.0.11.tar.gz | mtar xvfppSFF - mfind libpng-1.0.11 -type d -print | xargs chmod 775 mfind libpng-1.0.11 -type f -print | xargs chmod rw.rw.r-. mfind libpng-1.0.11 ! -type d ! -type f -ls # check there's nothing else there mfind libpng-1.0.11 ! -perm 07000/0 -ls # check there's nothing shady there # Do the rest relative to it: cd libpng-1.0.11 # Use the NetBSD makefile provided cp scripts/makefile.netbsd Makefile # Set up make args so the Makefile doesn't bother with lint, profiling, or # PIC/shared stuff, fix up its horrid guesses about install dirs, and # kludge around the damned stupid way bsd.*.mk insists on passing -o and # -g to install. makeargs="MKLINT=no MKPROFILE=no MKPIC=no LIBDIR=/local/.lib/libpng-1.0.11 MANDIR=/local/.man/libpng-1.0.11 INCSDIR=/local/.include/libpng-1.0.11 BINOWN=`id -u` BINGRP=`id -g` MANOWN=`id -u` MANGRP=`id -g`" # Build make $makeargs # For the paranoid make $makeargs test # Install (eval "$makeargs"; mkdir -p $LIBDIR $MANDIR/man3 $MANDIR/man5 $MANDIR/cat3 $MANDIR/cat5 $INCSDIR $MANDIR/html3 $MANDIR/html5) make $makeargs install make $makeargs includes (eval "$makeargs"; rm -rf $MANDIR/html3 $MANDIR/html5) # Clean up cd .. rm -rf libpng-1.0.11