summaryrefslogtreecommitdiff
path: root/libraries/nv-codec-headers/nv-codec-headers.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/nv-codec-headers/nv-codec-headers.SlackBuild')
-rw-r--r--libraries/nv-codec-headers/nv-codec-headers.SlackBuild13
1 files changed, 5 insertions, 8 deletions
diff --git a/libraries/nv-codec-headers/nv-codec-headers.SlackBuild b/libraries/nv-codec-headers/nv-codec-headers.SlackBuild
index 810ad2304a..8665910e35 100644
--- a/libraries/nv-codec-headers/nv-codec-headers.SlackBuild
+++ b/libraries/nv-codec-headers/nv-codec-headers.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for nv-codec-headers
-# Copyright 2018-2019, Andrew Strong, Blue Mountains, Australia.
+# Copyright 2018-2020, Andrew Strong, Blue Mountains, Australia.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
PRGNAM=nv-codec-headers
# Note that the version number is contained
# within the file ffnvcodec.pc.in:
-VERSION=${VERSION:-9.0.18.2}
+VERSION=${VERSION:-9.1.23.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -33,6 +33,7 @@ if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -67,12 +68,8 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-# Adjust Makefile for Slackware needs:
-sed -i 's#PREFIX = /usr/local#PREFIX = /usr#' Makefile
-sed -i "s#LIBDIR = lib#LIBDIR = lib${LIBDIRSUFFIX}#" Makefile
-
-make
-make install DESTDIR=$PKG
+make PREFIX=/usr LIBDIR=lib${LIBDIRSUFFIX}
+make PREFIX=/usr LIBDIR=lib${LIBDIRSUFFIX} install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README $PKG/usr/doc/$PRGNAM-$VERSION