libwpd, fix build (#8018)

This commit is contained in:
Schrijvers Luc
2023-03-20 18:15:02 +01:00
committed by GitHub
parent 9c47f73848
commit 3b4d87f843
3 changed files with 23 additions and 76 deletions

View File

@@ -9,9 +9,10 @@ COPYRIGHT="William Lachance
Fridrich Strba"
LICENSE="MPL v2.0
GNU LGPL v2.1"
REVISION="1"
REVISION="2"
SOURCE_URI="http://prdownloads.sourceforge.net/libwpd/libwpd-$portVersion.tar.bz2"
CHECKSUM_SHA256="2369a584d19991145f717cc9dc0e0bed4ca12f678dc671023623674ebd70fc54"
PATCHES="libwpd-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"

View File

@@ -1,75 +0,0 @@
SUMMARY="A library for importing WordPerfect (tm) documents"
DESCRIPTION="
libwpd is a C++ library designed to help process WordPerfect documents. It \
is most commonly used to import WordPerfect documents into other word \
processors (see below), but may be useful in other cases as well."
HOMEPAGE="http://libwpd.sourceforge.net"
COPYRIGHT="William Lachance
Marc Maurer
Fridrich Strba"
LICENSE="MPL v2.0
GNU LGPL v2.1"
REVISION="2"
SOURCE_URI="http://prdownloads.sourceforge.net/libwpd/libwpd-0.9.9.tar.gz"
CHECKSUM_SHA256="6d894db0de312dbbef3359c14b967ee4d2bab4e70052c151f2a44dc39b0744b9"
ARCHITECTURES="?all !x86_gcc2 x86"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
$portName$secondaryArchSuffix = $portVersion
cmd:wpd2html$secondaryArchSuffix
cmd:wpd2raw$secondaryArchSuffix
cmd:wpd2text$secondaryArchSuffix
lib:libwpd_0.9$secondaryArchSuffix = 9.0.9 compat >= 9
lib:libwpd_stream_0.9$secondaryArchSuffix = 9.0.9 compat >= 9
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
libwpd${secondaryArchSuffix}_devel = $portVersion
devel:libwpd_0.9$secondaryArchSuffix = 9.0.9 compat >= 9
devel:libwpd_stream_0.9$secondaryArchSuffix = 9.0.9 compat >= 9
"
REQUIRES_devel="
$portName$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
pkgconfig$secondaryArchSuffix >= 0.27
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize
cmd:make
"
BUILD()
{
libtoolize --force --copy --install
aclocal
autoconf
automake
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libwpd-0.9 libwpd-stream-0.9
fixPkgconfig
packageEntries devel $developDir
}

View File

@@ -0,0 +1,21 @@
From b2ea550b52fdfb60f4a93b49f5d05ba48235d742 Mon Sep 17 00:00:00 2001
From: Begasus <begasus@gmail.com>
Date: Mon, 20 Mar 2023 18:05:50 +0100
Subject: Fix size_t being undeclared
diff --git a/src/lib/WPXTable.h b/src/lib/WPXTable.h
index bdbaf79..98cbf19 100644
--- a/src/lib/WPXTable.h
+++ b/src/lib/WPXTable.h
@@ -37,6 +37,7 @@
#define _WPXTABLE_H
#include <vector>
+#include <stddef.h>
struct WPXTableCell
{
--
2.37.3