blob: da7b911ce974c47aeed2d65ea4979756545b2929 (
plain)
1 # Description: A multi-platform game programming library for C/C++.
2 # URL: https://liballeg.org/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: flac glu gtk libtheora libwebp openal opus physfs xorg-libxi xorg-libxpm
5
6 name=allegro
7 version=5.2.7.0
8 release=1
9 source=(https://github.com/liballeg/allegro5/releases/download/$version/$name-$version.tar.gz)
10
11 build() {
12 cmake -S $name-$version -B build -G Ninja \
13 -D CMAKE_INSTALL_PREFIX=/usr \
14 -D CMAKE_BUILD_TYPE=Release \
15 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
16 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
17 -D WANT_DOCS_HTML=OFF \
18 -Wno-dev
19
20 cmake --build build
21 DESTDIR=$PKG cmake --install build
22 }
|