DOCS="examples docs AUTHORS COPYING NEWS README TODO" IGNOREPATH=/boot:/dev:/home:/mnt:/proc:/root:/tmp:/var STRIPLIB=y STRIPBIN=y SETATTR=y # pkginfo VERSION=1.2.8 PROGNAME="gtkmm" # |-----handy-ruler------------------------------------------------------| SLACKDESC="\ gtkmm: gtkmm-$VERSION\n\ gtkmm:\n\ gtkmm: This package provides a C++ interface for GTK+ (the Gimp ToolKit)\n\ gtkmm: GUI library. Features include type safe callbacks, widgets that are\n\ gtkmm: extensible using inheritance and over 110 classes that can be freely\n\ gtkmm: combined to quickly create complex user interfaces.\n\ gtkmm:\n\ gtkmm:\n\ gtkmm:\n\ gtkmm:\n\ gtkmm:" # maintainer ARCH=i586 BUILD=3rob MAINTAINER="Robert Stan " SOURCE=ftp://ftp.gnome.org/pub/gnome/stable/sources/gtkmm/ LOCATION=ftp://ftp.linuxpackages.net/pub/Slackware-8/robert/gnome1/ # package name PKGNAME="gtkmm-${VERSION}-${ARCH}-${BUILD}" # compiler flags PKGOPT="-O2 -fomit-frame-pointer -march=$ARCH" compile() { tar xvyf $CWD/gtkmm-$VERSION.tar.bz2 cd gtkmm-$VERSION CFLAGS=$PKGOPT CXXFLAGS=$PKGOPT ./configure --prefix=/opt/gnome \ --sysconfdir=/etc/opt/gnome --enable-shared --disable-maintainer-mode \ --enable-docs || exit 1 CFLAGS=$PKGOPT CXXFLAGS=$PKGOPT make -j2 || exit 1 make -C docs/tutorial/ } install() { make install # replace examples.conf by a really simple one ( echo 'CXXBUILD = g++ -O2 $< -o $@ `gtkmm-config --cflags --libs` ' echo 'CXXCOMPILE = g++ -O2 -o $@ `gtkmm-config --cflags` ' echo 'CXXLINK = g++ -O2 -o $@ `gtkmm-config --libs`' ) > examples/examples.conf rm examples/Makefile.am examples/Makefile.in examples/Makefile rm examples/examples.conf.in # strip down the docs find docs/ \ \( -name 'Makefile' -or \ -name 'Makefile.in' -or \ -name 'Makefile.am' -or \ -name '*.m4' -or \ -name 'html' -or \ -name 'header' -or \ -name '*.h' \ \) -exec rm -rf {} \; mkdir -p /usr/doc/gtkmm-$VERSION cp -a $DOCS /usr/doc/gtkmm-$VERSION } attributes() { echo } special() { # Package description echo -e $SLACKDESC > $CTL/slack-desc echo -e $SLACKDESC > $CWD/$PKGNAME.txt } subpacks() { echo }