mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
70 lines
1.7 KiB
Bash
70 lines
1.7 KiB
Bash
SUMMARY="Load PNG graphics files for OpenGL"
|
|
DESCRIPTION="This is a library for OpenGL to load PNG graphics files \
|
|
as an OpenGL texture as easily as possible. It also has a number of \
|
|
options for generating the alpha channel and mipmaps. It is implemented \
|
|
using modified versions of the LibPNG 1.0.2 and ZLib 1.1.3 libraries."
|
|
HOMEPAGE="http://www.fifi.org/doc/libglpng-dev/glpng.html"
|
|
COPYRIGHT="1999-2014 Ben Wyatt"
|
|
LICENSE="Zlib"
|
|
REVISION="2"
|
|
SOURCE_URI="ftp://ftp.mirrorservice.org/sites/distfiles.gentoo.org/distfiles/glpng-1.46.tar.gz"
|
|
CHECKSUM_SHA256="4a3e489deca733524780470c4fb89806e354515b541efb58d44f2e11936dc39e"
|
|
SOURCE_DIR="glpng"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%.*}"
|
|
|
|
PROVIDES="
|
|
glpng$secondaryArchSuffix = $portVersion
|
|
lib:libglpng$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libpng16$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
glpng${secondaryArchSuffix}_devel
|
|
devel:libglpng$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
glpng$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libGL$secondaryArchSuffix
|
|
devel:libpng16$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
|
$cmakeDirArgs \
|
|
-DBUILD_STATIC_LIBS=OFF
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
prepareInstalledDevelLib libglpng
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$dataDir \
|
|
$documentationDir
|
|
}
|