summaryrefslogtreecommitdiff
path: root/development/luajit/luajit.SlackBuild
diff options
context:
space:
mode:
authorErik Falor <ewfalor@gmail.com>2017-07-29 08:01:11 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-07-29 08:01:11 +0700
commit274ab9714f58fa8acb8a707dd84d0bd31c7c2ed7 (patch)
treec9a670cac9162e3ee190ba3a5cff3482c96c00ed /development/luajit/luajit.SlackBuild
parent7625b0133528ce445c159f88a442442e70d7c954 (diff)
downloadslackbuilds-274ab9714f58fa8acb8a707dd84d0bd31c7c2ed7.tar.gz
development/luajit: Updated for version 2.0.5 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/luajit/luajit.SlackBuild')
-rw-r--r--development/luajit/luajit.SlackBuild17
1 files changed, 14 insertions, 3 deletions
diff --git a/development/luajit/luajit.SlackBuild b/development/luajit/luajit.SlackBuild
index ad683d6d1a..c50645e618 100644
--- a/development/luajit/luajit.SlackBuild
+++ b/development/luajit/luajit.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for luajit
-# Copyright 2013-2015, Andrew Tkalia <anddt@ukr.net>, Ukraine, Kyiv
+# Copyright 2017 Erik Falor <ewfalor@gmail.com>, Logan, Utah, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=luajit
-VERSION=${VERSION:-2.0.4}
+VERSION=${VERSION:-2.0.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -47,7 +47,12 @@ elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
+
+ # NOTE: -fPIC is intentionally missing here. This library's build system
+ # builds both a static and a dynamic library, and will use -fPIC as
+ # appropriate.
+
+ SLKCFLAGS="-O2"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
@@ -69,13 +74,19 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
make \
+ Q= \
PREFIX=/usr \
MULTILIB=lib${LIBDIRSUFFIX} \
INSTALL_LIB=/usr/lib${LIBDIRSUFFIX} \
INSTALL_MAN=/usr/man/man1
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
make install \
+ Q= \
DESTDIR=$PKG \
PREFIX=/usr \
MULTILIB=lib${LIBDIRSUFFIX} \