mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
108 lines
2.7 KiB
Bash
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
|
|
}
|