contrib/allegro/Pkgfile

21 lines
583 B
Plaintext
Raw Normal View History

2012-01-22 11:29:51 +11:00
# Description: A multi-platform game programming library for C/C++.
2019-10-13 18:27:08 +11:00
# URL: https://liballeg.org/
2014-11-10 23:28:07 +11:00
# Maintainer: Danny Rawlins, crux at romster dot me
2019-10-13 18:27:08 +11:00
# Depends on: flac glu gtk libtheora libwebp openal opus physfs xorg-libxi xorg-libxpm
2012-01-22 11:29:51 +11:00
name=allegro
2020-05-14 22:29:14 +10:00
version=5.2.6.0
2012-01-22 11:29:51 +11:00
release=1
2019-10-13 18:27:08 +11:00
source=(https://github.com/liballeg/allegro5/releases/download/$version/$name-$version.tar.gz)
2012-01-22 11:29:51 +11:00
build() {
2020-05-14 22:29:14 +10:00
cmake -S$name-$version -Bbuild -GNinja \
2012-01-22 11:29:51 +11:00
-DCMAKE_INSTALL_PREFIX=/usr \
2019-10-13 18:27:08 +11:00
-DCMAKE_BUILD_TYPE=Release \
-DWANT_DOCS_HTML=OFF \
2020-05-14 22:29:14 +10:00
-Wno-dev
2012-01-22 11:29:51 +11:00
2020-05-14 22:29:14 +10:00
cmake --build build
2020-07-08 13:01:36 +00:00
DESTDIR=$PKG cmake --install build
2012-01-22 11:29:51 +11:00
}