diff --git a/sys-libs/tinygl/patches/tinygl-0.4.patchset b/sys-libs/tinygl/patches/tinygl-0.4.patchset new file mode 100644 index 000000000..576377b78 --- /dev/null +++ b/sys-libs/tinygl/patches/tinygl-0.4.patchset @@ -0,0 +1,37 @@ +From 62f2d8a5d25a48fc1b4a0b35106201b1d69bfa1b Mon Sep 17 00:00:00 2001 +From: Adrien Destugues +Date: Thu, 12 Nov 2015 15:55:18 +0100 +Subject: Configure for BeOS. + + +diff --git a/config.mk b/config.mk +index 5ec62ba..cd8b421 100644 +--- a/config.mk ++++ b/config.mk +@@ -18,10 +18,10 @@ LFLAGS= + # Select window API for TinyGL: + + # standard X11 GLX like API +-TINYGL_USE_GLX=y ++#TINYGL_USE_GLX=y + + # BEOS API +-#TINYGL_USE_BEOS=y ++TINYGL_USE_BEOS=y + + # Micro Windows NanoX API + #TINYGL_USE_NANOX=y +@@ -75,8 +75,8 @@ GL_DEPS= ../lib/libTinyGL.a + # Compile and link control + + # UNIX systems +-DIRS= src examples ++# DIRS= src examples + + # BeOS +-# DIRS= src BeOS ++DIRS= src BeOS + +-- +2.2.2 + diff --git a/sys-libs/tinygl/tinygl-0.4.recipe b/sys-libs/tinygl/tinygl-0.4.recipe new file mode 100644 index 000000000..9dfe5ef5a --- /dev/null +++ b/sys-libs/tinygl/tinygl-0.4.recipe @@ -0,0 +1,76 @@ +SUMMARY="Small, Free and Fast Subset of OpenGL" +DESCRIPTION="TinyGL is intended to be a very small implementation of a subset \ +of OpenGL * for embedded systems or games. It is a software only \ +implementation. Only the main OpenGL calls are implemented. + +The main strength of TinyGL is that it is fast and simple because it has not \ +to be exactly compatible with OpenGL. In particular, the texture mapping and \ +the geometrical transformations are very fast. TinyGL is a lot faster than \ +Mesa or the software Solaris OpenWin OpenGL implementation for the VReng \ +Virtual Reality engine for example. + +The main features of TinyGL are: +* Header compatible with OpenGL (the headers are adapted from the very good \ +Mesa by Brian Paul et al.) +* Zlib-like licence for easy integration in commercial designs (read the \ +LICENCE file). +* Subset of GLX for easy testing with X Window. +* GLX like API (NGLX) to use it with NanoX in Microwindows. +* Subset of BGLView under BeOS (thank to Peder Blekken). +* OpenGL like lightening. +* Limited support of OpenGL 1.1 arrays. +* Complete OpenGL selection mode handling for object picking. +* 16 bit Z buffer. 16 bit RGB display. High speed dithering to paletted 8 \ +bits if needed. High speed convertion to 24 or 32 bits. +* Fast Gouraud shadding optimized for 16 bit RGB. +* Fast texture mapping capabilities, with perspective correction and texture \ +objects. +* 32 bit float only arithmetic. +* Very small: compiled code size of about 40 kB on x86. +* C sources for GCC on 32/64 bit architectures. + +It has been tested succesfully on x86-Linux and sparc-Solaris." +HOMEPAGE="http://bellard.org/TinyGL/" +COPYRIGHT="1997-2002 Fabrice Bellard" +LICENSE="Zlib" +SOURCE_URI="http://bellard.org/TinyGL/TinyGL-0.4.tar.gz" +CHECKSUM_SHA256="8856da9f71d7c838da6c6746f7e8d93b65e0ca21f1ad24f834b46680c5f85de4" +SOURCE_DIR="TinyGL" +PATCHES="tinygl-$portVersion.patchset" +REVISION="1" + +ARCHITECTURES="x86_gcc2" +SECONDARY_ARCHITECTURES="" + +PROVIDES=" + tinygl = $portVersion + devel:libtinygl = $portVersion + devel:libglview = $portVersion +" + +REQUIRES=" + haiku +" + +BUILD_REQUIRES=" + haiku_devel +" + +BUILD_PREREQUIRES=" + cmd:gcc + cmd:make +" + +BUILD() +{ + make $jobArgs +} + +INSTALL() +{ + mkdir -p $developLibDir + mkdir -p $includeDir/TinyGL + + cp lib/*.a $developLibDir + cp -r include/* $includeDir/TinyGL +}