mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
orcus: add recipe.
This commit is contained in:
110
dev-libs/orcus/orcus-0.12.1.recipe
Normal file
110
dev-libs/orcus/orcus-0.12.1.recipe
Normal file
@@ -0,0 +1,110 @@
|
||||
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="676b1fedd721f64489650f5e76d7f98b750439914d87cae505b8163d08447908"
|
||||
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_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.12$secondaryArchSuffix = 0.0.0 compat >= 0
|
||||
lib:liborcus_mso_0.12$secondaryArchSuffix = 0.0.0 compat >= 0
|
||||
lib:liborcus_parser_0.12$secondaryArchSuffix = 0.0.0 compat >= 0
|
||||
lib:liborcus_spreadsheet_model_0.12$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$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
liborcus${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:liborcus_0.12$secondaryArchSuffix = 0.0.0 compat >= 0
|
||||
devel:liborcus_mso_0.12$secondaryArchSuffix = 0.0.0 compat >= 0
|
||||
devel:liborcus_parser_0.12$secondaryArchSuffix = 0.0.0 compat >= 0
|
||||
devel:liborcus_spreadsheet_model_0.12$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$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.12
|
||||
rm $libDir/$library.la
|
||||
prepareInstalledDevelLib $library
|
||||
done
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user