summaryrefslogtreecommitdiffstats
path: root/desktop/macopix
diff options
context:
space:
mode:
author Matteo Bernardini <ponce@slackbuilds.org>2012-09-23 19:02:18 +0200
committer Robby Workman <rworkman@slackbuilds.org>2012-09-24 22:53:32 -0500
commitbad9401718a3c0e21d63ecea63138ce64dbe2fe0 (patch)
tree9385a3f8c8930e7330774d9982c21ffaa62eb7cf /desktop/macopix
parenta095ad4809fa6f1494464982c0605d0c2abaf70c (diff)
downloadslackbuilds-bad9401718a3c0e21d63ecea63138ce64dbe2fe0.tar.gz
slackbuilds-bad9401718a3c0e21d63ecea63138ce64dbe2fe0.tar.xz
desktop/macopix: Disabled the use of windres from binutils.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'desktop/macopix')
-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 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 \