summaryrefslogtreecommitdiff
path: root/freeglut/Pkgfile
diff options
context:
space:
mode:
authorDanny Rawlins <monster.romster@gmail.com>2020-08-05 22:31:01 +1000
committerDanny Rawlins <monster.romster@gmail.com>2020-08-05 22:31:01 +1000
commit909516aa53609b7126cfc625c928f8c382268542 (patch)
treec452dc635987ff692780fe41c8d50e60e0b27091 /freeglut/Pkgfile
parent63aaf43cf9b47033158b183c491b91a4bee4b8d6 (diff)
downloadopt-909516aa53609b7126cfc625c928f8c382268542.tar.gz
opt-909516aa53609b7126cfc625c928f8c382268542.tar.xz
freeglut: gcc10 fix
Diffstat (limited to 'freeglut/Pkgfile')
-rw-r--r--freeglut/Pkgfile16
1 files changed, 7 insertions, 9 deletions
diff --git a/freeglut/Pkgfile b/freeglut/Pkgfile
index cdca64fc4..e1fe875ad 100644
--- a/freeglut/Pkgfile
+++ b/freeglut/Pkgfile
@@ -5,22 +5,20 @@
name=freeglut
version=3.2.1
-release=1
-source=(https://downloads.sourceforge.net/$name/$name-$version.tar.gz)
+release=2
+source=(https://downloads.sourceforge.net/$name/$name-$version.tar.gz
+ gcc10.patch)
build() {
- cd $name-$version
+ patch -d $name-$version -p1 -i $SRC/gcc10.patch
- install -d build
- cd build
-
- cmake .. \
+ cmake -S$name-$version -Bbuild -GNinja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release
- make
- make DESTDIR=$PKG install
+ cmake --build build
+ DESTDIR=$PKG cmake --install build
ln -s glut.pc $PKG/usr/lib/pkgconfig/freeglut.pc
}

Generated by cgit