mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-11 06:10:06 +02:00
112 lines
3.4 KiB
Bash
112 lines
3.4 KiB
Bash
SUMMARY="A library for processing spreadsheet documents"
|
|
DESCRIPTION="Orcus is a library that provides a collection of standalone file \
|
|
processing filters. It is currently focused on providing filters for \
|
|
spreadsheet documents."
|
|
HOMEPAGE="https://gitlab.com/orcus/orcus"
|
|
COPYRIGHT="Kohei Yoshida et al."
|
|
LICENSE="MPL v2.0"
|
|
REVISION="1"
|
|
SOURCE_URI="http://kohei.us/files/orcus/src/liborcus-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="d7041ef455bb78db66b4ba7876af1b3d0fa377b9444e3ef72ceaccd2e8400937"
|
|
SOURCE_DIR="liborcus-$portVersion"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="?x86"
|
|
|
|
PROVIDES="
|
|
liborcus$secondaryArchSuffix = $portVersion
|
|
cmd:orcus_css_dump$secondaryArchSuffix = $portVersion
|
|
cmd:orcus_csv$secondaryArchSuffix = $portVersion
|
|
cmd:orcus_detect$secondaryArchSuffix = $portVersion
|
|
cmd:orcus_gnumeric$secondaryArchSuffix = $portVersion
|
|
cmd:orcus_json$secondaryArchSuffix = $portVersion
|
|
cmd:orcus_mso_encryption$secondaryArchSuffix = $portVersion
|
|
cmd:orcus_ods$secondaryArchSuffix = $portVersion
|
|
cmd:orcus_styles_ods$secondaryArchSuffix = $portVersion
|
|
cmd:orcus_xls_xml$secondaryArchSuffix = $portVersion
|
|
cmd:orcus_xlsx$secondaryArchSuffix = $portVersion
|
|
cmd:orcus_xml$secondaryArchSuffix = $portVersion
|
|
cmd:orcus_xml_dump$secondaryArchSuffix = $portVersion
|
|
cmd:orcus_yaml$secondaryArchSuffix = $portVersion
|
|
cmd:orcus_zip_dump$secondaryArchSuffix = $portVersion
|
|
lib:liborcus_0.13$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
lib:liborcus_mso_0.13$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
lib:liborcus_parser_0.13$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
lib:liborcus_spreadsheet_model_0.13$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libboost_system$secondaryArchSuffix
|
|
lib:libboost_filesystem$secondaryArchSuffix
|
|
lib:libboost_iostreams$secondaryArchSuffix
|
|
lib:libboost_program_options$secondaryArchSuffix
|
|
lib:libixion_0.13$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
liborcus${secondaryArchSuffix}_devel = $portVersion
|
|
devel:liborcus_0.13$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
devel:liborcus_mso_0.13$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
devel:liborcus_parser_0.13$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
devel:liborcus_spreadsheet_model_0.13$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
"
|
|
REQUIRES_devel="
|
|
liborcus$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libboost_system$secondaryArchSuffix
|
|
devel:libboost_filesystem$secondaryArchSuffix
|
|
devel:libboost_iostreams$secondaryArchSuffix
|
|
devel:libboost_program_options$secondaryArchSuffix
|
|
devel:libixion_0.13$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
devel:mdds >= 1.2
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
sed -i 's/-pthread//g' configure.ac src/parser/Makefile.am
|
|
sed -i 's#$with_boost/include#$with_boost/headers#g' m4/boost.m4
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
BOOST_ROOT=$portPackageLinksDir/devel~libboost_program_options/develop
|
|
runConfigure ./configure --disable-python
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
for la in "" -mso -parser -spreadsheet-model; do
|
|
library=liborcus$la-0.13
|
|
rm $libDir/$library.la
|
|
prepareInstalledDevelLib $library
|
|
done
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|