Commit e483337a authored by supechicken666's avatar supechicken666 Committed by GitHub

Add files via upload

parent 7d50880e
# following https://github.com/archlinux/svntogit-packages/blob/packages/xf86-video-intel/trunk/PKGBUILD
require 'package'
class Xorg_intel_driver < Package
description 'The Xorg Intel Driver package contains the X.Org Video Driver for Intel integrated video chips including 8xx, 9xx, Gxx, Qxx, HD, Iris, and Iris Pro graphics processors.'
homepage 'https://01.org/linuxgraphics/'
version '3.7.8'
@_commit = '31486f40f8e8f8923ca0799aea84b58799754564'
version "2.99.917+916+g#{@_commit[0..8]}"
compatibility 'x86_64'
case ARCH
when 'x86_64'
source_url 'https://github.com/endlessm/xf86-video-intel/archive/Release_3.7.8.tar.gz'
source_sha256 '411d644cba1a46e9fd8143a969edc70a67ae18f15bba333f24ed8b87716f93fe'
depends_on 'xorg_server' => :build
end
binary_url ({
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/xorg_intel_driver-3.7.8-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
x86_64: '5bd9bdf5b812ee93a39809cd3ba7e05cd71251280d8049ac07deee29249f3fde',
})
source_url "https://gitlab.freedesktop.org/xorg/driver/xf86-video-intel/-/archive/#{@_commit}/xf86-video-intel-#{@_commit}.tar.gz"
source_sha256 '7936e8ddc2f09f272584cc9e9a2d265e9ab435f645ccd12085cd56291fa70653'
depends_on 'xorg_server'
depends_on 'libxvmc' => :build
def self.build
# don't try to use meson, it may make your system run out of memory and reboot
system './autogen.sh'
system './configure',
"--prefix=#{CREW_PREFIX}",
"--libdir=#{CREW_LIB_PREFIX}",
'--enable-shared',
'--disable-static',
'--enable-kms-only',
'--enable-uxa'
system 'make'
system "env CFLAGS='-flto=auto -lXv' CXXFLAGS='-flto=auto -lXv' \
LDFLAGS='-flto=auto -lXv' \
./configure \
#{CREW_OPTIONS} \
--libexecdir=#{CREW_LIB_PREFIX} \
--with-default-dri=3"
#system "env LDFLAGS='-lXv' \
# meson #{CREW_MESON_LTO_OPTIONS} \
# -Dwith-default-dri=3 \
# builddir"
#
#system 'meson configure builddir'
#system "ninja -l #{CREW_NPROC.to_i/2} -C builddir"
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install-strip'
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
#system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment