contrib/allegro4/Pkgfile

43 lines
1.2 KiB
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
2019-10-13 10:06:05 +02:00
version=4.4.2
2019-09-08 13:32:32 +02:00
release=1
2019-10-13 10:06:05 +02:00
source=(https://github.com/liballeg/allegro5/releases/download/$version/allegro-$version.tar.gz
allegro-4.4.2-GLX_RGBA_FLOAT_BIT.patch
allegro-4.4.2-Werror-format-security.patch
allegro-4.4.2-glibc228.patch
allegro-4.4.2-rpath.patch
allegro-4.4.2-shared.patch
allegro-4.4.2-static-func.patch
allegro-4.4.2-underlink.patch
)
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-10-13 10:06:05 +02:00
patch -p1 -i $SRC/allegro-4.4.2-GLX_RGBA_FLOAT_BIT.patch
patch -p1 -i $SRC/allegro-4.4.2-Werror-format-security.patch
patch -p1 -i $SRC/allegro-4.4.2-glibc228.patch
patch -p1 -i $SRC/allegro-4.4.2-rpath.patch
patch -p1 -i $SRC/allegro-4.4.2-shared.patch
patch -p1 -i $SRC/allegro-4.4.2-static-func.patch
patch -p1 -i $SRC/allegro-4.4.2-underlink.patch
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 \
-GNinja
ninja -j ${JOBS:-1}
DESTDIR=$PKG ninja install
2008-03-13 12:06:27 +01:00
2010-11-04 11:31:45 +01:00
rm -r $PKG/usr/doc
2008-03-13 12:06:27 +01:00
}