From 48a8ccf74647db9303051022e2253f00b4e483d8 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck Date: Fri, 1 Mar 2013 21:12:22 +0000 Subject: [PATCH] mesa: Add 9.1 bep; rename pkg script * Working status is unknown and needs testing. --- sys-libs/mesa/mesa-9.0.1.bep | 2 +- sys-libs/mesa/mesa-9.0.2.bep | 2 +- sys-libs/mesa/mesa-9.0.bep | 2 +- sys-libs/mesa/mesa-9.1.0.bep | 43 +++++++++++++++++++ .../mesa/{mesapkg-9.0.x.sh => mesapkg-9.x.sh} | 0 5 files changed, 46 insertions(+), 3 deletions(-) create mode 100644 sys-libs/mesa/mesa-9.1.0.bep rename sys-libs/mesa/{mesapkg-9.0.x.sh => mesapkg-9.x.sh} (100%) diff --git a/sys-libs/mesa/mesa-9.0.1.bep b/sys-libs/mesa/mesa-9.0.1.bep index 8aaa51ef9..318451817 100644 --- a/sys-libs/mesa/mesa-9.0.1.bep +++ b/sys-libs/mesa/mesa-9.0.1.bep @@ -16,7 +16,7 @@ BUILD { cd Mesa-9.0.1 scons cd .. - sh $(haikuporter -t)/sys-libs/mesa/mesapkg-9.0.x.sh 9.0.1 ./Mesa-9.0.1 + sh $(haikuporter -t)/sys-libs/mesa/mesapkg-9.x.sh 9.0.1 ./Mesa-9.0.1 echo "There should be a Mesa OptionalBuild package in your home if everything went well!" } diff --git a/sys-libs/mesa/mesa-9.0.2.bep b/sys-libs/mesa/mesa-9.0.2.bep index fdd5f0091..c1b87d2c7 100644 --- a/sys-libs/mesa/mesa-9.0.2.bep +++ b/sys-libs/mesa/mesa-9.0.2.bep @@ -35,7 +35,7 @@ BUILD { cd Mesa-9.0.2 scons cd .. - sh $(haikuporter -t)/sys-libs/mesa/mesapkg-9.0.x.sh 9.0.2 ./Mesa-9.0.2 + sh $(haikuporter -t)/sys-libs/mesa/mesapkg-9.x.sh 9.0.2 ./Mesa-9.0.2 echo "There should be a Mesa OptionalBuild package in your home if everything went well!" } diff --git a/sys-libs/mesa/mesa-9.0.bep b/sys-libs/mesa/mesa-9.0.bep index ac73db70d..5775d90da 100644 --- a/sys-libs/mesa/mesa-9.0.bep +++ b/sys-libs/mesa/mesa-9.0.bep @@ -16,7 +16,7 @@ BUILD { cd Mesa-9.0 scons cd .. - sh $(haikuporter -t)/sys-libs/mesa/mesapkg-9.0.x.sh 9.0 ./Mesa-9.0 + sh $(haikuporter -t)/sys-libs/mesa/mesapkg-9.x.sh 9.0 ./Mesa-9.0 echo "There should be a Mesa OptionalBuild package in your home if everything went well!" } diff --git a/sys-libs/mesa/mesa-9.1.0.bep b/sys-libs/mesa/mesa-9.1.0.bep new file mode 100644 index 000000000..2089cca89 --- /dev/null +++ b/sys-libs/mesa/mesa-9.1.0.bep @@ -0,0 +1,43 @@ +############################################################### +# THIS IS NOT FOR GENERAL USE! +# This builds a buildpackage for the Haiku build system to link +# the OpenGL kit!! +############################################################### + +DESCRIPTION="Mesa3D is a multi-platform GL implementation" +HOMEPAGE="http://www.freedesktop.org/" +SRC_URI="ftp://freedesktop.org/pub/mesa/9.1/MesaLib-9.1.tar.bz2" +REVISION="1" +STATUS_HAIKU="unstable" +DEPEND="scons" +CHECKSUM_MD5="d3891e02215422e120271d976ff1947e" +MESSAGE="This port only builds with gcc4. Not for general use." +BUILD { + # this stuff isn't obvious... so notify user + echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" + echo "This generates a Mesa3D build package for Haiku... not for general use" + echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" + which llvm-link > /dev/null + if [[ $? -eq 0 ]]; then + echo "+ llvm enabled build: yes" + LLVM_VER=$(llvm-link --version | grep "version") + echo " -" $LLVM_VER + echo " - You will need to use an llvm optional build package" + echo " while compiling Haiku Gallium GL add-ons" + else + echo "+ llvm enabled build: no" + echo " - llvm optional build package will not be required" + echo " while compiling Haiku Gallium GL add-ons" + echo " - To take advantage of llvm, install llvm before compiling" + fi + echo "" + read -p "Press [Enter] to continue..." + cd Mesa-9.1.0 + scons + cd .. + sh $(haikuporter -t)/sys-libs/mesa/mesapkg-9.x.sh 9.1.0 ./Mesa-9.1 + echo "There should be a Mesa OptionalBuild package in your home if everything went well!" +} + +LICENSE="MIT" +COPYRIGHT="1999-2012 Brian Paul All Rights Reserved." diff --git a/sys-libs/mesa/mesapkg-9.0.x.sh b/sys-libs/mesa/mesapkg-9.x.sh similarity index 100% rename from sys-libs/mesa/mesapkg-9.0.x.sh rename to sys-libs/mesa/mesapkg-9.x.sh