2021-11-02 14:11:21 +11:00
|
|
|
# Description: TrueType library for libsdl2.
|
2023-03-02 22:39:25 -05:00
|
|
|
# URL: https://github.com/libsdl-org/SDL_ttf
|
|
|
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
2019-04-13 18:32:58 +10:00
|
|
|
# Depends on: freetype libsdl2
|
|
|
|
|
|
|
|
name=sdl2_ttf
|
2023-02-10 18:20:46 +01:00
|
|
|
version=2.20.2
|
2023-10-15 11:53:14 +00:00
|
|
|
_commit=3a51231c98ab0ca728bba6eb5f743da5dcfedf5a
|
|
|
|
release=3
|
|
|
|
source=(https://github.com/libsdl-org/SDL_ttf/archive/$_commit/$name-$version.tar.gz)
|
2019-04-13 18:32:58 +10:00
|
|
|
|
|
|
|
build() {
|
2023-10-15 11:53:14 +00:00
|
|
|
cmake -S SDL_ttf-$_commit -B build -G Ninja \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS"
|
2019-04-13 18:32:58 +10:00
|
|
|
|
2023-10-15 11:53:14 +00:00
|
|
|
ninja -C build -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG ninja -C build install
|
2023-03-02 22:39:25 -05:00
|
|
|
|
2023-10-15 11:53:14 +00:00
|
|
|
# delete installed license.txt
|
|
|
|
rm -rf $PKG/usr/share
|
2019-04-13 18:32:58 +10:00
|
|
|
}
|