From bad9401718a3c0e21d63ecea63138ce64dbe2fe0 Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Sun, 23 Sep 2012 19:02:18 +0200 Subject: desktop/macopix: Disabled the use of windres from binutils. Signed-off-by: Matteo Bernardini --- desktop/macopix/macopix.SlackBuild | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'desktop/macopix') diff --git a/desktop/macopix/macopix.SlackBuild b/desktop/macopix/macopix.SlackBuild index a2fd392297..91901c21d3 100644 --- a/desktop/macopix/macopix.SlackBuild +++ b/desktop/macopix/macopix.SlackBuild @@ -53,6 +53,13 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# This is because of the new binutils (we have to cheat on configure) +sed -i \ + -e "s|^\ \ HAVE_WINDRES_FALSE='#'| HAVE_WINDRES_FALSE=|" \ + -e "s|^\ \ HAVE_WINDRES_TRUE=$| HAVE_WINDRES_TRUE='#'|" \ + configure + +LDFLAGS="-lX11" \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -68,14 +75,11 @@ make make install DESTDIR=$PKG mkdir -p $PKG/usr/share/macopix/{pixmap,sounds} -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -) - +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ -- cgit v1.2.3-65-gdbad