Begin to remove -git pkgs that have stable pkgs: llvm and mesa.

If somebody needs -git pkgs, those will have to be maintained elsewhere.
I don't want to deal with extra commits/packages from unstable git repos.
This commit is contained in:
Juan RP 2014-10-01 08:21:09 +02:00
parent 9b228ba6e3
commit 57ab4b42bd
24 changed files with 0 additions and 445 deletions

View File

@ -1 +0,0 @@
MesaLib-git

View File

@ -1,248 +0,0 @@
# Template build file for 'MesaLib-git'.
pkgname=MesaLib-git
version=20140930
revision=1
wrksrc="Mesa-git-${version}"
build_style=gnu-configure
configure_args="--enable-glx-tls --enable-shared-glapi --enable-gbm
--enable-gles1 --enable-gles2 --enable-egl --enable-vdpau
--disable-gallium-egl --enable-xvmc --enable-osmesa --enable-texture-float
--with-egl-platforms=x11,drm,wayland"
replaces="MesaLib>=0"
provides="MesaLib-${version}_${revision}"
short_desc="Graphics library similar to SGI's OpenGL"
maintainer="John Galt <johngaltfirstrun@gmail.com>"
homepage="http://www.mesa3d.org/"
license="MIT, LGPL-2.1"
hostmakedepends="
automake libtool flex pkg-config llvm-git libxml2-python wayland-devel git"
makedepends="
glproto dri2proto>=2.1 dri3proto presentproto libXext-devel libXxf86vm-devel
libudev-devel libdrm-devel expat-devel talloc-devel libvdpau-devel
libXdamage-devel libXvMC-devel>=1.0.6 libxshmfence-devel wayland-devel
elfutils-devel ncurses-devel zlib-devel libffi-devel"
# Set subpackages manually to set proper rdeps in 32bit pkgs.
subpackages="libglapi-git libgbm-git libEGL-git libGL-git libGLES-git
libOSMesa-git libwayland-egl-git MesaLib-devel-git mesa-swraster-dri-git"
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*)
# Enable all x86 drivers.
configure_args+=" --with-gallium-drivers=r300,r600,radeonsi,svga,swrast,nouveau"
configure_args+=" --with-dri-drivers=i915,i965,r200,radeon,nouveau,swrast"
configure_args+=" --enable-xa --enable-dri3"
configure_args+=" --enable-opencl --enable-opencl-icd --enable-r600-llvm-compiler"
hostmakedepends+=" clang-git libllvm-git libclc-devel-git"
subpackages+=" libxatracker-git mesa-ati-dri-git mesa-intel-dri-git"
subpackages+=" mesa-nouveau-dri-git mesa-vmwgfx-dri-git mesa-opencl-git"
;;
*)
# Enable swrast driver.
configure_args+=" --with-gallium-drivers=swrast"
configure_args+=" --with-dri-drivers=swrast"
configure_args+=" --disable-xa"
;;
esac
case "$XBPS_TARGET_MACHINE" in
i686*) configure_args+=" --with-dri-driverdir=/usr/lib32/xorg/modules/drivers";;
*) configure_args+=" --with-dri-driverdir=/usr/lib/xorg/modules/drivers";;
esac
conf_files="/etc/drirc"
do_fetch() {
local url="git://anongit.freedesktop.org/mesa/mesa"
local sha=8786544b3e3a024ccb04bb0c85f2afc07bb57f63
msg_normal "Fetching source from $url ...\n"
git clone ${url} ${wrksrc}
cd ${wrksrc}
git reset --hard ${sha}
}
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
libtoolize -f
}
post_install() {
vmkdir usr/lib/xorg/modules/extensions
ln -s libglx-xorg.so ${DESTDIR}/usr/lib/xorg/modules/extensions/libglx.so
}
libglapi-git_package() {
depends="libudev"
short_desc="Free implementation of the GL API - shared library"
replaces="libglapi>=0"
provides="libglapi-${version}_${revision}"
pkg_install() {
vmove "usr/lib/libglapi.so.*"
}
}
libEGL-git_package() {
short_desc="Free implementation of the EGL API - runtime"
replaces="libEGL>=0"
provides="libEGL-${version}_${revision}"
pkg_install() {
vmove "usr/lib/libEGL*.so.*"
}
}
libGLES-git_package() {
depends="libudev"
short_desc="Free implementation of the OpenGL|ES 1.x and 2.x API"
replaces="libGLES>=0"
provides="libGLES-${version}_${revision}"
pkg_install() {
vmove "usr/lib/libGLES*.so.*"
}
}
libgbm-git_package() {
short_desc="Mesa Generic buffer management API - runtime"
replaces="libgbm>=0"
provides="libgbm-${version}_${revision}"
pkg_install() {
vmove "usr/lib/libgbm.so.*"
}
}
libGL-git_package() {
depends="libudev"
short_desc="Free implementation of the OpenGL API - GLX runtime"
replaces="libGL>=0"
provides="libGL-${version}_${revision}"
pkg_install() {
vmove "usr/lib/libGL.so.*"
vmove usr/lib/xorg/modules/extensions
}
}
libOSMesa-git_package() {
short_desc="Mesa Off-Screen interface library"
replaces="libOSMesa>=0"
provides="libOSMesa-${version}_${revision}"
pkg_install() {
vmove "usr/lib/libOSMesa.so.*"
}
}
libwayland-egl-git_package() {
short_desc="Free implementation of the EGL API - wayland runtime"
replaces="libwayland-egl>=0"
provides="libwayland-egl-${version}_${revision}"
pkg_install() {
vmove "usr/lib/libwayland-egl.so.*"
}
}
MesaLib-devel-git_package() {
depends="glproto dri2proto>=2.1 dri3proto presentproto libxshmfence-devel
libXext-devel libXxf86vm-devel libXdamage-devel expat-devel
libXfixes-devel libX11-devel libxcb-devel libdrm-devel>=2.4.39
libGL libGLES>=${version}_${revision} libEGL>=${version}_${revision}
libOSMesa>=${version}_${revision} libgbm>=${version}_${revision}
libwayland-egl>=${version}_${revision}"
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
depends+=" libxatracker-git>=${version}_${revision}"
fi
short_desc+=" - development files"
replaces="MesaLib-devel>=0"
provides="MesaLib-devel-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}
mesa-swraster-dri-git_package() {
short_desc="Mesa DRI drivers for the Software Rasterizer"
replaces="mesa-swraster-dri>=0"
provides="mesa-swraster-dri-${version}_${revision}"
depends="libGL libEGL-git libGLES-git"
pkg_install() {
vmove "usr/lib/xorg/modules/drivers/swrast*"
# XXX
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*)
vmove "usr/lib/gallium-pipe/pipe_swrast.so"
;;
esac
}
}
libxatracker-git_package() {
short_desc="Mesa XA tracker interface library"
replaces="libxatracker>=0"
provides="libxatracker-${version}_${revision}"
pkg_install() {
vmove "usr/lib/libxatracker*.so.*"
}
}
mesa-ati-dri-git_package() {
short_desc="Mesa DRI drivers for ATI GPUs"
replaces="mesa-ati-dri>=0"
provides="mesa-ati-dri-${version}_${revision}"
depends="libGL libEGL-git libGLES-git"
pkg_install() {
vmove "usr/lib/libXvMCr[36]00.so*"
vmove "usr/lib/vdpau/libvdpau_r[36]00.so*"
vmove "usr/lib/vdpau/libvdpau_radeon*.so*"
vmove "usr/lib/xorg/modules/drivers/radeon*"
vmove "usr/lib/xorg/modules/drivers/r[236]00*"
vmove "usr/lib/gallium-pipe/pipe_r[36]00.so"
vmove usr/lib/gallium-pipe/pipe_radeonsi.so
}
}
mesa-intel-dri-git_package() {
short_desc="Mesa DRI drivers for Intel GPUs"
replaces="mesa-intel-dri>=0"
provides="mesa-intel-dri-${version}_${revision}"
depends="libGL libEGL-git libGLES-git"
pkg_install() {
vmove "usr/lib/xorg/modules/drivers/i9[16]5_dri.*"
}
}
mesa-nouveau-dri-git_package() {
short_desc="Mesa DRI drivers for NVIDIA GPUs (nouveau dri)"
replaces="mesa-nouveau-dri>=0"
provides="mesa-nouveau-dri-${version}_${revision}"
depends="libGL libEGL-git libGLES-git"
pkg_install() {
vmove "usr/lib/libXvMCnouveau.so*"
vmove "usr/lib/vdpau/libvdpau_nouveau.so*"
vmove "usr/lib/xorg/modules/drivers/nouveau*"
vmove usr/lib/gallium-pipe/pipe_nouveau.so
}
}
mesa-vmwgfx-dri-git_package() {
short_desc="Mesa DRI drivers for VMware"
replaces="mesa-vmwgfx-dri>=0"
provides="mesa-vmwgfx-dri-${version}_${revision}"
depends="libGL libEGL-git libGLES-git"
pkg_install() {
vmove "usr/lib/xorg/modules/drivers/vmwgfx*"
vmove usr/lib/gallium-pipe/pipe_vmwgfx.so
}
}
mesa-opencl-git_package() {
short_desc="Mesa implementation of OpenCL (r600+ only)"
replaces="mesa-opencl>=0"
provides="mesa-opencl-${version}_${revision}"
depends="libclc-r600 libOpenCL"
pkg_install() {
vmove etc/OpenCL
vmove "/usr/lib/lib*OpenCL*"
mv ${XBPS_DESTDIR}/MesaLib-devel-git-${version}/usr/lib/lib*OpenCL.so ${PKGDESTDIR}/usr/lib
}
}

