mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
* Build a separate devel package. The base package is empty now. We can use it as a requires for haiku.hpkg to automatically include the copyright info. * Include the private headers. They are needed by the Haiku build.
81 lines
2.2 KiB
Plaintext
81 lines
2.2 KiB
Plaintext
# NOTE: This recipe doesn't generate packages for general use:
|
|
# * mesa_devel: Is a service package for the Haiku build system. It contains the
|
|
# Mesa libraries and headers, which are built into the Haiku system package.
|
|
# * mesa: Is an empty package which we keep as a dependency for the Haiku system
|
|
# package, mainly to keep the copyright info.
|
|
|
|
SUMMARY="Multi-platform GL implementation"
|
|
DESCRIPTION="Mesa is an open-source implementation of the OpenGL specification - a system for rendering interactive 3D graphics.
|
|
|
|
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"
|
|
CHECKSUM_MD5="6be2d343a0089bfd395ce02aaf8adb57"
|
|
REVISION="3"
|
|
ARCHITECTURES="x86_gcc2 !x86"
|
|
|
|
PROVIDES="
|
|
mesa = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku >= $haikuVersion
|
|
"
|
|
BUILD_REQUIRES="
|
|
cmd:find
|
|
cmd:gcc
|
|
cmd:ld
|
|
cmd:make
|
|
cmd:sed
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
haiku_devel >= $haikuVersion
|
|
"
|
|
|
|
SOURCE_DIR="Mesa-$portVersion"
|
|
|
|
BUILD()
|
|
{
|
|
DEBUG=0 make $jobArgs haiku
|
|
}
|
|
|
|
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
|
|
|
|
mesaPrivateHeaders=$includeDir/mesa_private
|
|
for header in $(find src -name '*\.h' | sed "s,^src/,,"); do
|
|
mkdir -p $mesaPrivateHeaders/$(dirname $header)
|
|
cp src/$header $mesaPrivateHeaders/$header
|
|
done
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
# ----- devel package -------------------------------------------------------
|
|
|
|
PROVIDES_devel="
|
|
mesa_devel = $portVersion
|
|
devel:libglapi = $portVersion
|
|
devel:libglslcl = $portVersion
|
|
devel:libglslpp = $portVersion
|
|
devel:libglu = $portVersion
|
|
devel:libmesa = $portVersion
|
|
devel:libmesagallium = $portVersion
|
|
"
|
|
REQUIRES_devel="
|
|
mesa == $portVersion base
|
|
"
|