summaryrefslogtreecommitdiff
path: root/libre/ogre-libre/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/ogre-libre/PKGBUILD')
-rw-r--r--libre/ogre-libre/PKGBUILD32
1 files changed, 30 insertions, 2 deletions
diff --git a/libre/ogre-libre/PKGBUILD b/libre/ogre-libre/PKGBUILD
index 57c001e61..9648e5f24 100644
--- a/libre/ogre-libre/PKGBUILD
+++ b/libre/ogre-libre/PKGBUILD
@@ -43,16 +43,44 @@ makedepends=(
mercurial
ttf-dejavu
)
-source=(
+mksource=(
ogre::hg+https://bitbucket.org/sinbad/ogre/src#tag=v${pkgver//./-}
+ libre.patch
)
-sha512sums=(
+source=(
+ https://repo.parabolagnulinux.org/other/$pkgbase/$pkgbase-libre-$pkgver.tar.xz
+)
+mksha512sums=(
SKIP
+ e668b39e4784e4b1b17ec6e21b5cef45f29a8d8e73288817ce7832d1fe24527d5e0d4fd67b8f756db301e4211ceac2d5c387c1599e799ca41de0593457204767
+)
+sha512sums=(
+ 9be9dbd78e09c8c50cf833004bfa3fbb7b3cd2a0f52a4e8c4beb1eb30357625455d65906bd007be6c2be9cf90a0e335d5ad7c5011e038c3d0754d5b3b18c4a2a
)
+mksource() {
+ cd ${pkgbase}
+
+ # remove nonfree files
+ rm -v RenderSystems/GL/include/GL/{gl{,ext},wglext,glx{tokens,ext}}.h
+ rm -v RenderSystems/GL3Plus/include/GL/glxtokens-backup.h
+ rm -rv Samples/Media/materials/textures/nvidia
+ rm -v Samples/Media/packs/chiropteraDM.{pk3,txt}
+ rm -v CMake/Templates/quakemap{,_d}.cfg.in
+ patch -Np1 -i $srcdir/libre.patch
+}
+
build() {
cd ${pkgbase}
+ # add symlinks to point to mesa header files
+ cd RenderSystems/GL/include/GL
+ ln -sv /usr/include/GL/gl.h gl.h
+ ln -sv /usr/include/GL/glext.h glext.h
+ ln -sv /usr/include/GL/wglext.h wglext.h
+ ln -sv /usr/include/GL/glxtokens.h glxtokens.h
+ ln -sv /usr/include/GL/glxext.h glxext.h
+
# get a clean build dir
[[ -d build ]] && rm -vrf build
mkdir -v build && cd build