contrib/allegro/Pkgfile

23 lines
671 B
Plaintext
Raw Normal View History

2012-01-22 01:29:51 +01:00
# Description: A multi-platform game programming library for C/C++.
2019-10-13 09:27:08 +02:00
# URL: https://liballeg.org/
2014-11-10 13:28:07 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
2019-10-13 09:27:08 +02:00
# Depends on: flac glu gtk libtheora libwebp openal opus physfs xorg-libxi xorg-libxpm
2012-01-22 01:29:51 +01:00
name=allegro
2022-06-25 16:51:06 +02:00
version=5.2.8.0
2012-01-22 01:29:51 +01:00
release=1
2019-10-13 09:27:08 +02:00
source=(https://github.com/liballeg/allegro5/releases/download/$version/$name-$version.tar.gz)
2012-01-22 01:29:51 +01:00
build() {
2020-11-08 10:24:00 +01:00
cmake -S $name-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
2020-12-07 00:48:25 +01:00
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
2020-11-08 10:24:00 +01:00
-D WANT_DOCS_HTML=OFF \
-Wno-dev
2012-01-22 01:29:51 +01:00
2020-05-14 14:29:14 +02:00
cmake --build build
2020-07-08 15:01:36 +02:00
DESTDIR=$PKG cmake --install build
2012-01-22 01:29:51 +01:00
}