View File

@ -1 +0,0 @@
llvm-git

View File

@ -1 +0,0 @@
llvm-git

View File

@ -1 +0,0 @@
MesaLib-git

View File

@ -1 +0,0 @@
MesaLib-git

View File

@ -1 +0,0 @@
MesaLib-git

View File

@ -1 +0,0 @@
MesaLib-git

View File

@ -1 +0,0 @@
MesaLib-git

View File

@ -1 +0,0 @@
MesaLib-git

View File

@ -1 +0,0 @@
llvm-git

View File

@ -1 +0,0 @@
MesaLib-git

View File

@ -1 +0,0 @@
MesaLib-git

View File

@ -1 +0,0 @@
llvm-git

View File

@ -1,9 +0,0 @@
#include <bits/wordsize.h>
#if __WORDSIZE == 32
#include "config-32.h"
#elif __WORDSIZE == 64
#include "config-64.h"
#else
#error "Unknown word size"
#endif

View File

@ -1,9 +0,0 @@
#include <bits/wordsize.h>
#if __WORDSIZE == 32
#include "llvm-config-32.h"
#elif __WORDSIZE == 64
#include "llvm-config-64.h"
#else
#error "Unknown word size"
#endif

View File

@ -1,26 +0,0 @@
diff --git a/include/llvm/IR/LegacyPassNameParser.h b/include/llvm/IR/LegacyPassNameParser.h
index e2e4912..a07e3fd 100644
--- include/llvm/IR/LegacyPassNameParser.h
+++ include/llvm/IR/LegacyPassNameParser.h
@@ -95,6 +95,8 @@ private:
}
};
+EXTERN_TEMPLATE_INSTANTIATION(class cl::parser<const PassInfo *>);
+
///===----------------------------------------------------------------------===//
/// FilteredPassNameParser class - Make use of the pass registration
/// mechanism to automatically add a command line argument to opt for
diff --git a/lib/IR/Pass.cpp b/lib/IR/Pass.cpp
index 91d86ae..00ce223 100644
--- lib/IR/Pass.cpp
+++ lib/IR/Pass.cpp
@@ -234,6 +234,8 @@ PassNameParser::~PassNameParser() {
// attempting to remove the registration listener is an error.
}
+TEMPLATE_INSTANTIATION(class cl::parser<const PassInfo *>);
+
//===----------------------------------------------------------------------===//
// AnalysisUsage Class Implementation
//

