diff options
author | David Spencer <baildon.research@googlemail.com> | 2015-12-29 16:02:54 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-01-17 09:40:16 +0700 |
commit | 7d7ef4b6a3d3becdbf91353f291c1a24750c14f4 (patch) | |
tree | d761a773c16b8f082d7929e61305dee6c27a0bfb /development/ucblogo/ucblogo.SlackBuild | |
parent | 4cbe56e524e76048be3e343d5724eee65cccd0ae (diff) | |
download | slackbuilds-7d7ef4b6a3d3becdbf91353f291c1a24750c14f4.tar.gz |
development/ucblogo: Fixed build with gcc-5.3.0.
Moved /usr/lib/logo to /usr/share/logo.
Signed-off-by: David Spencer <baildon.research@googlemail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/ucblogo/ucblogo.SlackBuild')
-rw-r--r-- | development/ucblogo/ucblogo.SlackBuild | 12 |
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 |