Difference between revisions of "FreeGLUT"

From CBLFS
Jump to navigationJump to search
(convert sed script into patch)
 
(12 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{| style="text-align: left; background-color: AliceBlue;"
 
{| style="text-align: left; background-color: AliceBlue;"
 +
|-valign="top"
 +
!Download Source:
 +
| http://downloads.sourceforge.net/freeglut/freeglut-{{FreeGLUT-Version}}.tar.gz
 
|-
 
|-
!Download Source:
+
!Download Patch:
| http://prdownloads.sourceforge.net/freeglut/freeglut-2.4.0.tar.gz
+
| http://svn.cross-lfs.org/svn/repos/patches/freeglut/freeglut-{{FreeGLUT-Version}}-forgive_ISO_C90_warnings-1.patch
 
|}
 
|}
  
 
----
 
----
 +
{{Package-Introduction|FreeGLUT is an alternative to the OpenGL Utility Toolkit (GLUT) library which allows the creation and management of windows containing OpenGL contexts and also read the mouse, keyboard and joystick functions.|http://freeglut.sourceforge.net/}}
 +
  
 
== Dependencies ==
 
== Dependencies ==
Line 13: Line 18:
  
 
== Non-Multilib ==
 
== Non-Multilib ==
 +
Apply the following patch:
 +
 +
patch -Np1 -i ../freeglut-{{FreeGLUT-Version}}-forgive_ISO_C90_warnings-1.patch
  
 
Compile the package:
 
Compile the package:
  
  ./configure --prefix=/usr --x-libraries=${XORG_PREFIX}/lib &&
+
  ./configure --prefix=/usr &&
 
  make
 
  make
  
Line 22: Line 30:
  
 
  make install &&
 
  make install &&
  install -v -d -m755 /usr/share/doc/freeglut-2.4.0 &&
+
  install -v -d -m755 /usr/share/doc/freeglut-{{FreeGLUT-Version}} &&
 
  install -v -m644 doc/freeglut_user_interface.html \
 
  install -v -m644 doc/freeglut_user_interface.html \
     /usr/share/doc/freeglut-2.4.0
+
     /usr/share/doc/freeglut-{{FreeGLUT-Version}}
  
 
== Multilib ==
 
== Multilib ==
  
 
=== 32Bit ===
 
=== 32Bit ===
 +
 +
Apply the following patch:
 +
 +
patch -Np1 -i ../freeglut-{{FreeGLUT-Version}}-forgive_ISO_C90_warnings-1.patch
  
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILD32}" ./configure --prefix=/usr &&
+
  CC="gcc ${BUILD32}" USE_ARCH=32 \
 +
./configure --prefix=/usr &&
 
  make
 
  make
  
Line 40: Line 53:
  
 
=== N32 ===
 
=== N32 ===
 +
Apply the following patch:
 +
 +
patch -Np1 -i ../freeglut-{{FreeGLUT-Version}}-forgive_ISO_C90_warnings-1.patch
  
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 \
+
  CC="gcc ${BUILDN32}" USE_ARCH=n32 \
    --x-libraries=${XORG_PREFIX}/lib32 &&
+
./configure --prefix=/usr --libdir=/usr/lib32 &&
 
  make
 
  make
  
Line 52: Line 68:
  
 
=== 64Bit ===
 
=== 64Bit ===
 +
Apply the following patch:
 +
 +
patch -Np1 -i ../freeglut-{{FreeGLUT-Version}}-forgive_ISO_C90_warnings-1.patch
  
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 \
+
  CC="gcc ${BUILD64}" USE_ARCH=64 \
    --x-libraries=${XORG_PREFIX}/lib64 &&
+
./configure --prefix=/usr --libdir=/usr/lib64 &&
 
  make
 
  make
  
Line 62: Line 81:
  
 
  make install &&
 
  make install &&
  install -v -d -m755 /usr/share/doc/freeglut-2.4.0 &&
+
  install -v -d -m755 /usr/share/doc/freeglut-{{FreeGLUT-Version}} &&
 
  install -v -m644 doc/freeglut_user_interface.html \
 
  install -v -m644 doc/freeglut_user_interface.html \
     /usr/share/doc/freeglut-2.4.0
+
     /usr/share/doc/freeglut-{{FreeGLUT-Version}}
 +
 
 +
= Contents =
 +
 
 +
{| style="text-align: left;"
 +
|-valign="top"
 +
! Installed Programs:
 +
| None
 +
|-valign="top"
 +
! Installed Libraries:
 +
| libglut.{so,a}
 +
|-valign="top"
 +
! Installed Directories:
 +
| /usr/share/doc/freeglut-{{FreeGLUT-Version}}
 +
|}
 +
 
 +
=== Short Descriptions ===
 +
 
 +
{| style="text-align: left;"
 +
|-valign="top"
 +
! libglut.{so,a}
 +
| contains functions that implement the OpenGL Utility Toolkit.
 +
|}
 +
 
 +
[[Category:Graphics Libraries]]

Latest revision as of 05:36, 12 April 2009

Download Source: http://downloads.sourceforge.net/freeglut/freeglut-2.4.0.tar.gz
Download Patch: http://svn.cross-lfs.org/svn/repos/patches/freeglut/freeglut-2.4.0-forgive_ISO_C90_warnings-1.patch

Introduction to FreeGLUT

FreeGLUT is an alternative to the OpenGL Utility Toolkit (GLUT) library which allows the creation and management of windows containing OpenGL contexts and also read the mouse, keyboard and joystick functions.

Project Homepage: http://freeglut.sourceforge.net/


Dependencies

Required

Non-Multilib

Apply the following patch:

patch -Np1 -i ../freeglut-2.4.0-forgive_ISO_C90_warnings-1.patch

Compile the package:

./configure --prefix=/usr &&
make

Install the package

make install &&
install -v -d -m755 /usr/share/doc/freeglut-2.4.0 &&
install -v -m644 doc/freeglut_user_interface.html \
    /usr/share/doc/freeglut-2.4.0

Multilib

32Bit

Apply the following patch:

patch -Np1 -i ../freeglut-2.4.0-forgive_ISO_C90_warnings-1.patch

Compile the package:

CC="gcc ${BUILD32}" USE_ARCH=32 \
./configure --prefix=/usr &&
make

Install the package

make install

N32

Apply the following patch:

patch -Np1 -i ../freeglut-2.4.0-forgive_ISO_C90_warnings-1.patch

Compile the package:

CC="gcc ${BUILDN32}" USE_ARCH=n32 \
./configure --prefix=/usr --libdir=/usr/lib32 &&
make

Install the package

make install

64Bit

Apply the following patch:

patch -Np1 -i ../freeglut-2.4.0-forgive_ISO_C90_warnings-1.patch

Compile the package:

CC="gcc ${BUILD64}" USE_ARCH=64 \
./configure --prefix=/usr --libdir=/usr/lib64 &&
make

Install the package

make install &&
install -v -d -m755 /usr/share/doc/freeglut-2.4.0 &&
install -v -m644 doc/freeglut_user_interface.html \
    /usr/share/doc/freeglut-2.4.0

Contents

Installed Programs: None
Installed Libraries: libglut.{so,a}
Installed Directories: /usr/share/doc/freeglut-2.4.0

Short Descriptions

libglut.{so,a} contains functions that implement the OpenGL Utility Toolkit.
Retrieved from "?title=FreeGLUT&oldid=18100"