summaryrefslogtreecommitdiff
path: root/development/ucblogo/ucblogo.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/ucblogo/ucblogo.SlackBuild')
-rw-r--r--development/ucblogo/ucblogo.SlackBuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/development/ucblogo/ucblogo.SlackBuild b/development/ucblogo/ucblogo.SlackBuild
index 0b5ebb94bb..070539b9c8 100644
--- a/development/ucblogo/ucblogo.SlackBuild
+++ b/development/ucblogo/ucblogo.SlackBuild
@@ -43,7 +43,6 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar zxvf $CWD/${PRGNAM}.tar.gz
-cat $CWD/01-makefiles.patch | patch -p0 || exit
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -52,17 +51,22 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+patch -p1 < $CWD/01-makefiles.patch
+sed -i -e 's:lib/logo:share/logo:' makefile.in
+# Fix build with gcc-5 (thanks to Arch Linux)
+patch -p1 < $CWD/ucblogo-6.0-include-math.h-earlier.patch
+
+CFLAGS="$SLKCFLAGS -std=gnu89" \
./configure \
--prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--with-x \
--build=$ARCH-slackware-linux
- make
- make install DESTDIR=$PKG
+make
+make install DESTDIR=$PKG
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