2011-06-23 02:36:32 +08:00
|
|
|
#
|
|
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
|
|
|
|
# include global config
|
|
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
2010-03-14 23:48:48 +08:00
|
|
|
|
|
|
|
pkgname=freeglut
|
|
|
|
pkgver=2.6.0
|
2011-06-23 02:36:32 +08:00
|
|
|
pkgrel=2
|
2010-03-14 23:48:48 +08:00
|
|
|
pkgdesc="Provides functionality for small OpenGL programs"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://freeglut.sourceforge.net/"
|
|
|
|
license=('MIT')
|
|
|
|
depends=('libxxf86vm' 'mesa' 'libxi')
|
|
|
|
replaces=('glut')
|
|
|
|
provides=('glut')
|
|
|
|
conflicts=('glut')
|
|
|
|
options=('!libtool')
|
|
|
|
source=(http://downloads.sourceforge.net/freeglut/${pkgname}-${pkgver}.tar.gz \
|
|
|
|
2.6.0-GFX_radeon.patch)
|
|
|
|
md5sums=('39f0f2de89f399529d2b981188082218' '6d0a018fe4f0bc9ace2b244ca59514d3')
|
|
|
|
sha1sums=('68306c4486c13d005a4e4d54035e0c0b1bdc220b' '2e392c7d0b60016ec89e6a5edf504f5722351b95')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
# fixes an issue with the radeon[hd] ATI opensource drivers
|
|
|
|
# ref: http://bugs.gentoo.org/show_bug.cgi?id=295163
|
|
|
|
patch -p0 -i "${srcdir}/2.6.0-GFX_radeon.patch" || return 1
|
|
|
|
|
|
|
|
./configure --prefix=/usr || return 1
|
|
|
|
make all || return 1
|
|
|
|
make DESTDIR="${pkgdir}" install || return 1
|
|
|
|
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
|
|
|
|
}
|