aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/macopix/macopix.SlackBuild16
1 files changed, 10 insertions, 6 deletions
diff --git a/desktop/macopix/macopix.SlackBuild b/desktop/macopix/macopix.SlackBuild
index a2fd3922974c5..91901c21d3da8 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 \