mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
80 lines
1.6 KiB
Bash
80 lines
1.6 KiB
Bash
SUMMARY="Display Rich Text Format (RTF) documents"
|
|
DESCRIPTION="This is a sample library which allows you to display \
|
|
Rich Text Format (RTF) documents in your SDL applications. It comes \
|
|
with an example program showrtf which displays an RTF file using an \
|
|
SDL_ttf font engine."
|
|
HOMEPAGE="https://www.libsdl.org/projects/SDL_rtf/"
|
|
COPYRIGHT="2003-2009 Sam Lantinga"
|
|
LICENSE="GNU LGPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://www.libsdl.org/projects/SDL_rtf/release/SDL_rtf-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="3dc0274b666e28010908ced24844ca7d279e07b66f673c990d530d4ea94b757e"
|
|
SOURCE_DIR="SDL_rtf-$portVersion"
|
|
|
|
ARCHITECTURES="x86_gcc2 ?x86_64"
|
|
|
|
PROVIDES="
|
|
sdl_rtf = $portVersion
|
|
lib:libSDL_rtf
|
|
lib:libSDL_rtf_0.1 = 0.0.0 compat >= 0
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
lib:libSDL
|
|
lib:libsdl_ttf
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
sdl_rtf = $portVersion
|
|
devel:libSDL_rtf
|
|
devel:libSDL_rtf_0.1 = 0.0.0
|
|
"
|
|
REQUIRES_devel="
|
|
sdl_rtf == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
devel:libSDL
|
|
devel:libsdl_ttf
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:gcc
|
|
cmd:libtoolize
|
|
cmd:make
|
|
cmd:pkg_config
|
|
"
|
|
|
|
defineDebugInfoPackage sdl_rtf \
|
|
$libDir/libSDL_rtf-0.1.so.0.0.0
|
|
|
|
BUILD()
|
|
{
|
|
rm aclocal.m4
|
|
rm acinclude.m4
|
|
mkdir -p m4
|
|
echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.in
|
|
echo "ACLOCAL_AMFLAGS = -I m4" >> Makefile.am
|
|
libtoolize -fci
|
|
aclocal --install -I m4
|
|
./autogen.sh
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
#remove libtool file
|
|
rm -f $libDir/*.la
|
|
|
|
prepareInstalledDevelLib libSDL_rtf libSDL_rtf-0.1
|
|
|
|
#devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|