Files
haikuports/media-libs/libfreehand/libfreehand-0.1.2.recipe
Schrijvers Luc 42962b0c13 libfreehand, fix build for werror (#8360)
move binaries to tools package
create debug package
2023-04-13 11:46:21 +02:00

108 lines
2.7 KiB
Bash

SUMMARY="Aldus/Macromedia/Adobe FreeHand import library"
DESCRIPTION="libcdr is a library that parses the file format of \
Aldus/Macromedia/Adobe FreeHand documents of all versions."
HOMEPAGE="https://wiki.documentfoundation.org/DLP/Libraries/libfreehand"
COPYRIGHT="Fridrich Strba, David Tardon"
LICENSE="MPL v2.0"
REVISION="4"
SOURCE_URI="http://dev-www.libreoffice.org/src/libfreehand/libfreehand-$portVersion.tar.bz2"
CHECKSUM_SHA256="1ff634f2b34223a1ab406284bb5a7de1d0d76b5da9cf7832af0a80a6b7d962f1"
PATCHES="libfreehand-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
commandBinDir=$binDir
commandSuffix=$secondaryArchSuffix
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
libVersion="1.0.2"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libfreehand$secondaryArchSuffix = $portVersion
lib:libfreehand_0.1$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:liblcms2$secondaryArchSuffix
lib:librevenge_0.0$secondaryArchSuffix
lib:librevenge_generators_0.0$secondaryArchSuffix
lib:librevenge_stream_0.0$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
libfreehand${secondaryArchSuffix}_devel = $portVersion
devel:libfreehand_0.1$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libfreehand$secondaryArchSuffix == $portVersion base
"
PROVIDES_tools="
libfreehand${secondaryArchSuffix}_tools = $portVersion
cmd:fh2raw$commandSuffix
cmd:fh2svg$commandSuffix
cmd:fh2text$commandSuffix
"
REQUIRES_tools="
libfreehand$secondaryArchSuffix == $portVersion base
$REQUIRES
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libboost_system$secondaryArchSuffix
devel:libcppunit$secondaryArchSuffix
devel:libicuuc$secondaryArchSuffix >= 66
devel:liblcms2$secondaryArchSuffix
devel:librevenge_0.0$secondaryArchSuffix
devel:librevenge_generators_0.0$secondaryArchSuffix
devel:librevenge_stream_0.0$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:autoheader
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:gperf
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
defineDebugInfoPackage libfreehand$secondaryArchSuffix \
$libDir/libfreehand-0.1.so.$libVersion
BUILD()
{
autoreconf -fi
runConfigure --omit-dirs binDir ./configure \
--bindir=$commandBinDir \
enable_werror=no
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libfreehand-0.1.la
prepareInstalledDevelLibs libfreehand-0.1
fixPkgconfig
packageEntries devel \
$developDir
packageEntries tools \
$commandBinDir
}