mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
65 lines
1.3 KiB
Bash
65 lines
1.3 KiB
Bash
SUMMARY="Rich Text Format command line converter"
|
|
DESCRIPTION="UnRTF is a command-line program written in C which converts \
|
|
documents in Rich Text Format (.rtf) to HTML, LaTeX, troff macros, and RTF \
|
|
itself."
|
|
HOMEPAGE="https://www.gnu.org/software/unrtf/"
|
|
COPYRIGHT="2001-2015 Free Software Foundation"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="https://ftp.gnu.org/gnu/unrtf/unrtf-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="b49f20211fa69fff97d42d6e782a62d7e2da670b064951f14bbff968c93734ae"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandSuffix=$secondaryArchSuffix
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
PROVIDES="
|
|
unrtf$secondaryArchSuffix = $portVersion
|
|
cmd:unrtf$commandSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libiconv$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autom4te
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
aclocal
|
|
automake --add-missing
|
|
runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir\
|
|
LIBS=-liconv
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
sed -i \
|
|
-e "s|$dataDir/|/system/$relativeDataDir/|" \
|
|
$manDir/man1/unrtf.1
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|