mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
desktop/macopix: Disabled the use of windres from binutils.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
a095ad4809
commit
bad9401718
1 changed files with 10 additions and 6 deletions
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue