mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
GLEW: bump version, recipe cleanup (#1766)
This commit is contained in:
81
media-libs/glew/glew-2.1.0.recipe
Normal file
81
media-libs/glew/glew-2.1.0.recipe
Normal file
@@ -0,0 +1,81 @@
|
||||
SUMMARY="The OpenGL Extension Wrangler Library"
|
||||
DESCRIPTION="The OpenGL Extension Wrangler Library (GLEW) is a cross-platform \
|
||||
open-source C/C++ extension loading library. GLEW provides efficient run-time \
|
||||
mechanisms for determining which OpenGL extensions are supported on the target \
|
||||
platform."
|
||||
HOMEPAGE="http://glew.sourceforge.net/"
|
||||
COPYRIGHT="2007 The Kronos Group Inc.
|
||||
2002-2007 Milan Ikits
|
||||
2002-2007 Marcelo E. Magallon
|
||||
2002 Lev Povalahev
|
||||
1999-2007 Brian Paul"
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://downloads.sourceforge.net/project/glew/glew/${portVersion}/glew-${portVersion}.tgz"
|
||||
CHECKSUM_SHA256="04de91e7e6763039bc11940095cd9c7f880baba82196a7765f727ac05a993c95"
|
||||
PATCHES="glew-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
|
||||
PROVIDES="
|
||||
glew$secondaryArchSuffix = $portVersion
|
||||
cmd:glewinfo = $portVersion
|
||||
cmd:visualinfo = $portVersion
|
||||
lib:libglew$secondaryArchSuffix = $portVersion compat >= 2
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libgl$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
glew${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libglew$secondaryArchSuffix = $portVersion compat >= 2
|
||||
"
|
||||
REQUIRES_devel="
|
||||
glew$secondaryArchSuffix == $portVersion base
|
||||
devel:libGL$secondaryArchSuffix
|
||||
devel:libGLU$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_util="
|
||||
glew${secondaryArchSuffix}_util = $portVersion
|
||||
cmd:glewinfo$secondaryArchSuffix
|
||||
cmd:visualinfo$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES_util="
|
||||
glew$secondaryArchSuffix == $portVersion base
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libglew$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
devel:libgl$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make $jobArgs GLEW_DEST=$prefix BINDIR=$binDir LIBDIR=$libDir INCDIR=$includeDir/GL
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install.all GLEW_DEST=$prefix BINDIR=$binDir LIBDIR=$libDir INCDIR=$includeDir/GL
|
||||
|
||||
prepareInstalledDevelLib libGLEW
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel $developDir
|
||||
packageEntries util $binDir
|
||||
}
|
||||
Reference in New Issue
Block a user