mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-02 21:18:51 +02:00
86 lines
2.2 KiB
Bash
86 lines
2.2 KiB
Bash
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.
|
|
"
|
|
LICENSE="BSD (3-clause)"
|
|
COPYRIGHT="
|
|
2007 The Kronos Group Inc.
|
|
2002-2007 Milan Ikits
|
|
2002-2007 Marcelo E. Magallon
|
|
2002 Lev Povalahev
|
|
"
|
|
HOMEPAGE="http://glew.sourceforge.net"
|
|
SOURCE_URI="http://downloads.sourceforge.net/project/glew/glew/${portVersion}/glew-${portVersion}.tgz"
|
|
CHECKSUM_SHA256="aa25dc48ed84b0b64b8d41cdd42c8f40f149c37fa2ffa39cd97f42c78d128bc7"
|
|
REVISION="4"
|
|
|
|
ARCHITECTURES="x86 x86_gcc2 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PATCHES="glew-$portVersion.patchset"
|
|
|
|
PROVIDES="
|
|
glew$secondaryArchSuffix = $portVersion
|
|
lib:libglew$secondaryArchSuffix = $portVersion compat >= 1
|
|
lib:libglewmx$secondaryArchSuffix = $portVersion compat >= 1
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libgl$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
glew${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libglew$secondaryArchSuffix = $portVersion compat >= 1
|
|
devel:libglewmx$secondaryArchSuffix = $portVersion compat >= 1
|
|
"
|
|
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:make
|
|
libtool
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cp /system/data/libtool/config/config.guess config/
|
|
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
|
|
prepareInstalledDevelLib libGLEWmx
|
|
fixPkgconfig
|
|
|
|
packageEntries devel $developDir
|
|
packageEntries util $binDir
|
|
}
|