termux-packages/x11-packages/sdl-pango/build.sh

25 lines
958 B
Bash
Raw Normal View History

2022-04-20 21:53:51 +02:00
TERMUX_PKG_HOMEPAGE=http://sdlpango.sourceforge.net/
TERMUX_PKG_DESCRIPTION="Connects Pango to SDL"
TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.1.2
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/sdlpango/SDL_Pango-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=7f75d3b97acf707c696ea126424906204ebfa07660162de925173cdd0257eba4
TERMUX_PKG_DEPENDS="fontconfig, freetype, glib, harfbuzz, pango, sdl"
termux_step_post_get_source() {
termux_download \
"https://ftp-osl.osuosl.org/pub/gentoo/distfiles/SDL_Pango-0.1.2-API-adds.patch" \
$TERMUX_PKG_CACHEDIR/SDL_Pango-0.1.2-API-adds.patch \
5a989c7acb539fce640323d3995cca8913a4b8869f5c690b78501ec6b5c86d5d
cat $TERMUX_PKG_CACHEDIR/SDL_Pango-0.1.2-API-adds.patch | patch --silent -p0
}
termux_step_pre_configure() {
mkdir -p m4
cp $TERMUX_PREFIX/share/aclocal/sdl.m4 m4/
autoreconf -fi -Im4
CPPFLAGS+=" -I$TERMUX_PREFIX/include/SDL -D__FT2_BUILD_UNIX_H__"
}