mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 05:28:53 +02:00
63 lines
1.3 KiB
Bash
63 lines
1.3 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="1"
|
|
SOURCE_URI="ftp://ftp.mirrorservice.org/sites/distfiles.gentoo.org/distfiles/glpng-1.46.tar.gz"
|
|
CHECKSUM_SHA256="4a3e489deca733524780470c4fb89806e354515b541efb58d44f2e11936dc39e"
|
|
SOURCE_DIR="glpng"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86_64"
|
|
|
|
PROVIDES="
|
|
glpng = $portVersion
|
|
lib:libglpng = 1.46 compat >= 1
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
lib:libGL
|
|
lib:libpng16
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
glpng_devel
|
|
devel:libglpng = 1.46 compat >= 1
|
|
"
|
|
REQUIRES_devel="
|
|
glpng == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
devel:libGL
|
|
devel:libpng16
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
make DESTDIR=$prefix DOCDIR=$docDir
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $includeDir
|
|
|
|
make install DESTDIR=$prefix DOCDIR=$docDir
|
|
|
|
mv $prefix/include/* $includeDir
|
|
rm -r $prefix/include
|
|
|
|
prepareInstalledDevelLib libglpng
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|