misc/zyGrib: Build bump, added configure files in the source.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
This commit is contained in:
parent
eababad846
commit
c0f9bf5e5d
|
@ -1,8 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for appname
|
||||
# Slackware build script for zyGrib
|
||||
|
||||
# Copyright 2011 Chris Abela, Malta
|
||||
# Copyright 2011,2012 Chris Abela, Malta
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -24,7 +24,7 @@
|
|||
|
||||
PRGNAM=zyGrib
|
||||
VERSION=${VERSION:-5.0.6}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -40,9 +40,33 @@ TMP=${TMP:-/tmp/SBo}
|
|||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
# zyGrib lacks configure scripts so the options are limited
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
make_configure () {
|
||||
for DIR in $@; do
|
||||
cd $DIR
|
||||
mv Makefile Makefile.in
|
||||
autoscan
|
||||
mv configure.scan configure.in
|
||||
autoheader
|
||||
autoconf
|
||||
cd - > /dev/null
|
||||
done
|
||||
}
|
||||
|
||||
set -e
|
||||
|
||||
# In case the source was fetched with wget or some other downloader:
|
||||
SRCTAR=$PRGNAM-$VERSION.tgz
|
||||
|
@ -62,11 +86,29 @@ find . \
|
|||
-exec chmod 644 {} \;
|
||||
|
||||
# src/zyGrib.pro is looking for the wrong qwt library
|
||||
sed -i 's/lqwt-qt4/lqwt/' src/zyGrib.pro
|
||||
sed -i 's/lqwt-qt4/lqwt/' src/zyGrib.pro
|
||||
# src/bzip2/Makefile is looking in the wrong place for qmake.conf
|
||||
sed -i 's/share\/qt4/lib\/qt/1' src/bzip2/Makefile
|
||||
|
||||
# Makefile installs a good local installation, but we need a system installation
|
||||
patch -p0 < $CWD/Makefile.patch
|
||||
|
||||
# Prepare the source for configure
|
||||
ln -s src/proj-4.6.0/install-sh .
|
||||
make_configure . src src/bzip2 src/zlib-1.2.3
|
||||
find ./src/zlib-1.2.3 -name Makefile -exec mv {} {}.in \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
# See http://www.zygrib.org/forum/viewtopic.php?f=3&t=221&view=print
|
||||
[ "$ARCH" = x86_64 ] && make veryclean
|
||||
make
|
||||
|
|
|
@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
|
|||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Chris Abela"
|
||||
EMAIL="kristofru@gmail.com"
|
||||
APPROVED="Niels Horn"
|
||||
APPROVED="Erik Hanson"
|
||||
|
|
Loading…
Reference in New Issue