IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=`grep VERSION= ../KDE.options | cut -f 2- -d =` PROGNAME="kdebindings $VERSION" DESC="\ kdebindings \n\ \n\ This package contains dcopc (DCOP bindings for C), dcopjava (DCOP \n\ bindings for JAVA), dcopperl (DCOP bindings for Perl), dcoppython \n\ (DCOP bindings for Python), kalyptus (C, Objective-C and Java bindings \n\ generator), kdec (KDE bindings for C), kdejava (KDE bindings for Java \n\ JNI to use Qt/KDE classes with Java), kdeobjc (KDE bindings for \n\ Objective-C), qtc (Qt bindings for C), qtjava (Qt bindings for Java \n\ JNI to use Qt/KDE classes with Java), qtobjc (Qt bindings for \n\ Objective-C), xparts (allows you to embed non-KDE apps as a KPart)." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/pub/gnu/kdebindings PKGNAME=kdebindings-$VERSION-s390-$BUILD TAG=OPT compile() { # Avoid a version number in .la files: if [ -d /usr/lib/qt ]; then QTDIR=/usr/lib/qt fi tar -yxvf $CWD/kdebindings-$VERSION.tar.bz2 cd kdebindings-$VERSION/ chown -R root.root . cat $CWD/x_QFont.cpp.diff | patch -p1 --backup --suffix=.orig cat $CWD/x_QHBox.cpp.diff | patch -p1 --backup --suffix=.orig cat $CWD/x_Qt.cpp.diff | patch -p1 --backup --suffix=.orig CFLAGS=-O2 CXXFLAGS=-O2 \ ./configure --prefix=/opt/kde \ --with-xinerama \ --disable-debug \ --program-prefix="" --program-suffix="" \ --build=s390-slackware-linux \ --host=s390-slackware-linux \ --target=s390-slackware-linux make } install() { make install DESTDIR=/package-kdebindings # Fix a stupid security exposure introduced by libtool being brain dead ( cd /package-kdebindings/opt/kde/lib sed -e 's%-L/tmp/[[:graph:]]*%%g' libkdec.la > libkdec.la.new cat libkdec.la.new > libkdec.la rm libkdec.la.new ) mkdir -p /package-kdebindings/usr/doc/kdebindings-$VERSION cp -a AUTHORS COPYING COPYING.LIB INSTALL NEWS README \ /package-kdebindings/usr/doc/kdebindings-$VERSION } special() { cd $PKG mv package-kdebindings/* ./ rmdir package-kdebindings cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-kdebindings/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }