Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Hacked PKGBUILD for glsl-debugger-git
diff --git a/glsldb/DebugLib/generator/Enumerants.pl b/glsldb/DebugLib/generator/Enumerants.pl
index 6cf68f2..2051f9f 100644
--- a/glsldb/DebugLib/generator/Enumerants.pl
+++ b/glsldb/DebugLib/generator/Enumerants.pl
@@ -28,6 +28,7 @@
################################################################################
+use lib '.';
use Getopt::Std;
require genTools;
our %files;
diff --git a/glsldb/DebugLib/generator/FunctionHooks.pl b/glsldb/DebugLib/generator/FunctionHooks.pl
index fa18a91..f99e8ae 100644
--- a/glsldb/DebugLib/generator/FunctionHooks.pl
+++ b/glsldb/DebugLib/generator/FunctionHooks.pl
@@ -32,6 +32,7 @@
#
################################################################################
+use lib '.';
use Getopt::Std;
require prePostExecuteList;
require genTools;
diff --git a/glsldb/DebugLib/generator/FunctionList.pl b/glsldb/DebugLib/generator/FunctionList.pl
index 44a5916..85cc77a 100644
--- a/glsldb/DebugLib/generator/FunctionList.pl
+++ b/glsldb/DebugLib/generator/FunctionList.pl
@@ -31,6 +31,7 @@
#
################################################################################
+use lib '.';
require genTools;
# edit this list for new extensions that include drawcalls
diff --git a/glsldb/DebugLib/generator/FunctionPointerTypes.pl b/glsldb/DebugLib/generator/FunctionPointerTypes.pl
index e4e2fb2..951f20b 100644
--- a/glsldb/DebugLib/generator/FunctionPointerTypes.pl
+++ b/glsldb/DebugLib/generator/FunctionPointerTypes.pl
@@ -32,6 +32,7 @@
#
################################################################################
+use lib '.';
require genTypes;
require genTools;
our %regexps;
diff --git a/glsldb/DebugLib/generator/GetProcAddressHook.pl b/glsldb/DebugLib/generator/GetProcAddressHook.pl
index d4804b2..1a67cc7 100644
--- a/glsldb/DebugLib/generator/GetProcAddressHook.pl
+++ b/glsldb/DebugLib/generator/GetProcAddressHook.pl
@@ -33,6 +33,7 @@
################################################################################
+use lib '.';
require genTools;
our %regexps;
diff --git a/glsldb/DebugLib/generator/ReplayFunc.pl b/glsldb/DebugLib/generator/ReplayFunc.pl
index ec83a21..ac77323 100644
--- a/glsldb/DebugLib/generator/ReplayFunc.pl
+++ b/glsldb/DebugLib/generator/ReplayFunc.pl
@@ -32,6 +32,7 @@
#
################################################################################
+use lib '.';
require prePostExecuteList;
require genTools;
require genTypes;
pkgname=glsl-debugger-git
pkgver=r390.06cb427
pkgrel=1
epoch=1
pkgdesc="GLSL source level debugger. This is the Open Source public release of the project originally known as glslDevil."
arch=('i686' 'x86_64')
url="http://glsl-debugger.github.io/"
license=('custom')
depends=('qt4' 'glew' 'freeglut')
makedepends=('git' 'cmake')
source=("$pkgname::git://github.com/GLSL-Debugger/GLSL-Debugger.git"
"hack.patch")
md5sums=('SKIP'
'SKIP')
pkgver() {
cd "$srcdir/$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
mkdir -p "$srcdir/build"
cd "$srcdir/$pkgname"
patch -p1 -i "$srcdir/hack.patch"
cd "$srcdir/build"
cmake "../$pkgname" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_BUILD_TYPE=Release
make
}
package() {
cd "$srcdir/build"
#install files manually
install -dm755 "$pkgdir"/usr/{lib,bin}
cp -a lib/* "$pkgdir/usr/lib"
cp -a bin/* "$pkgdir/usr/bin"
# install license file
install -Dm644 "$srcdir/$pkgname/LICENSE.TXT" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.