1
0
forked from ports/contrib

26 lines
787 B
Plaintext
Raw Normal View History

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