libstaroffice: add recipe.

This commit is contained in:
Kacper Kasper
2017-01-06 08:42:05 +01:00
parent 65e4bae347
commit 75ef84968a

View File

@@ -0,0 +1,80 @@
SUMMARY="StarOffice import library"
DESCRIPTION="libabw is a library that parses the file format of StarOffice \
documents."
HOMEPAGE="https://github.com/fosnola/libstaroffice"
COPYRIGHT="2015-2016 Laurent Alonso et al."
LICENSE="MPL v2.0"
REVISION="1"
SOURCE_URI="http://github.com/fosnola/libstaroffice/releases/download/0.0.2/libstaroffice-$portVersion.tar.bz2"
CHECKSUM_SHA256="f06eb29d13357f1aa1944de0be1162de05d9f9333b5f54e9bf762415029a8899"
ARCHITECTURES="!x86_gcc2 x86 ?x86_64"
SECONDARY_ARCHITECTURES="?x86"
PROVIDES="
libstaroffice$secondaryArchSuffix = $portVersion
cmd:sd2raw$secondaryArchSuffix = $portVersion compat >= 0
cmd:sd2svg$secondaryArchSuffix = $portVersion compat >= 0
cmd:sd2text$secondaryArchSuffix = $portVersion compat >= 0
cmd:sdc2csv$secondaryArchSuffix = $portVersion compat >= 0
cmd:sdw2html$secondaryArchSuffix = $portVersion compat >= 0
lib:libstaroffice_0.0$secondaryArchSuffix = 0.0.2 compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
lib:librevenge_0.0$secondaryArchSuffix
lib:librevenge_generators_0.0$secondaryArchSuffix
lib:librevenge_stream_0.0$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
libstaroffice${secondaryArchSuffix}_devel = $portVersion
devel:libstaroffice_0.0$secondaryArchSuffix = 0.0.2 compat >= 0
"
REQUIRES_devel="
libstaroffice$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
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:libtoolize$secondaryArchSuffix
cmd:autoconf
cmd:automake
cmd:autoheader
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
libtoolize --force --copy --install
aclocal
autoheader
automake -a -c --foreign
autoconf
runConfigure ./configure --with-sharedptr=c++11
make $jobArgs
}
INSTALL()
{
make install
# remove libtool file
rm $libDir/libstaroffice-0.0.la
prepareInstalledDevelLibs libstaroffice-0.0
fixPkgconfig
packageEntries devel $developDir
}