Initial commit
This commit is contained in:
4
xf86-video-intel/doinst.sh
Normal file
4
xf86-video-intel/doinst.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
( cd usr/lib64 ; rm -rf libIntelXvMC.so )
|
||||
( cd usr/lib64 ; ln -sf libIntelXvMC.so.1.0.0 libIntelXvMC.so )
|
||||
( cd usr/lib64 ; rm -rf libIntelXvMC.so.1 )
|
||||
( cd usr/lib64 ; ln -sf libIntelXvMC.so.1.0.0 libIntelXvMC.so.1 )
|
||||
49
xf86-video-intel/get-xf86-video-intel.sh
Normal file
49
xf86-video-intel/get-xf86-video-intel.sh
Normal file
@@ -0,0 +1,49 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Copyright 2016, 2020 Patrick J. Volkerding, Sebeka, Minnesota, USA
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
# permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1. Redistributions of this script must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# Pull a stable branch + patches
|
||||
BRANCH=${1:-master}
|
||||
|
||||
# Clear download area:
|
||||
rm -rf xf86-video-intel
|
||||
|
||||
# Clone repository:
|
||||
git clone https://gitlab.freedesktop.org/xorg/driver/xf86-video-intel/
|
||||
|
||||
# checkout $BRANCH:
|
||||
( cd xf86-video-intel
|
||||
git checkout $BRANCH || exit 1
|
||||
)
|
||||
|
||||
HEADISAT="$( cd xf86-video-intel && git log -1 --format=%h )"
|
||||
DATE="$( cd xf86-video-intel && git log -1 --format=%cd --date=format:%Y%m%d )"
|
||||
LONGDATE="$( cd xf86-video-intel && git log -1 --format=%cd --date=format:%c )"
|
||||
# Cleanup. We're not packing up the whole git repo.
|
||||
( cd xf86-video-intel && find . -type d -name ".git*" -exec rm -rf {} \; 2> /dev/null )
|
||||
mv xf86-video-intel xf86-video-intel-${DATE}_${HEADISAT}
|
||||
tar cf xf86-video-intel-${DATE}_${HEADISAT}.tar xf86-video-intel-${DATE}_${HEADISAT}
|
||||
xz -9 -f xf86-video-intel-${DATE}_${HEADISAT}.tar
|
||||
rm -rf xf86-video-intel-${DATE}_${HEADISAT}
|
||||
touch -d "$LONGDATE" xf86-video-intel-${DATE}_${HEADISAT}.tar.xz
|
||||
echo
|
||||
echo "xf86-video-intel branch $BRANCH with HEAD at $HEADISAT packaged as xf86-video-intel-${DATE}_${HEADISAT}.tar.xz"
|
||||
echo
|
||||
19
xf86-video-intel/slack-desc
Normal file
19
xf86-video-intel/slack-desc
Normal file
@@ -0,0 +1,19 @@
|
||||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
xf86-video-intel: xf86-video-intel (X.org graphics driver for Intel graphics)
|
||||
xf86-video-intel:
|
||||
xf86-video-intel: xf86-video-intel is part of X11.
|
||||
xf86-video-intel:
|
||||
xf86-video-intel: For more information about the X.Org Foundation (the providers of the
|
||||
xf86-video-intel: X.Org implementation of the X Window System), see their website:
|
||||
xf86-video-intel:
|
||||
xf86-video-intel: http://www.x.org
|
||||
xf86-video-intel:
|
||||
xf86-video-intel:
|
||||
xf86-video-intel:
|
||||
112
xf86-video-intel/xf86-video-intel.SlackBuild
Executable file
112
xf86-video-intel/xf86-video-intel.SlackBuild
Executable file
@@ -0,0 +1,112 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Slackware build script for xf86-video-intel
|
||||
|
||||
# Copyright 2007-2018 Patrick J. Volkerding, Sebeka, MN, USA
|
||||
# Copyright 2022 Sergei Fedosoff <eleksir@gmail.com>
|
||||
#
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
# permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1. Redistributions of this script must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=xf86-video-intel
|
||||
VERSION=${VERSION:-20230201_b74b67f0}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_EXs}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/EXs}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686 -fcommon"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686 -fcommon"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC -fcommon"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xf $CWD/$PRGNAM-$VERSION.tar.xz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
-o -perm 511 \) -exec chmod 755 {} \+ -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
|
||||
|
||||
# xf86-video-intel requires SSE2 instructions on 32-bit x86:
|
||||
ALTCFLAGS="$SLKCFLAGS"
|
||||
case "$( uname -m )" in
|
||||
i?86) ALTCFLAGS="-O2 -march=i686 -mtune=i686 -msse2" ; PKGARCH=i686 ;;
|
||||
esac
|
||||
|
||||
CFLAGS="$ALTCFLAGS" \
|
||||
CXXFLAGS="$ALTCFLAGS" \
|
||||
./autogen.sh \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--infodir=/usr/info \
|
||||
--mandir=/usr/man \
|
||||
--docdir=/usr/doc/${PKGNAME}-${MODULAR_PACKAGE_VERSION} \
|
||||
--disable-static \
|
||||
--enable-kms-only \
|
||||
--enable-uxa \
|
||||
--with-default-dri=3 \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make -j$(nproc)
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
install -Dpm 0755 tools/dri3info DESTDIR=$PKG/usr/bin/dri3info
|
||||
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp AUTHORS COPYING NEWS README $PKG/usr/doc/$PRGNAM-$VERSION/
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
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}
|
||||
Reference in New Issue
Block a user