contrib/allegro/Pkgfile

23 lines
671 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
2021-03-08 17:36:59 +11:00
version=5.2.7.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-11-08 09:24:00 +00:00
cmake -S $name-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
2020-12-06 23:48:25 +00:00
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
2020-11-08 09:24:00 +00:00
-D WANT_DOCS_HTML=OFF \
-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
}