summaryrefslogtreecommitdiffstats
path: root/libraries/nv-codec-headers
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/nv-codec-headers')
-rw-r--r--libraries/nv-codec-headers/README6
-rw-r--r--libraries/nv-codec-headers/nv-codec-headers.SlackBuild25
-rw-r--r--libraries/nv-codec-headers/nv-codec-headers.info8
-rw-r--r--libraries/nv-codec-headers/slack-desc4
4 files changed, 23 insertions, 20 deletions
diff --git a/libraries/nv-codec-headers/README b/libraries/nv-codec-headers/README
index e0fae6c4d4..3509867132 100644
--- a/libraries/nv-codec-headers/README
+++ b/libraries/nv-codec-headers/README
@@ -1,8 +1,8 @@
The FFmpeg version of Nvidia Codec SDK headers which are required
to interface with Nvidia's codec APIs. The purpose of these
headers is to allow hardware (GPU) encoding with suitable NVidia
-cards. This version corresponds to Video Codec SDK version 9.0.18
-and requires NVidia drivers version 418.30 or newer.
+cards. This version corresponds to Video Codec SDK version 11.1.5
+and requires NVidia drivers version 470.57.02 or newer.
There are 3 stages in the history of NVidia GPU encoding with FFmpeg:
@@ -15,4 +15,4 @@ There are 3 stages in the history of NVidia GPU encoding with FFmpeg:
to hold continuing work with these headers.
This nv-codec-headers script is for point 3 where the headers will
-need to be installed before compiling FFmpeg.
+need to be installed before compiling a recent FFmpeg.
diff --git a/libraries/nv-codec-headers/nv-codec-headers.SlackBuild b/libraries/nv-codec-headers/nv-codec-headers.SlackBuild
index 810ad2304a..1faff221c0 100644
--- a/libraries/nv-codec-headers/nv-codec-headers.SlackBuild
+++ b/libraries/nv-codec-headers/nv-codec-headers.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for nv-codec-headers
-# Copyright 2018-2019, Andrew Strong, Blue Mountains, Australia.
+# Copyright 2018-2023, Andrew Strong, Blue Mountains, Australia.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,12 +22,15 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
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:-11.1.5.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -37,7 +40,11 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -64,15 +71,11 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
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} install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README $PKG/usr/doc/$PRGNAM-$VERSION
@@ -82,4 +85,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/libraries/nv-codec-headers/nv-codec-headers.info b/libraries/nv-codec-headers/nv-codec-headers.info
index facc7168b7..47f4502ae1 100644
--- a/libraries/nv-codec-headers/nv-codec-headers.info
+++ b/libraries/nv-codec-headers/nv-codec-headers.info
@@ -1,8 +1,8 @@
PRGNAM="nv-codec-headers"
-VERSION="9.0.18.2"
-HOMEPAGE="http://git.videolan.org/?p=ffmpeg/nv-codec-headers.git;a=summary"
-DOWNLOAD="http://www.andrews-corner.org/downloads/nv-codec-headers-9.0.18.2.tar.gz"
-MD5SUM="1973f4c485d01795ba10863b71df680d"
+VERSION="11.1.5.2"
+HOMEPAGE="https://github.com/FFmpeg/nv-codec-headers"
+DOWNLOAD="https://github.com/FFmpeg/nv-codec-headers/releases/download/n11.1.5.2/nv-codec-headers-11.1.5.2.tar.gz"
+MD5SUM="94fd5479bf934595530d9bfae93c1c55"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
diff --git a/libraries/nv-codec-headers/slack-desc b/libraries/nv-codec-headers/slack-desc
index 6a14b897f9..8187a52c58 100644
--- a/libraries/nv-codec-headers/slack-desc
+++ b/libraries/nv-codec-headers/slack-desc
@@ -9,11 +9,11 @@
nv-codec-headers: nv-codec-headers (FFmpeg version of Nvidia Codec SDK headers)
nv-codec-headers:
nv-codec-headers: FFmpeg version of headers required to interface with Nvidia's
-nv-codec-headers: codec APIs. Corresponds to Video Codec SDK version 9.0.18.
+nv-codec-headers: codec APIs. Corresponds to Video Codec SDK version 11.1.5.
nv-codec-headers:
nv-codec-headers:
nv-codec-headers:
-nv-codec-headers: http://git.videolan.org/?p=ffmpeg/nv-codec-headers.git;a=summary
+nv-codec-headers: https://github.com/FFmpeg/nv-codec-headers
nv-codec-headers:
nv-codec-headers:
nv-codec-headers: