community/libfreehand: fix build

This commit is contained in:
Leo 2020-02-22 19:25:53 -03:00
parent da479a7adc
commit 2ada51049a
2 changed files with 19 additions and 9 deletions

View File

@ -7,15 +7,14 @@ pkgdesc="Import filter and tools for Adobe FreeHand documents"
url="https://wiki.documentfoundation.org/DLP/Libraries/libfreehand"
arch="all"
license="MPL-2.0"
depends=""
depends_dev="libxml2-dev lcms2-dev icu-dev"
makedepends="$depends_dev gperf perl doxygen librevenge-dev zlib-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
source="https://dev-www.libreoffice.org/src/$pkgname/$pkgname-$pkgver.tar.xz
parentheses-gcc8-fix.patch"
source="https://dev-www.libreoffice.org/src/libfreehand/libfreehand-$pkgver.tar.xz
parentheses-gcc8-fix.patch
fix-build.patch
"
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
default_prepare
@ -23,7 +22,6 @@ prepare() {
}
build() {
cd "$builddir"
export CXXFLAGS="$CXXFLAGS -Wno-error=deprecated-copy"
./configure \
--build=$CBUILD \
@ -37,12 +35,10 @@ build() {
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
@ -52,4 +48,5 @@ tools() {
}
sha512sums="4112a76ac99999801d97d1b282596d631d8496a5bf65778ab26aa06da86637b1e2b630648a67ea01bf3316ecec9f2715546baff27af090b900267c87a011b963 libfreehand-0.1.2.tar.xz
af4e1fd4fa75a5d45bd9072abc934a0f1d86e0a6d1deaca955bb18bd8ba0f78cd20e0f442e61c52587264ec828ec46a711e0f463fa152e5a1968ac0c5af822f3 parentheses-gcc8-fix.patch"
af4e1fd4fa75a5d45bd9072abc934a0f1d86e0a6d1deaca955bb18bd8ba0f78cd20e0f442e61c52587264ec828ec46a711e0f463fa152e5a1968ac0c5af822f3 parentheses-gcc8-fix.patch
d55fba47de11ee438633b109a6fc5ebba661d448c0082a4d603de18ef4e77fa74385eb344fb787b3009ede5ae64fe6b6ba2e209be4a9cf86683ab21d42c5d3ff fix-build.patch"

View File

@ -0,0 +1,13 @@
diff --git a/src/lib/libfreehand_utils.cpp b/src/lib/libfreehand_utils.cpp
index 439c457..32f23e0 100644
--- a/src/lib/libfreehand_utils.cpp
+++ b/src/lib/libfreehand_utils.cpp
@@ -162,7 +162,7 @@ void libfreehand::_appendUTF16(librevenge::RVNGString &text, std::vector<unsigne
while (j < length)
{
UChar32 c;
- U16_NEXT(s, j, length, c)
+ U16_NEXT(s, j, length, c);
unsigned char outbuf[U8_MAX_LENGTH+1];
int i = 0;
U8_APPEND_UNSAFE(&outbuf[0], i, c);