From 75ef84968a66ca42fda2fbac5b7bad37bab106dd Mon Sep 17 00:00:00 2001 From: Kacper Kasper Date: Fri, 6 Jan 2017 08:42:05 +0100 Subject: [PATCH] libstaroffice: add recipe. --- .../libstaroffice/libstaroffice-0.0.2.recipe | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 app-text/libstaroffice/libstaroffice-0.0.2.recipe diff --git a/app-text/libstaroffice/libstaroffice-0.0.2.recipe b/app-text/libstaroffice/libstaroffice-0.0.2.recipe new file mode 100644 index 000000000..ace8a65a0 --- /dev/null +++ b/app-text/libstaroffice/libstaroffice-0.0.2.recipe @@ -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 +}