blob: 5b1b581825b42b3140ac75f4fc0eb8df98401c01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
pkgname=mingw-w64-freeglut
pkgver=3.6.0
pkgrel=1
pkgdesc="Provides functionality for small OpenGL programs (mingw-w64)"
arch=(any)
url="http://freeglut.sourceforge.net/"
license=("MIT")
depends=('mingw-w64-crt')
makedepends=('mingw-w64-cmake')
options=(!strip !buildflags staticlibs)
source=("https://downloads.sourceforge.net/freeglut/freeglut-${pkgver}.tar.gz")
sha256sums=('9c3d4d6516fbfa0280edc93c77698fb7303e443c1aaaf37d269e3288a6c3ea52')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
build() {
cd "${srcdir}/freeglut-${pkgver}"
for _arch in ${_architectures}; do
${_arch}-cmake -DFREEGLUT_BUILD_DEMOS=OFF -B build-${_arch} .
make -C build-${_arch}
done
}
package() {
for _arch in $_architectures; do
cd "${srcdir}/freeglut-${pkgver}/build-${_arch}"
make DESTDIR="$pkgdir" install
install -m644 ../include/GL/glut.h "$pkgdir"/usr/${_arch}/include/GL
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
done
}
|