core/freeglut/PKGBUILD

35 lines
1010 B
Bash
Raw Normal View History

2013-06-20 19:57:42 +08:00
#maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
#contributions from Arch: https://www.archlinux.org/packages/extra/x86_64/freeglut/
2010-03-14 23:48:48 +08:00
pkgname=freeglut
2013-06-20 19:57:42 +08:00
pkgver=2.8.1
2013-06-24 05:13:55 +08:00
pkgrel=2
2010-03-14 23:48:48 +08:00
pkgdesc="Provides functionality for small OpenGL programs"
2013-06-20 19:57:42 +08:00
arch=('x86_64')
2010-03-14 23:48:48 +08:00
url="http://freeglut.sourceforge.net/"
license=('MIT')
2013-06-20 19:57:42 +08:00
depends=('libxxf86vm' 'libgl' 'libxi')
makedepends=('mesa' 'glu' 'libxxf86vm')
2013-06-24 05:13:55 +08:00
provides=('glut')
conflicts=('glut')
replaces=('glut')
2010-03-14 23:48:48 +08:00
options=('!libtool')
2013-06-20 19:57:42 +08:00
source=(http://downloads.sourceforge.net/freeglut/${pkgname}-${pkgver}.tar.gz)
md5sums=('918ffbddcffbac83c218bc52355b6d5a')
2010-03-14 23:48:48 +08:00
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
2013-06-20 19:57:42 +08:00
# smooth_opengl3 demo doesn't build with recent mesa, Gentoo bug #428382
sed -i "s/smooth_opengl3 //" progs/demos/Makefile.*
2010-03-14 23:48:48 +08:00
2013-06-20 19:57:42 +08:00
autoreconf -vfi
./configure --prefix=/usr --disable-static
make all
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
2010-03-14 23:48:48 +08:00
}