View File

@ -1,134 +0,0 @@
# Template file for 'llvm-git'
pkgname=llvm-git
version=20140930
_llvmsha=95b3e168c5b96225b35f21f73db27996492ecace
_clangsha=e712375150e3a754f5ab0f0381339a040deee57c
_crtsha=d5c520db2bcb66700f2ef5f4e3d01ea0b7d9f8e9
wrksrc="llvm-${version}.src"
revision=1
lib32disabled=yes
configure_args="--disable-expensive-checks --disable-debug-runtime
--enable-bindings=none --enable-optimized --enable-shared --enable-libffi
--enable-llvmc-dynamic --disable-assertions --enable-keep-symbols
--enable-experimental-targets=R600"
short_desc="Low Level Virtual Machine [3.6-git]"
maintainer="John Galt <johngaltfirstrun@gmail.com>"
homepage="http://www.llvm.org"
license="BSD"
conflicts="llvm>=0"
# XXX Investigate ocaml bindings.
hostmakedepends="groff perl python zlib-devel libffi-devel git"
makedepends="zlib-devel libffi-devel"
do_fetch() {
local urlprefix="git://github.com/llvm-mirror"
msg_normal "Fetching source from $urlprefix ...\n"
git clone ${urlprefix}/llvm ${wrksrc}
git clone ${urlprefix}/clang ${wrksrc}/tools/clang
git clone ${urlprefix}/compiler-rt ${wrksrc}/projects/compiler-rt
cd ${wrksrc}
git reset --hard ${_llvmsha}
cd ${wrksrc}/tools/clang
git reset --hard ${_clangsha}
cd ${wrksrc}/projects/compiler-rt
git reset --hard ${_crtsha}
}
do_configure() {
unset CC CXX CPP AR AS RANLIB CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
# Fix installation directories, ./configure doesn't seem to set them right
sed -i -e 's:\$(PROJ_prefix)/etc/llvm:/etc/llvm:' \
-e 's:\$(PROJ_prefix)/docs/llvm:$(PROJ_prefix)/share/doc/llvm:' \
Makefile.config.in
mkdir build
cd build
../configure ${configure_args}
}
do_build() {
unset CC CXX CPP AR AS RANLIB CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
cd build
make ${makejobs}
}
do_install() {
cd build
make DESTDIR=${DESTDIR} install
# Fix permissions of static libs
chmod -x ${DESTDIR}/usr/lib/*.a
# Get rid of example Hello transformation
rm ${DESTDIR}/usr/lib/*LLVMHello.*
# Required for multilib.
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
for _header in config llvm-config; do
mv ${DESTDIR}/usr/include/llvm/Config/${_header}{,-64}.h
vinstall ${FILESDIR}/llvm-Config-${_header}.h 644 \
usr/include/llvm/Config ${_header}.h
done
fi
# Remove llvm-config-host in cross builds.
if [ "$CROSS_BUILD" ]; then
rm -f ${DESTDIR}/usr/bin/llvm-config-host
fi
}
clang-analyzer-git_package() {
noarch=yes
pycompile_dirs="usr/lib/clang-analyzer"
depends="clang-git-${version}_${revision} python"
conflicts="clang-analyzer>=0"
short_desc+=" - A source code analysis framework"
homepage="http://clang-analyzer.llvm.org/"
pkg_install() {
vmkdir usr/bin
vmkdir usr/lib/clang-analyzer
for f in build view; do
cp -r ${wrksrc}/tools/clang/tools/scan-${f} ${PKGDESTDIR}/usr/lib/clang-analyzer
cd ${PKGDESTDIR}/usr/bin
ln -s ../lib/${pkgname}/scan-${f}/scan-${f} scan-${f}
done
ln -sf /usr/bin/clang ${PKGDESTDIR}/usr/lib/${pkgname:0:14}/scan-build
}
}
clang-git_package() {
lib32disabled=yes
depends="libstdc++-devel binutils gcc"
conflicts="clang>=0"
short_desc+=" - C language family frontend"
homepage="http://clang.llvm.org/"
pkg_install() {
vmove usr/include/clang
vmove "usr/bin/*clang*"
vmove usr/bin/c-index-test
vmove usr/lib/clang
vmove "usr/lib/libclang*"
vmove "usr/share/man/man1/*clang*"
}
}
libllvm-git_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove usr/lib/libLLVM*.so
}
}
llvm-docs-git_package() {
noarch=yes
conflicts="llvm-docs>=0"
short_desc+=" - documentation files"
pkg_install() {
vmove usr/share/doc
}
}

View File

@ -1 +0,0 @@
MesaLib-git

View File

@ -1 +0,0 @@
MesaLib-git

View File

@ -1 +0,0 @@
MesaLib-git

View File

@ -1 +0,0 @@
MesaLib-git

View File

@ -1 +0,0 @@
MesaLib-git

View File

@ -1 +0,0 @@
MesaLib-git