contrib/allegro4/Pkgfile

29 lines
671 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/
2014-11-10 13:28:07 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
2017-11-01 13:35:12 +01:00
# Depends on: alsa-lib glu libidn libpng libvorbis xorg-libxcursor xorg-libxpm xorg-libxxf86dga
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() {
2012-01-22 01:23:19 +01:00
cd allegro-$version
2008-03-13 12:06:27 +01:00
2019-09-08 13:32:32 +02:00
mkdir build
cd build
cmake .. \
2010-11-04 11:31:45 +01:00
-DCMAKE_INSTALL_PREFIX=/usr \
2019-09-08 13:32:32 +02:00
-DCMAKE_BUILD_TYPE=Release \
2020-01-08 11:36:44 +01:00
-DWANT_DOCS=OFF \
2019-09-08 13:32:32 +02:00
-GNinja
ninja -j ${JOBS:-1}
DESTDIR=$PKG ninja install
2008-03-13 12:06:27 +01:00
2020-01-08 11:36:44 +01:00
install -Dm644 ../misc/allegro.m4 \
$PKG/usr/share/aclocal/allegro.m4
2008-03-13 12:06:27 +01:00
}