contrib/allegro4/Pkgfile

27 lines
759 B
Plaintext
Raw Normal View History

2008-03-13 12:06:27 +01:00
# Description: A multi-platform game programming library for C/C++.
2019-09-08 13:32:32 +02:00
# URL: https://liballeg.org/
# Maintainer: UNMAINTAINED
# Depends on: alsa-lib glu libpng libvorbis xorg-libxcursor xorg-libxpm
2008-03-13 12:06:27 +01:00
2012-01-22 01:23:19 +01:00
name=allegro4
2020-01-08 11:36:44 +01:00
version=4.4.3.1
2019-09-08 13:32:32 +02:00
release=1
2020-01-08 11:36:44 +01:00
source=(https://github.com/liballeg/allegro5/releases/download/$version/allegro-$version.tar.gz)
2008-03-13 12:06:27 +01:00
build() {
2020-11-08 10:31:02 +01:00
cmake -S allegro-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
2020-12-07 00:48:32 +01:00
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
2020-11-08 10:31:02 +01:00
-D WANT_DOCS_HTML=OFF \
-Wno-dev
2019-09-08 13:32:32 +02:00
2020-11-07 16:20:00 +01:00
cmake --build build -j ${JOBS:-1}
DESTDIR=$PKG cmake --install build
2008-03-13 12:06:27 +01:00
2020-11-07 16:20:00 +01:00
install -Dm644 allegro-$version/misc/allegro.m4 \
2020-01-08 11:36:44 +01:00
$PKG/usr/share/aclocal/allegro.m4
rm -rf $PKG/usr/doc
2008-03-13 12:06:27 +01:00
}