Convert mesa 7.8.2 recipe to an actual recipe

This commit is contained in:
Ingo Weinhold
2013-05-04 02:48:06 +02:00
parent 2ed97855e1
commit 60401255e6

View File

@@ -1,26 +1,55 @@
###############################################################
# THIS IS NOT FOR GENERAL USE!
# This builds a buildpackage for the Haiku build system to link
# the OpenGL kit!!
###############################################################
SUMMARY="Multi-platform GL implementation"
DESCRIPTION="Mesa is an open-source implementation of the OpenGL specification - a system for rendering interactive 3D graphics.
DESCRIPTION="Mesa3D is a multi-platform GL implementation"
HOMEPAGE="http://www.freedesktop.org/"
A variety of device drivers allows Mesa to be used in many different environments ranging from software emulation to complete hardware acceleration for modern GPUs.
Mesa ties into several other open-source projects: the Direct Rendering Infrastructure and X.org to provide OpenGL support to users of X on Linux, FreeBSD and other operating systems."
HOMEPAGE="http://www.mesa3d.org/"
COPYRIGHT="1999-2012 Brian Paul All Rights Reserved."
LICENSE="MIT"
SRC_URI="ftp://freedesktop.org/pub/mesa/7.8.2/MesaLib-7.8.2.tar.bz2"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
CHECKSUM_MD5="6be2d343a0089bfd395ce02aaf8adb57"
MESSAGE="This port only builds with gcc2. Not for general use."
REVISION="2"
ARCHITECTURES="x86_gcc2 !x86"
PROVIDES="
mesa = $portVersion
lib:libglapi = $portVersion
lib:libglslcl = $portVersion
lib:libglslpp = $portVersion
lib:libglu = $portVersion
lib:libmesa = $portVersion
lib:libmesagallium = $portVersion
"
REQUIRES="
haiku >= $haikuVersion
"
BUILD_REQUIRES="
$REQUIRES
cmd:gcc
cmd:ld
cmd:make
cmd:sed
"
BUILD_PREREQUIRES="
haiku_devel >= $haikuVersion
"
SOURCE_DIR="Mesa-$portVersion"
BUILD()
{
export DEBUG=0
cd Mesa-7.8.2
make haiku
cd ..
sh $(haikuporter -t)/sys-libs/mesa/buildpackage.sh 7.8.2 ./Mesa-7.8.2
echo "There should be a Mesa OptionalBuild package in your home if everything went well!"
DEBUG=0 make $jobArgs haiku
}
LICENSE="MIT"
COPYRIGHT="1999-2012 Brian Paul All Rights Reserved."
INSTALL()
{
# "make install" seems to be broken, so we copy the headers and libraries
# manually.
mkdir -p $includeDir
cp -r include/* $includeDir
mkdir -p $developLibDir
cp lib/libglu.a src/mesa/*.a src/glsl/*/*.a $developLibDir
}