summaryrefslogtreecommitdiff
path: root/development/simavr
diff options
context:
space:
mode:
authorR. S. Ananda Murthy <rsamurti@gmail.com>2017-09-04 22:48:13 +0100
committerDavid Spencer <idlemoor@slackbuilds.org>2017-09-04 23:10:58 +0100
commitd4784bea4be672a74ba67d91899dc9428fa93462 (patch)
tree2df03a373f62ba16126ca3dc532422c25ef91034 /development/simavr
parente411e951dfa13738f065e0a3eec041fc5cab5e5b (diff)
downloadslackbuilds-d4784bea4be672a74ba67d91899dc9428fa93462.tar.gz
development/simavr: Updated for version git20170904.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development/simavr')
-rw-r--r--development/simavr/simavr.SlackBuild16
-rw-r--r--development/simavr/simavr.info6
2 files changed, 12 insertions, 10 deletions
diff --git a/development/simavr/simavr.SlackBuild b/development/simavr/simavr.SlackBuild
index 508a322e23..a8b989b385 100644
--- a/development/simavr/simavr.SlackBuild
+++ b/development/simavr/simavr.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=simavr
-VERSION=${VERSION:-git20170615}
+VERSION=${VERSION:-git20170904}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -41,16 +41,16 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ SLKCFLAGS="-g -O0 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ SLKCFLAGS="-g -O0 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
+ SLKCFLAGS="-g -O0 -fPIC"
LIBDIRSUFFIX="64"
else
- SLKCFLAGS="-O2"
+ SLKCFLAGS="-g -O0"
LIBDIRSUFFIX=""
fi
@@ -71,9 +71,11 @@ find -L . \
sed -i -e "s#\$(DESTDIR)/lib#\$(DESTDIR)/lib${LIBDIRSUFFIX}#" simavr/Makefile
sed -i -e "s#libdir=${exec_prefix}/lib#libdir=${exec_prefix}/lib${LIBDIRSUFFIX}#" \
- simavr/simavr.pc simavr/simavr-avr.pc
+ simavr/simavr.pc simavr/simavr-avr.pc simavr/simavrparts.pc
-make AVR_ROOT=/usr/avr RELEASE=1 build-simavr
+make clean
+make AVR_ROOT=/usr/avr \
+ CFLAGS="-Wall -Wextra $SLKCFLAGS -std=gnu99 -Wno-sign-compare -Wno-unused-parameter"
make PREFIX="/usr" DESTDIR="$PKG/usr" install
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
diff --git a/development/simavr/simavr.info b/development/simavr/simavr.info
index c2ed3fe06d..9c5013eaf5 100644
--- a/development/simavr/simavr.info
+++ b/development/simavr/simavr.info
@@ -1,8 +1,8 @@
PRGNAM="simavr"
-VERSION="git20170615"
+VERSION="git20170904"
HOMEPAGE="https://github.com/buserror/simavr"
-DOWNLOAD="https://www.dropbox.com/s/i4jymt5o0hi3e5y/simavr-git20170615.tar.gz"
-MD5SUM="651329385f68baedb0f74a363fa1d87d"
+DOWNLOAD="https://www.dropbox.com/s/wizo8j0fmcq14mr/simavr-git20170904.tar.gz?dl=0"
+MD5SUM="93f10b449440603adc3bcea298059ae3"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="avr-gcc avr-libc"