# libplib/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. The standard "plib" (AKA "libplib") package builds several static (.a) library files. Static libraries have two major disadvantages: a. They waste disk space (in some cases, a large amount of disk space), because they're copied into all dependent applications. b. If you up- date a static library, you must rebuild all dependent applications, whether or not the API has changed. Therefore, this distro builds a single dynamic library file instead (not counting symbolic links). The file in question is named "libplib.so.1.0.1". #--------------------------------------------------------------------- 2. Packages that link against this version of "libplib" must be modi- fied. Specifically, the associated "build" procedures must specify "-lplib" instead of the "-l" switches normally used in this context. Additionally, it's possible that some of the packages in question may need to specify "-lplib" two or more times. #--------------------------------------------------------------------- [buildtimes] 00.01 hours (or 000.35 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo 7200 2GB RAM 00.03 hours (or 001.65 minutes) - HP EliteBook 8560w 32GB RAM 00.03 hours (or 001.70 minutes) - ThinkPad E540 i7 4x2 16GB RAM 00.14 hours (or 008.37 minutes) - Compaq 1.7 GHz Intel Pentium 4 512MB RAM #--------------------------------------------------------------------- [settings] dontfind = fltk11 license = See "license.txt" under installed tree tmpsize = 13M unpack = relaxed setpaths = fltk13 xorg #--------------------------------------------------------------------- [depends] actools fltk13 gawk grep perl sdl sed xorg #--------------------------------------------------------------------- [configure] MANBASE=$PKGDIR_PROD/man mkdir -p $MANBASE bash ./configure \ --prefix=$PKGDIR_PROD \ --build=$LACARCHBUILD \ --host=$LACARCHHOST \ --disable-dependency-tracking \ --enable-fnt \ --mandir=$MANBASE #--------------------------------------------------------------------- [build] DOCDIR=$PKGDIR_PROD/doc LIBDIR=$PKGDIR_PROD/lib XINCDIR=$PKGDIR_PROD/include/plib mkdir -p $DOCDIR $LIBDIR $XINCDIR perl $PKGDIR_SPECIAL/build/editmake-libplib make cp -p COPYING $DOCDIR/license.txt cp -p `find . -type f -name \*.h` $XINCDIR/ mkdir obj mv `find . -type f -name \*.o` obj/ cd obj BASENAME=libplib OBJDATA=$PKGDIR_SPECIAL/build/objdata.txt gcc -shared -Wl,-soname,$BASENAME.so.1 \ -o $BASENAME.so.1.0.1 \ `/usr/bin/sed "s|^ar cru lib[a-z0-9]*\.a | |" \ $OBJDATA` ln -nsf $BASENAME.so.1.0.1 $BASENAME.so.1.0 ln -nsf $BASENAME.so.1.0 $BASENAME.so.1 ln -nsf $BASENAME.so.1 $BASENAME.so mv $BASENAME.so* $LIBDIR/ #--------------------------------------------------------------------- # Original URLs. These URLs were valid at one point, but may have died # since then. If you download newer versions of tarballs [etc.], don't # delete the original versions, as you may not be able to replace # them. [urls] url_debian = http://packages.debian.org/unstable/source/plib url_home = http://plib.sourceforge.net/ url_lfs = n/a url_tarball = http://plib.sourceforge.net/dist/plib-1.8.5.tar.gz