diff options
Diffstat (limited to 'development/cc65/cc65.SlackBuild')
-rw-r--r-- | development/cc65/cc65.SlackBuild | 46 |
1 files changed, 25 insertions, 21 deletions
diff --git a/development/cc65/cc65.SlackBuild b/development/cc65/cc65.SlackBuild index 604b6b9c17f3..43e5d6955cd9 100644 --- a/development/cc65/cc65.SlackBuild +++ b/development/cc65/cc65.SlackBuild @@ -6,8 +6,15 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20170129 bkw: +# - Update for v2.15_20170126, aka git 6878ede. Upstream hasn't done +# a release since 2013 or so, but there's been lots of development. +# Script modified enough that it can no longer build v2.13.3; use +# the one from SBo's 14.1 repo if you need the old version for some +# reason. Source is created from a git checkout, see git2targz.sh. + PRGNAM=cc65 -VERSION=${VERSION:-2.13.3} +VERSION=${VERSION:-2.15_20170126} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -40,33 +47,30 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT $PKG/usr/doc/$PRGNAM-$VERSION cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-sources-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz cd $PRGNAM-$VERSION chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; - -# external CFLAGS not honored, fix 'em with perlery: -find . -name gcc.mak | xargs perl -i -pe \ - 'if(/^CFLAGS\s*=/) { s/-g\b//; s/-O\d/'"$SLKCFLAGS"'/; }' - -make -j1 -f make/gcc.mak prefix=/usr +find . -type f -print0 | xargs -0 chmod 644 +find . -type d -print0 | xargs -0 chmod 755 -# for some reason, the install script isn't creating this directory in 2.13.3, -# though it used to in 2.13.2 -mkdir -p $PKG/usr/lib/cc65/tgi +# external CFLAGS not honored +sed -i "/^CFLAGS/s,-O,$SLKCFLAGS," src/Makefile -make -j1 -f make/gcc.mak install prefix=$PKG/usr docdir=$PKG/usr/doc/$PRGNAM-$VERSION +# If we wanted GNU info docs, we could 'make doc' instead of 'make -C doc +# html'. But, they're the same as the HTML pages, and they install into +# /usr/info with names like 'intro' and 'index', which would be confusing. +# It would be possible to patch things so we had 'cc65-intro', etc, +# but IMO not worth the effort. -# binaries already stripped, no man/info pages +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +make all prefix=/usr LDFLAGS=-Wl,-s +make -C doc html +make install prefix=$PKG/usr htmldir=$PKGDOC samplesdir=$PKGDOC/samples -# easier to cleanup afterwards than force 'make install' to do the docs right: -( cd $PKG/usr/doc/$PRGNAM-$VERSION && mv cc65/* . && rmdir cc65 ) +# binaries already stripped, no man pages -rmdir $PKG/usr/share # why is this even created? *shrug* +mkdir -p $PKGDOC +cp -a README* LICENSE $PKGDOC mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |