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-03-02 22:39:25 -05:00
|
|
|
release=2
|
2022-02-05 14:45:56 +01:00
|
|
|
source=(https://github.com/libsdl-org/SDL_ttf/releases/download/release-$version/SDL2_ttf-$version.tar.gz)
|
2019-04-13 18:32:58 +10:00
|
|
|
|
|
|
|
build() {
|
2023-03-02 22:39:25 -05:00
|
|
|
cmake -S SDL2_ttf-$version -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-03-02 22:39:25 -05:00
|
|
|
ninja -C build -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG ninja -C build install
|
|
|
|
|
|
|
|
# delete installed license.txt
|
|
|
|
rm -rf $PKG/usr/share
|
2019-04-13 18:32:58 +10:00
|
|
|
}
|