diff options
author | B. Watson <yalhcru@gmail.com> | 2017-02-14 16:28:42 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-02-18 07:54:15 +0700 |
commit | 19fae7d51cfbb92e5fdaf6b6aa259198655115be (patch) | |
tree | 28c920114dd6f6dd7ad9e7750cdac50957ea8afc /development/bmake/bmake.SlackBuild | |
parent | 759c8362aa905b7e3619bb936e80168587487d91 (diff) |
development/bmake: Updated for version 20170201, new maintainer.
Diffstat (limited to 'development/bmake/bmake.SlackBuild')
-rw-r--r-- | development/bmake/bmake.SlackBuild | 35 |
1 files changed, 26 insertions, 9 deletions
diff --git a/development/bmake/bmake.SlackBuild b/development/bmake/bmake.SlackBuild index 67d469161b8b..f12873885e2e 100644 --- a/development/bmake/bmake.SlackBuild +++ b/development/bmake/bmake.SlackBuild @@ -22,14 +22,23 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Now maintained by B. Watson <yalhcru@gmail.com> + +# 20170214 bkw: +# - update for v20170201 +# - i486 => i586 +# - clear MAKEFLAGS from environment. setting it doesn't actually +# give you a parallel build, but it does break the 'make test' +# portion of the bmake build. + PRGNAM=bmake -VERSION=${VERSION:-20160512} +VERSION=${VERSION:-20170201} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -40,8 +49,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -70,6 +79,17 @@ 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 {} \; +# Fix an implicit declaration warning that *probably* doesn't hurt anything, +# but might cause problems someday. +patch -p1 < $CWD/compilefix.diff + +# The usual MAKEFLAGS=-j8 or such, will break the build. bmake interprets +# MAKEFLAGS differently from GNU make. Plus, the main part of the build +# (actually compiling bmake) isn't done by make, so MAKEFLAGS would have +# no effect. +unset MAKEFLAGS +export MAKEFLAGS + DOCS="ChangeLog README LICENSE" # The current build system does not respect a large portion of @@ -100,11 +120,8 @@ find -L $PKG \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -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 - -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 +# Binary is already stripped. Only have one man page: +gzip -9 $PKG/usr/man/man1/$PRGNAM.1 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION head -n70 main.c > LICENSE |