mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-23 17:33:34 +08:00
update graphics stack
This commit is contained in:
parent
16345e041e
commit
a48b6b0f2e
@ -2,22 +2,29 @@
|
||||
|
||||
_pkgsourcename=catalyst-utils
|
||||
pkgname=(lib32-$_pkgsourcename 'lib32-catalyst-libgl' 'lib32-opencl-catalyst')
|
||||
pkgver=14.4
|
||||
pkgver=14.9
|
||||
pkgrel=1
|
||||
_amdver=14.10.1006.1001
|
||||
_amdver=14.201
|
||||
url="http://www.amd.com"
|
||||
pkgdesc="AMD/ATI catalyst driver utilities and libraries. (32-bit)"
|
||||
arch=(x86_64)
|
||||
license=('custom')
|
||||
options=('staticlibs' 'libtool' '!strip' '!upx')
|
||||
source=(
|
||||
http://www2.ati.com/drivers/linux/amd-catalyst-${pkgver/./-}-rev2-linux-x86-x86-64-may6.zip
|
||||
# http://www2.ati.com/drivers/linux/amd-catalyst-${pkgver/./-}-rev2-linux-x86-x86-64-may6.zip
|
||||
http://archive.ubuntu.com/ubuntu/pool/restricted/f/fglrx-installer/fglrx-installer_14.201.orig.tar.gz
|
||||
"lib32-catalyst.sh")
|
||||
md5sums=('6e9483e8d34aea68af22fbb70116275f'
|
||||
md5sums=('ff3a7604051971de617a5f4703826ec6'
|
||||
'af7fb8ee4fc96fd54c5b483e33dc71c4')
|
||||
|
||||
build() {
|
||||
/bin/sh ./fglrx-${_amdver}/amd-driver-installer-${_amdver}-x86.x86_64.run --extract archive_files
|
||||
## Unpack archive
|
||||
# /bin/sh ./amd-catalyst-${pkgver}-linux-x86.x86_64.run --extract archive_files
|
||||
# /bin/sh ./fglrx-${_amdver}/amd-driver-installer-${_amdver}-x86.x86_64.run --extract archive_files
|
||||
mkdir common
|
||||
mv etc lib usr common
|
||||
mkdir archive_files
|
||||
mv arch common xpic xpic_64a archive_files
|
||||
}
|
||||
|
||||
package_lib32-catalyst-libgl() {
|
||||
|
@ -3,8 +3,8 @@
|
||||
|
||||
_pkgbasename=libdrm
|
||||
pkgname=lib32-$_pkgbasename
|
||||
pkgver=2.4.54
|
||||
pkgrel=3
|
||||
pkgver=2.4.58
|
||||
pkgrel=1
|
||||
pkgdesc="Userspace interface to kernel DRM services (32-bit)"
|
||||
arch=(x86_64)
|
||||
license=('custom')
|
||||
@ -12,10 +12,8 @@ depends=('lib32-libpciaccess' 'lib32-glibc' $_pkgbasename=$pkgver)
|
||||
makedepends=(gcc-multilib)
|
||||
checkdepends=('lib32-cairo')
|
||||
url="http://dri.freedesktop.org/"
|
||||
source=("http://dri.freedesktop.org/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.bz2"
|
||||
'no-pthread-stubs.patch')
|
||||
sha1sums=('b73d69b42800755ed9dfd8aa9a906fe941cfbb7e'
|
||||
'1602cd40f42238935a3c8d8aebd1fc0afb974379')
|
||||
source=(http://dri.freedesktop.org/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.bz2)
|
||||
sha256sums=('b155fae6b9c9a3b02ef8b77f58c7c219194c996a4018dc55ba66c03996a365dd')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
||||
@ -24,17 +22,13 @@ build() {
|
||||
export CXX="g++ -m32"
|
||||
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
||||
|
||||
patch -p1 -i "${srcdir}/no-pthread-stubs.patch"
|
||||
|
||||
# pthread is useless in Linux
|
||||
sed -i "/pthread-stubs/d" configure.ac
|
||||
autoreconf --force --install
|
||||
|
||||
./configure --prefix=/usr --libdir=/usr/lib32 \
|
||||
--enable-udev \
|
||||
--enable-intel \
|
||||
--enable-radeon \
|
||||
--enable-vmwgfx-experimental-api \
|
||||
--enable-nouveau-experimental-api \
|
||||
--enable-omap-experimental-api \
|
||||
--enable-exynos-experimental-api
|
||||
--enable-udev
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
|
@ -1,104 +0,0 @@
|
||||
diff -Nur libdrm-2.4.34.orig/configure.ac libdrm-2.4.34/configure.ac
|
||||
--- libdrm-2.4.34.orig/configure.ac 2012-05-12 14:54:06.375335490 +0000
|
||||
+++ libdrm-2.4.34/configure.ac 2012-05-12 14:54:32.075142065 +0000
|
||||
@@ -47,10 +47,6 @@
|
||||
LT_INIT([disable-static])
|
||||
|
||||
|
||||
-PKG_CHECK_MODULES(PTHREADSTUBS, pthread-stubs)
|
||||
-AC_SUBST(PTHREADSTUBS_CFLAGS)
|
||||
-AC_SUBST(PTHREADSTUBS_LIBS)
|
||||
-
|
||||
pkgconfigdir=${libdir}/pkgconfig
|
||||
AC_SUBST(pkgconfigdir)
|
||||
AC_ARG_ENABLE([udev],
|
||||
diff -Nur libdrm-2.4.34.orig/intel/Makefile.am libdrm-2.4.34/intel/Makefile.am
|
||||
--- libdrm-2.4.34.orig/intel/Makefile.am 2012-05-12 14:54:06.372001955 +0000
|
||||
+++ libdrm-2.4.34/intel/Makefile.am 2012-05-12 14:55:24.164745055 +0000
|
||||
@@ -26,7 +26,6 @@
|
||||
$(WARN_CFLAGS) \
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_srcdir)/intel \
|
||||
- $(PTHREADSTUBS_CFLAGS) \
|
||||
$(PCIACCESS_CFLAGS) \
|
||||
$(VALGRIND_CFLAGS) \
|
||||
-I$(top_srcdir)/include/drm
|
||||
@@ -35,7 +34,6 @@
|
||||
libdrm_intel_ladir = $(libdir)
|
||||
libdrm_intel_la_LDFLAGS = -version-number 1:0:0 -no-undefined
|
||||
libdrm_intel_la_LIBADD = ../libdrm.la \
|
||||
- @PTHREADSTUBS_LIBS@ \
|
||||
@PCIACCESS_LIBS@ \
|
||||
@CLOCK_LIB@
|
||||
|
||||
diff -Nur libdrm-2.4.34.orig/nouveau/Makefile.am libdrm-2.4.34/nouveau/Makefile.am
|
||||
--- libdrm-2.4.34.orig/nouveau/Makefile.am 2012-05-12 14:54:06.331998148 +0000
|
||||
+++ libdrm-2.4.34/nouveau/Makefile.am 2012-05-12 14:56:00.941132085 +0000
|
||||
@@ -2,14 +2,13 @@
|
||||
$(WARN_CFLAGS) \
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_srcdir)/nouveau \
|
||||
- $(PTHREADSTUBS_CFLAGS) \
|
||||
-I$(top_srcdir)/include/drm \
|
||||
-DDEBUG
|
||||
|
||||
libdrm_nouveau_la_LTLIBRARIES = libdrm_nouveau.la
|
||||
libdrm_nouveau_ladir = $(libdir)
|
||||
libdrm_nouveau_la_LDFLAGS = -version-number 2:0:0 -no-undefined
|
||||
-libdrm_nouveau_la_LIBADD = ../libdrm.la @PTHREADSTUBS_LIBS@
|
||||
+libdrm_nouveau_la_LIBADD = ../libdrm.la
|
||||
|
||||
libdrm_nouveau_la_SOURCES = nouveau.c \
|
||||
pushbuf.c \
|
||||
diff -Nur libdrm-2.4.34.orig/radeon/Makefile.am libdrm-2.4.34/radeon/Makefile.am
|
||||
--- libdrm-2.4.34.orig/radeon/Makefile.am 2012-05-12 14:54:06.365334765 +0000
|
||||
+++ libdrm-2.4.34/radeon/Makefile.am 2012-05-12 14:55:48.084557437 +0000
|
||||
@@ -26,13 +26,12 @@
|
||||
$(WARN_CFLAGS) \
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_srcdir)/radeon \
|
||||
- $(PTHREADSTUBS_CFLAGS) \
|
||||
-I$(top_srcdir)/include/drm
|
||||
|
||||
libdrm_radeon_la_LTLIBRARIES = libdrm_radeon.la
|
||||
libdrm_radeon_ladir = $(libdir)
|
||||
libdrm_radeon_la_LDFLAGS = -version-number 1:0:1 -no-undefined
|
||||
-libdrm_radeon_la_LIBADD = ../libdrm.la @PTHREADSTUBS_LIBS@
|
||||
+libdrm_radeon_la_LIBADD = ../libdrm.la
|
||||
|
||||
libdrm_radeon_la_SOURCES = \
|
||||
radeon_bo_gem.c \
|
||||
--- libdrm-2.4.40/omap/Makefile.am 2012-06-14 23:32:50.000000000 +0200
|
||||
+++ libdrm-2.4.40/omap/Makefile.am 2012-11-06 19:24:44.183224706 +0100
|
||||
@@ -2,13 +2,12 @@
|
||||
$(WARN_CFLAGS) \
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_srcdir)/omap \
|
||||
- $(PTHREADSTUBS_CFLAGS) \
|
||||
-I$(top_srcdir)/include/drm
|
||||
|
||||
libdrm_omap_la_LTLIBRARIES = libdrm_omap.la
|
||||
libdrm_omap_ladir = $(libdir)
|
||||
libdrm_omap_la_LDFLAGS = -version-number 1:0:0 -no-undefined
|
||||
-libdrm_omap_la_LIBADD = ../libdrm.la @PTHREADSTUBS_LIBS@
|
||||
+libdrm_omap_la_LIBADD = ../libdrm.la
|
||||
|
||||
libdrm_omap_la_SOURCES = omap_drm.c
|
||||
|
||||
--- libdrm-2.4.40/exynos/Makefile.am 2012-06-14 23:32:50.000000000 +0200
|
||||
+++ libdrm-2.4.40/exynos/Makefile.am 2012-11-06 19:26:01.975323106 +0100
|
||||
@@ -2,13 +2,12 @@
|
||||
$(WARN_CFLAGS) \
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_srcdir)/exynos \
|
||||
- $(PTHREADSTUBS_CFLAGS) \
|
||||
-I$(top_srcdir)/include/drm
|
||||
|
||||
libdrm_exynos_la_LTLIBRARIES = libdrm_exynos.la
|
||||
libdrm_exynos_ladir = $(libdir)
|
||||
libdrm_exynos_la_LDFLAGS = -version-number 1:0:0 -no-undefined
|
||||
-libdrm_exynos_la_LIBADD = ../libdrm.la @PTHREADSTUBS_LIBS@
|
||||
+libdrm_exynos_la_LIBADD = ../libdrm.la
|
||||
|
||||
libdrm_exynos_la_SOURCES = exynos_drm.c
|
||||
|
@ -5,30 +5,27 @@
|
||||
|
||||
_pkgbasename=libxcb
|
||||
pkgname=lib32-$_pkgbasename
|
||||
pkgver=1.10
|
||||
pkgver=1.11
|
||||
pkgrel=1
|
||||
pkgdesc="X11 client-side library (32-bit)"
|
||||
arch=(x86_64)
|
||||
url="http://xcb.freedesktop.org/"
|
||||
depends=('lib32-libxdmcp' 'lib32-libxau'
|
||||
$_pkgbasename=$pkgver)
|
||||
makedepends=('pkg-config' 'libxslt' 'python2' 'gcc-multilib' 'libtool-multilib'
|
||||
makedepends=('pkg-config' 'libxslt' 'python3' 'gcc-multilib' 'libtool-multilib'
|
||||
'autoconf')
|
||||
conflicts=('libx11<1.1.99.2')
|
||||
options=('!libtool')
|
||||
license=('custom')
|
||||
source=(${url}/dist/${_pkgbasename}-${pkgver}.tar.bz2
|
||||
libxcb-1.1-no-pthread-stubs.patch
|
||||
Ensure-xcb-owns-socket-and-no-other-threads-are-writ.patch)
|
||||
sha256sums=('98d9ab05b636dd088603b64229dd1ab2d2cc02ab807892e107d674f9c3f2d5b5'
|
||||
'748ed83af60468a0eb6785222e4a5ca589d28f20b9bfc60d5936ec93b8eef356'
|
||||
'47de1025bb16446b9e69ff7b6b262a0a1af957d350afe897421b9105c89befeb')
|
||||
libxcb-1.1-no-pthread-stubs.patch)
|
||||
sha256sums=('03635d70045b9ede90778e67516135828a57de87ac508f987024f43c03620ff7'
|
||||
'3923bcb1930b851012968435909597d8d5251c72153511cb2982636c97100cc3')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
||||
patch -Np1 -i ../libxcb-1.1-no-pthread-stubs.patch
|
||||
|
||||
patch -Np1 -i "${srcdir}/libxcb-1.1-no-pthread-stubs.patch"
|
||||
autoreconf -vfi
|
||||
patch -Np1 -i ../Ensure-xcb-owns-socket-and-no-other-threads-are-writ.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
@ -37,9 +34,10 @@ build() {
|
||||
export CC="gcc -m32"
|
||||
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
||||
|
||||
PYTHON=/usr/bin/python2 ./autogen.sh \
|
||||
PYTHON=/usr/bin/python3 ./autogen.sh \
|
||||
--prefix=/usr \
|
||||
--enable-xinput \
|
||||
--enable-xkb \
|
||||
--libdir=/usr/lib32 \
|
||||
--disable-static
|
||||
make
|
||||
@ -47,10 +45,11 @@ build() {
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
||||
|
||||
make DESTDIR="${pkgdir}" install
|
||||
|
||||
rm -rf "${pkgdir}"/usr/{include,share}
|
||||
|
||||
mkdir -p "$pkgdir/usr/share/licenses"
|
||||
ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
|
||||
ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
# Checks for pkg-config packages
|
||||
PKG_CHECK_MODULES(XCBPROTO, xcb-proto >= 1.10)
|
||||
PKG_CHECK_MODULES(XCBPROTO, xcb-proto >= 1.11)
|
||||
-NEEDED="pthread-stubs xau >= 0.99.2"
|
||||
+NEEDED="xau >= 0.99.2"
|
||||
PKG_CHECK_MODULES(NEEDED, $NEEDED)
|
||||
|
@ -2,16 +2,16 @@
|
||||
|
||||
_pkgbasename=libxkbcommon
|
||||
pkgname=lib32-$_pkgbasename
|
||||
pkgver=0.4.2
|
||||
pkgver=0.5.0
|
||||
pkgrel=1
|
||||
pkgdesc='Keyboard handling library using XKB data'
|
||||
pkgdesc="Keyboard handling library using XKB data"
|
||||
arch=('x86_64')
|
||||
url='http://xkbcommon.org/'
|
||||
url="http://xkbcommon.org/"
|
||||
license=('custom')
|
||||
depends=('lib32-glibc' $_pkgbasename=$pkgver )
|
||||
depends=(xkeyboard-config 'lib32-glibc' $_pkgbasename=$pkgver )
|
||||
makedepends=('lib32-libxcb' 'xorg-util-macros')
|
||||
source=("http://xkbcommon.org/download/${pkgname#*-}-${pkgver}.tar.xz")
|
||||
sha256sums=('a0fc71b07eeddba4af62bd709e24cec219778bb6871384aa850b2f5798a48957')
|
||||
sha256sums=('90bd7824742b9a6f52a6cf80e2cadd6f5349cf600a358d08260772615b89d19c')
|
||||
|
||||
build() {
|
||||
cd ${_pkgbasename}-${pkgver}
|
||||
@ -20,7 +20,7 @@ build() {
|
||||
export CXX='g++ -m32'
|
||||
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
|
||||
|
||||
./configure --prefix='/usr' --libdir='/usr/lib32' --disable-{docs,static,x11}
|
||||
./configure --prefix='/usr' --libdir='/usr/lib32' --disable-{docs,static}
|
||||
make
|
||||
}
|
||||
|
||||
|
@ -6,33 +6,26 @@
|
||||
# adjusted for Chakra
|
||||
|
||||
pkgname=('lib32-llvm' 'lib32-llvm-libs')
|
||||
pkgver=3.4.1
|
||||
_base_ver=3.4
|
||||
_gcc_ver=4.9.0
|
||||
pkgver=3.5.0
|
||||
pkgrel=1
|
||||
arch=('x86_64')
|
||||
url="http://llvm.org/"
|
||||
license=('custom:University of Illinois/NCSA Open Source License')
|
||||
makedepends=('lib32-libffi' 'lib32-zlib' 'python2' "gcc-multilib=${_gcc_ver}")
|
||||
|
||||
source=(http://llvm.org/releases/$pkgver/llvm-$pkgver.src.tar.gz{,.sig}
|
||||
http://llvm.org/releases/$_base_ver/compiler-rt-$_base_ver.src.tar.gz{,.sig})
|
||||
sha256sums=('7d28bb6eca243a2bb6d65a05743ab915b57958a7770277364e93534b63eef93a'
|
||||
SKIP
|
||||
'f37c89b1383ce462d47537a0245ac798600887a9be9f63073e16b79ed536ab5c'
|
||||
SKIP)
|
||||
makedepends=('lib32-libffi' 'lib32-zlib' 'python2' 'gcc-multilib')
|
||||
options=('staticlibs')
|
||||
source=(http://llvm.org/releases/$pkgver/llvm-$pkgver.src.tar.xz{,.sig}
|
||||
http://llvm.org/releases/$pkgver/compiler-rt-$pkgver.src.tar.xz{,.sig}
|
||||
llvm-3.5.0-force-link-pass.o.patch)
|
||||
sha256sums=('28e199f368ef0a4666708f31c7991ad3bcc3a578342b0306526dd35f07595c03'
|
||||
'SKIP'
|
||||
'a4b3e655832bf8d9a357ea2c771db347237460e131988cbb96cda40ff39a8136'
|
||||
'SKIP'
|
||||
'5702053503d49448598eda1b8dc8c263f0df9ad7486833273e3987b5dec25a19')
|
||||
|
||||
prepare() {
|
||||
# Change directory names to release names so we don't need to change the
|
||||
# whole PKGBUILD
|
||||
mv llvm-$pkgver{.src,}
|
||||
cd "$srcdir/llvm-$pkgver.src"
|
||||
|
||||
cd "$srcdir/llvm-$pkgver"
|
||||
|
||||
rm -rf tools/clang
|
||||
|
||||
rm -rf projects/compiler-rt
|
||||
mv "$srcdir/compiler-rt-$_base_ver" projects/compiler-rt
|
||||
mv "$srcdir/compiler-rt-$pkgver.src" projects/compiler-rt
|
||||
|
||||
# Fix installation directories, ./configure doesn't seem to set them right
|
||||
sed -i -e 's:\$(PROJ_prefix)/lib:$(PROJ_prefix)/lib32:' \
|
||||
@ -43,13 +36,14 @@ prepare() {
|
||||
sed -i 's:LLVM_LIBDIR="${prefix}/lib":LLVM_LIBDIR="${prefix}/lib32":' \
|
||||
autoconf/configure.ac \
|
||||
configure
|
||||
|
||||
# Fix insecure rpath (http://bugs.archlinux.org/task/14017)
|
||||
sed -i 's:$(RPATH) -Wl,$(\(ToolDir\|LibDir\|ExmplDir\))::g' Makefile.rules
|
||||
|
||||
# Fix build with GCC 4.9 (patch from Debian)
|
||||
# http://llvm.org/bugs/show_bug.cgi?id=20067
|
||||
patch -Np1 -i "$srcdir/llvm-3.5.0-force-link-pass.o.patch"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/llvm-$pkgver"
|
||||
cd "$srcdir/llvm-$pkgver.src"
|
||||
|
||||
export CC="gcc -m32"
|
||||
export CXX="g++ -m32"
|
||||
@ -72,14 +66,13 @@ build() {
|
||||
--enable-shared \
|
||||
--enable-libffi \
|
||||
--enable-targets=all \
|
||||
--enable-experimental-targets=R600 \
|
||||
--disable-expensive-checks \
|
||||
--disable-debug-runtime \
|
||||
--disable-assertions \
|
||||
--with-binutils-include=/usr/include \
|
||||
--with-python=/usr/bin/python2 \
|
||||
--host=i386-pc-linux-gnu \
|
||||
--target=i386-pc-linux-gnu \
|
||||
--build=i686-pc-linux-gnu \
|
||||
--host=i686-pc-linux-gnu \
|
||||
--$_optimized_switch-optimized
|
||||
|
||||
make REQUIRES_RTTI=1
|
||||
@ -89,29 +82,29 @@ package_lib32-llvm() {
|
||||
pkgdesc="Low Level Virtual Machine (32-bit)"
|
||||
depends=('lib32-llvm-libs' "llvm=${pkgver}")
|
||||
|
||||
cd "$srcdir/llvm-$pkgver"
|
||||
cd "$srcdir/llvm-$pkgver.src"
|
||||
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
# The runtime library goes into lib32-llvm-libs
|
||||
mv "$pkgdir/usr/lib32/libLLVM-$pkgver.so" "$srcdir"
|
||||
rm "$pkgdir/usr/lib32/libLLVM-$_base_ver.so"
|
||||
mv "$pkgdir/usr/lib32/libLLVM-$pkgver.so" "$srcdir/"
|
||||
mv "$pkgdir/usr/lib32/libLLVM-${pkgver%.*}.so" "$srcdir/"
|
||||
|
||||
# Fix permissions of static libs
|
||||
chmod -x "$pkgdir"/usr/lib32/*.a
|
||||
|
||||
mv "$pkgdir/usr/bin/i386-pc-linux-gnu-llvm-config" "$pkgdir/usr/lib32/llvm-config"
|
||||
mv "$pkgdir/usr/bin/llvm-config" "$pkgdir/usr/lib32/llvm-config"
|
||||
|
||||
# Get rid of example Hello transformation
|
||||
rm "$pkgdir"/usr/lib32/*LLVMHello.*
|
||||
|
||||
# Symlink LLVMgold.so into /usr/lib/bfd-plugins
|
||||
# (https://bugs.archlinux.org/task/28479)
|
||||
# Symlink LLVMgold.so from /usr/lib32/bfd-plugins
|
||||
# https://bugs.archlinux.org/task/28479
|
||||
install -d "$pkgdir/usr/lib32/bfd-plugins"
|
||||
ln -s ../LLVMgold.so "$pkgdir/usr/lib32/bfd-plugins/LLVMgold.so"
|
||||
|
||||
mv "$pkgdir"/usr/include/llvm/Config/*config.h "$pkgdir/"
|
||||
rm -rf "$pkgdir"/usr/{bin,include,share/{doc,man}}
|
||||
rm -rf "$pkgdir"/usr/{bin,include,share/{doc,man,llvm}}
|
||||
|
||||
install -d "$pkgdir/usr/include/llvm/Config"
|
||||
mv "$pkgdir/config.h" "$pkgdir/usr/include/llvm/Config/config-32.h"
|
||||
@ -129,10 +122,10 @@ package_lib32-llvm-libs() {
|
||||
|
||||
cd "$srcdir"
|
||||
|
||||
install -D libLLVM-$pkgver.so "$pkgdir/usr/lib32/libLLVM-$pkgver.so"
|
||||
ln -s libLLVM-$pkgver.so "$pkgdir/usr/lib32/libLLVM-$_base_ver.so"
|
||||
install -d "$pkgdir/usr/lib32"
|
||||
cp -P libLLVM-$pkgver.so libLLVM-${pkgver%.*}.so "$pkgdir/usr/lib32/"
|
||||
|
||||
install -Dm644 llvm-$pkgver/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
install -Dm644 llvm-$pkgver.src/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
|
28
lib32-llvm/llvm-3.5.0-force-link-pass.o.patch
Normal file
28
lib32-llvm/llvm-3.5.0-force-link-pass.o.patch
Normal file
@ -0,0 +1,28 @@
|
||||
Index: llvm-toolchain-snapshot-3.5~svn211313/tools/bugpoint/Makefile
|
||||
===================================================================
|
||||
--- llvm-toolchain-snapshot-3.5~svn211313.orig/tools/bugpoint/Makefile
|
||||
+++ llvm-toolchain-snapshot-3.5~svn211313/tools/bugpoint/Makefile
|
||||
@@ -12,6 +12,9 @@ TOOLNAME := bugpoint
|
||||
LINK_COMPONENTS := asmparser instrumentation scalaropts ipo linker bitreader \
|
||||
bitwriter irreader vectorize objcarcopts codegen
|
||||
|
||||
+# Crappy workaround to make sure it links correctly.
|
||||
+LLVMLibsOptions := ../../lib/IR/Release*/Pass.o
|
||||
+
|
||||
# Support plugins.
|
||||
NO_DEAD_STRIP := 1
|
||||
|
||||
Index: llvm-toolchain-snapshot-3.5~svn211313/tools/opt/Makefile
|
||||
===================================================================
|
||||
--- llvm-toolchain-snapshot-3.5~svn211313.orig/tools/opt/Makefile
|
||||
+++ llvm-toolchain-snapshot-3.5~svn211313/tools/opt/Makefile
|
||||
@@ -10,7 +10,9 @@
|
||||
LEVEL := ../..
|
||||
TOOLNAME := opt
|
||||
LINK_COMPONENTS := bitreader bitwriter asmparser irreader instrumentation scalaropts objcarcopts ipo vectorize all-targets codegen
|
||||
+# Crappy workaround to make sure it links correctly.
|
||||
|
||||
+LLVMLibsOptions := ../../lib/IR/Release*/Pass.o
|
||||
# Support plugins.
|
||||
NO_DEAD_STRIP := 1
|
||||
|
82
lib32-mesa/LICENSE
Normal file
82
lib32-mesa/LICENSE
Normal file
@ -0,0 +1,82 @@
|
||||
Disclaimer
|
||||
|
||||
Mesa is a 3-D graphics library with an API which is very similar to
|
||||
that of OpenGL*
|
||||
To the extent that Mesa utilizes the OpenGL command syntax or state
|
||||
machine, it is being used with authorization from Silicon Graphics,
|
||||
Inc.(SGI). However, the author does not possess an OpenGL license
|
||||
from SGI, and makes no claim that Mesa is in any way a compatible
|
||||
replacement for OpenGL or associated with SGI. Those who want a
|
||||
licensed implementation of OpenGL should contact a licensed
|
||||
vendor.
|
||||
|
||||
Please do not refer to the library as MesaGL (for legal
|
||||
reasons). It's just Mesa or The Mesa 3-D graphics
|
||||
library
|
||||
|
||||
* OpenGL is a trademark of Silicon Graphics Incorporated.
|
||||
|
||||
License / Copyright Information
|
||||
|
||||
The Mesa distribution consists of several components. Different copyrights
|
||||
and licenses apply to different components. For example, GLUT is copyrighted
|
||||
by Mark Kilgard, some demo programs are copyrighted by SGI, some of the Mesa
|
||||
device drivers are copyrighted by their authors. See below for a list of
|
||||
Mesa's main components and the license for each.
|
||||
|
||||
The core Mesa library is licensed according to the terms of the MIT license.
|
||||
This allows integration with the XFree86, Xorg and DRI projects.
|
||||
|
||||
The default Mesa license is as follows:
|
||||
|
||||
Copyright (C) 1999-2007 Brian Paul All Rights Reserved.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a
|
||||
copy of this software and associated documentation files (the "Software"),
|
||||
to deal in the Software without restriction, including without limitation
|
||||
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
and/or sell copies of the Software, and to permit persons to whom the
|
||||
Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included
|
||||
in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Attention, Contributors
|
||||
|
||||
When contributing to the Mesa project you must agree to the licensing terms
|
||||
of the component to which you're contributing.
|
||||
The following section lists the primary components of the Mesa distribution
|
||||
and their respective licenses.
|
||||
|
||||
|
||||
Mesa Component Licenses
|
||||
|
||||
Component Location Primary Author License
|
||||
----------------------------------------------------------------------------
|
||||
Main Mesa code src/mesa/ Brian Paul Mesa (MIT)
|
||||
|
||||
Device drivers src/mesa/drivers/* See drivers See drivers
|
||||
|
||||
Ext headers include/GL/glext.h SGI SGI Free B
|
||||
include/GL/glxext.h
|
||||
|
||||
GLUT src/glut/ Mark Kilgard Mark's copyright
|
||||
|
||||
Mesa GLU library src/glu/mesa/ Brian Paul GNU-LGPL
|
||||
|
||||
SGI GLU library src/glu/sgi/ SGI SGI Free B
|
||||
|
||||
demo programs progs/demos/ various see source files
|
||||
|
||||
X demos progs/xdemos/ Brian Paul see source files
|
||||
|
||||
SGI demos progs/samples/ SGI SGI copyright
|
||||
|
||||
RedBook demos progs/redbook/ SGI SGI copyright
|
@ -3,31 +3,35 @@
|
||||
|
||||
_pkgbasename=mesa
|
||||
pkgbase=lib32-$_pkgbasename
|
||||
pkgname=('lib32-ati-dri' 'lib32-intel-dri' 'lib32-nouveau-dri' 'lib32-svga-dri' 'lib32-mesa' 'lib32-mesa-libgl')
|
||||
pkgver=10.2.6
|
||||
pkgname=('lib32-mesa-dri' 'lib32-mesa' 'lib32-mesa-libgl')
|
||||
pkgver=10.3.2
|
||||
pkgrel=1
|
||||
arch=('x86_64')
|
||||
makedepends=('python2' 'lib32-libxml2' 'lib32-expat' 'lib32-libx11' 'glproto' 'lib32-libdrm' 'dri2proto' 'dri3proto' 'presentproto'
|
||||
'lib32-libxshmfence' 'lib32-libxxf86vm' 'lib32-libxdamage' 'gcc-multilib' 'lib32-elfutils' 'lib32-llvm' 'lib32-systemd'
|
||||
'lib32-libvdpau' 'lib32-wayland' 'libtool')
|
||||
'lib32-libvdpau' 'lib32-wayland')
|
||||
url="http://mesa3d.sourceforge.net"
|
||||
license=('custom')
|
||||
source=(ftp://ftp.freedesktop.org/pub/mesa/${pkgver}/MesaLib-${pkgver}.tar.bz2{,.sig})
|
||||
sha256sums=('193314d2adba98e43697d726739ac46b4299aae324fa1821aa226890c28ac806'
|
||||
SKIP)
|
||||
source=(ftp://ftp.freedesktop.org/pub/mesa/${pkgver}/MesaLib-${pkgver}.tar.bz2{,.sig}
|
||||
#source=(ftp://ftp.freedesktop.org/pub/mesa/10.3/MesaLib-${pkgver}.tar.bz2{,.sig}
|
||||
LICENSE)
|
||||
sha256sums=('e9849bcb9aa9acd98a753d6d46d2e7d7238d3367036e11357a60efd16de8bea3'
|
||||
'SKIP'
|
||||
'7fdc119cf53c8ca65396ea73f6d10af641ba41ea1dd2bd44a824726e01c8b3f2')
|
||||
|
||||
build() {
|
||||
export CC="gcc -m32"
|
||||
export CXX="g++ -m32"
|
||||
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
||||
# for our llvm-config for 32 bit
|
||||
export LLVM_CONFIG=/usr/bin/llvm-config32
|
||||
export LLVM_CONFIG="/usr/bin/llvm-config32"
|
||||
|
||||
cd ${srcdir}/?esa-*
|
||||
|
||||
# our automake is far too new for their build system :)
|
||||
autoreconf -vfi
|
||||
|
||||
./configure --enable-32-bit \
|
||||
./configure \
|
||||
--build=i686-pc-linux-gnu --host=i686-pc-linux-gnu \
|
||||
--libdir=/usr/lib32 \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
@ -37,21 +41,23 @@ build() {
|
||||
--with-egl-platforms=x11,drm,wayland \
|
||||
--enable-llvm-shared-libs \
|
||||
--enable-egl \
|
||||
--enable-gallium-egl \
|
||||
--disable-gallium-egl \
|
||||
--disable-gallium-gbm \
|
||||
--enable-gbm \
|
||||
--enable-gallium-llvm \
|
||||
--enable-shared-glapi \
|
||||
--enable-glx \
|
||||
--enable-glx-tls \
|
||||
--enable-dri \
|
||||
--enable-glx \
|
||||
--enable-osmesa \
|
||||
--enable-gles1 \
|
||||
--enable-gles2 \
|
||||
--enable-texture-float \
|
||||
--enable-xa \
|
||||
--enable-vdpau \
|
||||
--enable-dri3 \
|
||||
--disable-64-bit
|
||||
--enable-vdpau
|
||||
|
||||
# --help
|
||||
# --disable-gallium-egl : not well maintained/expose more bugs, so prefer egl_dri2 (FS#40096)
|
||||
# --disable-gallium-gbm : FS#41337 only useful with gallium-egl
|
||||
|
||||
make
|
||||
|
||||
@ -61,85 +67,57 @@ build() {
|
||||
make DESTDIR=${srcdir}/fakeinstall install
|
||||
}
|
||||
|
||||
|
||||
package_lib32-ati-dri() {
|
||||
pkgdesc="Mesa drivers for AMD/ATI Radeon (32-bit)"
|
||||
depends=('lib32-mesa-libgl' "lib32-mesa=${pkgver}" 'lib32-libtxc_dxtn' 'ati-dri')
|
||||
|
||||
install -m755 -d ${pkgdir}/usr/lib32/vdpau/
|
||||
mv -v ${srcdir}/fakeinstall/usr/lib32/vdpau/libvdpau_{r600,radeonsi}.* ${pkgdir}/usr/lib32/vdpau/
|
||||
|
||||
install -m755 -d ${pkgdir}/usr/lib32/xorg/modules/dri
|
||||
mv -v ${srcdir}/fakeinstall/usr/lib32/xorg/modules/dri/{r200,r300,r600,radeon,radeonsi}_dri.so ${pkgdir}/usr/lib32/xorg/modules/dri/
|
||||
|
||||
install -m755 -d ${pkgdir}/usr/lib32/gallium-pipe
|
||||
mv -v ${srcdir}/fakeinstall/usr/lib32/gallium-pipe/pipe_{r300,r600,radeonsi}* ${pkgdir}/usr/lib32/gallium-pipe/
|
||||
|
||||
install -m755 -d "${pkgdir}/usr/share/licenses"
|
||||
ln -s ati-dri "$pkgdir/usr/share/licenses/lib32-ati-dri"
|
||||
}
|
||||
|
||||
package_lib32-intel-dri() {
|
||||
pkgdesc="Mesa DRI drivers for Intel (32-bit)"
|
||||
depends=('lib32-mesa-libgl' "lib32-mesa=${pkgver}" 'lib32-libtxc_dxtn' 'intel-dri')
|
||||
|
||||
install -m755 -d ${pkgdir}/usr/lib32/xorg/modules/dri
|
||||
mv -v ${srcdir}/fakeinstall/usr/lib32/xorg/modules/dri/{i915,i965}_dri.so ${pkgdir}/usr/lib32/xorg/modules/dri/
|
||||
|
||||
install -m755 -d "${pkgdir}/usr/share/licenses"
|
||||
ln -s intel-dri "$pkgdir/usr/share/licenses/lib32-intel-dri"
|
||||
}
|
||||
|
||||
package_lib32-nouveau-dri() {
|
||||
pkgdesc="Mesa drivers for Nouveau (32-bit)"
|
||||
depends=('lib32-mesa-libgl' "lib32-mesa=${pkgver}" 'lib32-libtxc_dxtn' 'nouveau-dri')
|
||||
|
||||
install -m755 -d ${pkgdir}/usr/lib32/vdpau/
|
||||
mv -v ${srcdir}/fakeinstall/usr/lib32/vdpau/libvdpau_nouveau.* ${pkgdir}/usr/lib32/vdpau/
|
||||
|
||||
install -m755 -d ${pkgdir}/usr/lib32/xorg/modules/dri
|
||||
mv -v ${srcdir}/fakeinstall/usr/lib32/xorg/modules/dri/nouveau_{dri,vieux_dri}.so ${pkgdir}/usr/lib32/xorg/modules/dri/
|
||||
|
||||
install -m755 -d ${pkgdir}/usr/lib32/gallium-pipe
|
||||
mv -v ${srcdir}/fakeinstall/usr/lib32/gallium-pipe/pipe_nouveau* ${pkgdir}/usr/lib32/gallium-pipe/
|
||||
|
||||
install -m755 -d "${pkgdir}/usr/share/licenses"
|
||||
ln -s nouveau-dri "$pkgdir/usr/share/licenses/lib32-nouveau-dri"
|
||||
}
|
||||
|
||||
package_lib32-svga-dri() {
|
||||
pkgdesc="Gallium3D VMware guest GL driver"
|
||||
depends=('libdrm' 'expat' 'llvm-libs')
|
||||
|
||||
install -m755 -d ${pkgdir}/usr/lib32/xorg/modules/dri
|
||||
mv -v ${srcdir}/fakeinstall/usr/lib32/xorg/modules/dri/vmwgfx_dri.so ${pkgdir}/usr/lib32/xorg/modules/dri/
|
||||
|
||||
install -m755 -d ${pkgdir}/usr/lib32/gallium-pipe
|
||||
mv -v ${srcdir}/fakeinstall/usr/lib32/gallium-pipe/pipe_vmwgfx* ${pkgdir}/usr/lib32/gallium-pipe/
|
||||
package_lib32-mesa-dri() {
|
||||
pkgdesc="Mesa DRI drivers (32-bit)"
|
||||
depends=('lib32-expat' 'lib32-libdrm' 'lib32-llvm-libs' 'lib32-elfutils' 'lib32-libtxc_dxtn')
|
||||
conflicts=('lib32-ati-dri' 'lib32-intel-dri' 'lib32-nouveau-dri' 'lib32-svga-dri')
|
||||
provides=('lib32-ati-dri' 'lib32-intel-dri' 'lib32-nouveau-dri' 'lib32-svga-dri')
|
||||
replaces=('lib32-ati-dri' 'lib32-intel-dri' 'lib32-nouveau-dri' 'lib32-svga-dri')
|
||||
optdepends=('lib32-mesa-vdpau: for accelerated video playback')
|
||||
|
||||
install -m755 -d "${pkgdir}/usr/share/licenses"
|
||||
ln -s svga-dri "$pkgdir/usr/share/licenses/lib32-svga-dri"
|
||||
install -m755 -d ${pkgdir}/usr/lib32/xorg/modules/dri
|
||||
# ati-dri
|
||||
mv -v ${srcdir}/fakeinstall/usr/lib32/xorg/modules/dri/{r200,r300,r600,radeon{,si}}_dri.so ${pkgdir}/usr/lib32/xorg/modules/dri
|
||||
# nouveau-dri
|
||||
mv -v ${srcdir}/fakeinstall/usr/lib32/xorg/modules/dri/nouveau{,_vieux}_dri.so ${pkgdir}/usr/lib32/xorg/modules/dri
|
||||
# intel-dri
|
||||
mv -v ${srcdir}/fakeinstall/usr/lib32/xorg/modules/dri/{i915,i965}_dri.so ${pkgdir}/usr/lib32/xorg/modules/dri
|
||||
# svga-dri
|
||||
mv -v ${srcdir}/fakeinstall/usr/lib32/xorg/modules/dri/vmwgfx_dri.so ${pkgdir}/usr/lib32/xorg/modules/dri/
|
||||
# swrast
|
||||
mv -v ${srcdir}/fakeinstall/usr/lib32/xorg/modules/dri/{kms_,}swrast_dri.so ${pkgdir}/usr/lib32/xorg/modules/dri
|
||||
|
||||
install -m755 -d "${pkgdir}/usr/share/licenses/lib32-mesa-dri"
|
||||
install -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/lib32-mesa-dri/"
|
||||
}
|
||||
|
||||
package_lib32-mesa-vdpau() {
|
||||
pkgdesc="Mesa VDPAU drivers (32-bit)"
|
||||
depends=('lib32-libdrm' 'lib32-libx11' 'lib32-expat' 'lib32-llvm-libs' 'lib32-elfutils')
|
||||
|
||||
install -m755 -d ${pkgdir}/usr/lib32
|
||||
mv -v ${srcdir}/fakeinstall/usr/lib32/vdpau ${pkgdir}/usr/lib32
|
||||
|
||||
install -m755 -d "${pkgdir}/usr/share/licenses/lib32-mesa-vdpau"
|
||||
install -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/lib32-mesa-vdpau/"
|
||||
}
|
||||
|
||||
package_lib32-mesa() {
|
||||
pkgdesc="an open-source implementation of the OpenGL specification (32-bit)"
|
||||
depends=('lib32-libdrm' 'lib32-libxxf86vm' 'lib32-libxdamage' 'lib32-libxshmfence' 'lib32-systemd' 'lib32-elfutils' 'lib32-llvm-libs' 'lib32-wayland' $_pkgbasename=$pkgver)
|
||||
depends=('lib32-libdrm' 'lib32-libxxf86vm' 'lib32-libxdamage' 'lib32-libxshmfence' 'lib32-systemd'
|
||||
'lib32-elfutils' 'lib32-llvm-libs' 'lib32-wayland' "lib32-mesa-dri=$pkgver" $_pkgbasename=$pkgver)
|
||||
optdepends=('opengl-man-pages: for the OpenGL API man pages')
|
||||
provides=('lib32-libglapi' 'lib32-libgles' 'lib32-libegl')
|
||||
conflicts=('lib32-libglapi' 'lib32-libgles' 'lib32-libegl')
|
||||
replaces=('lib32-libglapi' 'lib32-libgles' 'lib32-libegl')
|
||||
provides=('lib32-libglapi' 'lib32-osmesa' 'lib32-libgbm' 'lib32-libgles' 'lib32-libegl')
|
||||
conflicts=('lib32-libglapi' 'lib32-osmesa' 'lib32-libgbm' 'lib32-libgles' 'lib32-libegl')
|
||||
replaces=('lib32-libglapi' 'lib32-osmesa' 'lib32-libgbm' 'lib32-libgles' 'lib32-libegl')
|
||||
|
||||
install -m755 -d ${pkgdir}/usr/lib32/{gallium-pipe,gbm,egl}
|
||||
mv -v ${srcdir}/fakeinstall/usr/lib32/lib{OSMesa,gbm,glapi}.so* ${pkgdir}/usr/lib32/
|
||||
mv -v ${srcdir}/fakeinstall/usr/lib32/gallium-pipe/pipe_swrast* ${pkgdir}/usr/lib32/gallium-pipe/
|
||||
mv -v ${srcdir}/fakeinstall/usr/lib32/gbm/gbm_gallium_drm* ${pkgdir}/usr/lib32/gbm/
|
||||
mv -v ${srcdir}/fakeinstall/usr/lib32/egl/egl_gallium* ${pkgdir}/usr/lib32/egl/
|
||||
install -m755 -d ${pkgdir}/usr/lib32
|
||||
mv -v ${srcdir}/fakeinstall/usr/lib32/lib{OSMesa,gbm,glapi,wayland-egl}.so* ${pkgdir}/usr/lib32/
|
||||
#mv -v ${srcdir}/fakeinstall/usr/lib32/gallium-pipe/pipe_swrast* ${pkgdir}/usr/lib32/gallium-pipe/
|
||||
# FS#41337
|
||||
#mv -v ${srcdir}/fakeinstall/usr/lib32/gbm/gbm_gallium_drm* ${pkgdir}/usr/lib32/gbm/
|
||||
|
||||
mv -v ${srcdir}/fakeinstall/usr/lib32/pkgconfig ${pkgdir}/usr/lib32/
|
||||
|
||||
install -m755 -d ${pkgdir}/usr/lib32/xorg/modules/dri
|
||||
mv -v ${srcdir}/fakeinstall/usr/lib32/xorg/modules/dri/swrast_dri* ${pkgdir}/usr/lib32/xorg/modules/dri/
|
||||
|
||||
install -m755 -d ${pkgdir}/usr/lib32/mesa
|
||||
# move libgl/EGL/glesv*.so to not conflict with blobs - may break .pc files ?
|
||||
|
@ -3,7 +3,7 @@
|
||||
_pkgbasename=nvidia-utils
|
||||
pkgbase=lib32-$_pkgbasename
|
||||
pkgname=('lib32-nvidia-utils' 'lib32-nvidia-libgl' 'lib32-opencl-nvidia')
|
||||
pkgver=340.46
|
||||
pkgver=343.22
|
||||
pkgrel=1
|
||||
pkgdesc="NVIDIA drivers utilities and libraries. (32-bit)"
|
||||
arch=('x86_64')
|
||||
@ -11,13 +11,22 @@ url="http://www.nvidia.com/"
|
||||
license=('custom')
|
||||
options=('!strip')
|
||||
|
||||
_arch='x86'
|
||||
_pkg="NVIDIA-Linux-${_arch}-${pkgver}"
|
||||
source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
|
||||
md5sums=('7c70a15c53a97ed0bbec76e80bf53f05')
|
||||
_ARCH='x86'
|
||||
_pkg="NVIDIA-Linux-${_ARCH}-${pkgver}"
|
||||
source=("ftp://download.nvidia.com/XFree86/Linux-${_ARCH}/${pkgver}/${_pkg}.run")
|
||||
md5sums=('696d0bfa7195e22e0c4bd858fff2abb6')
|
||||
|
||||
create_links() {
|
||||
# create soname links
|
||||
for _lib in $(find "${pkgdir}" -name '*.so*' | grep -v 'xorg/'); do
|
||||
_soname=$(dirname "${_lib}")/$(readelf -d "${_lib}" | grep -Po 'SONAME.*: \[\K[^]]*' || true)
|
||||
_base=$(echo ${_soname} | sed -r 's/(.*).so.*/\1.so/')
|
||||
[[ -e "${_soname}" ]] || ln -s $(basename "${_lib}") "${_soname}"
|
||||
[[ -e "${_base}" ]] || ln -s $(basename "${_soname}") "${_base}"
|
||||
done
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $srcdir
|
||||
sh ${_pkg}.run --extract-only
|
||||
}
|
||||
|
||||
@ -25,16 +34,13 @@ package_lib32-opencl-nvidia() {
|
||||
pkgdesc="OpenCL implemention for NVIDIA (32-bit)"
|
||||
depends=('lib32-libcl' 'lib32-zlib' 'lib32-gcc-libs')
|
||||
optdepends=('opencl-headers: headers necessary for OpenCL development')
|
||||
cd "${srcdir}/${_pkg}"
|
||||
cd "${_pkg}"
|
||||
|
||||
# OpenCL
|
||||
install -D -m755 "libnvidia-compiler.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-compiler.so.${pkgver}"
|
||||
ln -s "libnvidia-compiler.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-compiler.so.1"
|
||||
ln -s "libnvidia-compiler.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-compiler.so"
|
||||
|
||||
install -D -m755 "libnvidia-opencl.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-opencl.so.${pkgver}"
|
||||
ln -s "libnvidia-opencl.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-opencl.so.1"
|
||||
ln -s "libnvidia-opencl.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-opencl.so"
|
||||
|
||||
create_links
|
||||
|
||||
mkdir -p "${pkgdir}/usr/share/licenses"
|
||||
ln -s $_pkgbasename "${pkgdir}/usr/share/licenses/lib32-opencl-nvidia"
|
||||
@ -46,7 +52,7 @@ package_lib32-nvidia-libgl() {
|
||||
replaces=('lib32-nvidia-utils<=331.38')
|
||||
conflicts=('lib32-libgl')
|
||||
provides=('lib32-libgl')
|
||||
cd "${srcdir}/${_pkg}"
|
||||
cd "${_pkg}"
|
||||
|
||||
mkdir -p "${pkgdir}/usr/lib32"
|
||||
ln -s "/usr/lib32/nvidia/libGL.so.${pkgver}" "${pkgdir}/usr/lib32/libGL.so.${pkgver}"
|
||||
@ -76,7 +82,7 @@ package_lib32-nvidia-utils() {
|
||||
conficts=('lib32-nvidia-utils-bumblebee')
|
||||
replaces=('lib32-nvidia-utils-bumblebee')
|
||||
|
||||
cd "${srcdir}/${_pkg}"
|
||||
cd "${_pkg}"
|
||||
|
||||
# OpenGL libraries
|
||||
install -D -m755 "libGL.so.${pkgver}" "${pkgdir}/usr/lib32/nvidia/libGL.so.${pkgver}"
|
||||
@ -106,16 +112,9 @@ package_lib32-nvidia-utils() {
|
||||
install -D -m755 "libcuda.so.${pkgver}" "${pkgdir}/usr/lib32/libcuda.so.${pkgver}"
|
||||
install -D -m755 "libnvcuvid.so.${pkgver}" "${pkgdir}/usr/lib32/libnvcuvid.so.${pkgver}"
|
||||
|
||||
# create soname links
|
||||
for _lib in $(find "${pkgdir}" -name '*.so*'); do
|
||||
_soname="$(dirname ${_lib})/$(LC_ALL=C readelf -d "$_lib" | sed -nr 's/.*Library soname: \[(.*)\].*/\1/p')"
|
||||
if [ ! -e "${_soname}" ]; then
|
||||
ln -s "$(basename ${_lib})" "${_soname}"
|
||||
ln -s "$(basename ${_soname})" "${_soname/.[0-9]*/}"
|
||||
fi
|
||||
done
|
||||
create_links
|
||||
|
||||
rm -rf "${pkgdir}"/usr/{include,share,bin}
|
||||
mkdir -p "${pkgdir}/usr/share/licenses"
|
||||
ln -s $_pkgbasename "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
_pkgbasename=wayland
|
||||
pkgname=lib32-$_pkgbasename
|
||||
pkgver=1.3.0
|
||||
pkgver=1.6.0
|
||||
pkgrel=1
|
||||
pkgdesc='A computer display server protocol'
|
||||
arch=('x86_64')
|
||||
@ -10,7 +10,7 @@ url='http://wayland.freedesktop.org'
|
||||
license=('MIT')
|
||||
depends=('lib32-libffi' 'lib32-expat' $_pkgbasename=$pkgver )
|
||||
source=("http://wayland.freedesktop.org/releases/wayland-${pkgver}.tar.xz")
|
||||
sha256sums=('2e817685f68a26acd19964d69ddbc4549ba5412114ad95e1a9f5934cce470d6e')
|
||||
sha256sums=('a7d5102dcf53d08c059d24bc62de491d7cd482070abeb6737a20d0d86ba6fc7f')
|
||||
|
||||
build() {
|
||||
cd ${_pkgbasename}-${pkgver}
|
||||
@ -19,7 +19,8 @@ build() {
|
||||
export CXX='g++ -m32'
|
||||
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
|
||||
|
||||
./configure --prefix='/usr' --libdir='/usr/lib32' --disable-{documentation,static}
|
||||
./configure --prefix='/usr' --libdir='/usr/lib32' \
|
||||
--disable-{documentation,static}
|
||||
make
|
||||
}
|
||||
|
||||
|
@ -4,8 +4,8 @@
|
||||
|
||||
_pkgbasename=xcb-util
|
||||
pkgname=lib32-${_pkgbasename}
|
||||
pkgver=0.3.9
|
||||
pkgrel=2
|
||||
pkgver=0.4.0
|
||||
pkgrel=1
|
||||
pkgdesc="Utility libraries for XC Binding (32-bit)"
|
||||
arch=('x86_64')
|
||||
url="http://xcb.freedesktop.org"
|
||||
@ -14,7 +14,7 @@ depends=('lib32-glibc' 'lib32-libxcb' $_pkgbasename=$pkgver)
|
||||
makedepends=('gperf' 'gcc-multilib')
|
||||
options=('!libtool')
|
||||
source=(http://xcb.freedesktop.org/dist/${_pkgbasename}-${pkgver}.tar.bz2)
|
||||
md5sums=('01dcc7a16d5020530552712710646ea2')
|
||||
sha256sums=('46e49469cb3b594af1d33176cd7565def2be3fa8be4371d62271fabb5eae50e9')
|
||||
|
||||
build() {
|
||||
export CC="gcc -m32"
|
||||
@ -22,9 +22,7 @@ build() {
|
||||
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
||||
|
||||
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
||||
./configure --prefix=/usr \
|
||||
--libdir=/usr/lib32 \
|
||||
--disable-static
|
||||
./configure --prefix=/usr --libdir=/usr/lib32 --disable-static
|
||||
make
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user