mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
sdl-rtf, revive old bep file (#2063)
This commit is contained in:
committed by
waddlesplash
parent
49c6ff4ce9
commit
5893d4bb5b
@@ -1,33 +1,79 @@
|
||||
DESCRIPTION="SDL-rtf"
|
||||
HOMEPAGE="http://www.libsdl.org/projects/SDL_rtf"
|
||||
SOURCE_URI="http://www.libsdl.org/projects/SDL_rtf/release/SDL_rtf-0.1.0.tar.gz"
|
||||
CHECKSUM_MD5="fe36733167b5c89f128414f32612121a"
|
||||
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"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND="media-libs/sdl-ttf >= 2.0.9"
|
||||
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 libSDL_rtf_0.1$secondaryArchSuffix \
|
||||
$libDir/libSDL_rtf-0.1.so.0.0.0
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd SDL_rtf-0.1.0
|
||||
rm aclocal.m4
|
||||
rm acinclude.m4
|
||||
mkdir -p m4
|
||||
echo "AC_CONFIG_MACRO_DIR([m4]) >> configure.in"
|
||||
libtoolize --copy --force --install
|
||||
echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.in
|
||||
echo "ACLOCAL_AMFLAGS = -I m4" >> Makefile.am
|
||||
libtoolize -fci
|
||||
aclocal --install -I m4
|
||||
./autogen.sh
|
||||
MANDIR=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
|
||||
LIBDIR=`finddir B_COMMON_LIB_DIRECTORY`
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
||||
--libdir=$LIBDIR \
|
||||
--mandir=$MANDIR
|
||||
make
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd SDL_rtf-0.1.0
|
||||
make install
|
||||
}
|
||||
|
||||
LICENSE="GNU LGPL v2"
|
||||
COPYRIGHT="2003-2009 Sam Lantinga"
|
||||
#remove libtool file
|
||||
rm -f $libDir/*.la
|
||||
|
||||
prepareInstalledDevelLib libSDL_rtf libSDL_rtf-0.1
|
||||
|
||||
#devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user