libcdr/ExternalProject_libcdr.mk | 3 ++- libcdr/UnpackedTarball_cdr.mk | 6 ++++++ libcdr/libcdr-0.0.10-ellipse.patch | 19 +++++++++++++++++++ 3 files changed, 27 insertions(+), 1 deletion(-)
New commits: commit 36e31ab6551579bf69012d0ba803fcb5fb17a062 Author: Fridrich Å trba <fridrich.st...@bluewin.ch> Date: Fri Jan 25 16:17:29 2013 +0100 CDR: fix large-angle computation Change-Id: Ia3f937b0b49093fbdbbe259b835a2d8a81633fe1 Blind "fix" for when using system ICU No point in pointing to nonexistent ICU headers in solver if building against a system ICU. Change-Id: I5a151f3bfefd1913ad84a33d74af749558926312 CDR: Override pkg-config with SYSTEM_ICU Change-Id: I665412f7d79247f6558337ac80bd866d2cfc3dce CDR: We want ICU_LIBS always empty since this is a static library Change-Id: I90730e08b07182fa73a1e3a60bed6da11cfd9e06 CDR: Actually apply the patch Change-Id: I9ffd7123b8f79128c559f30eade6ae49bf809981 Signed-off-by: Petr Mladek <pmla...@suse.cz> diff --git a/libcdr/ExternalProject_libcdr.mk b/libcdr/ExternalProject_libcdr.mk index 1bf7d23..9193c3c 100644 --- a/libcdr/ExternalProject_libcdr.mk +++ b/libcdr/ExternalProject_libcdr.mk @@ -61,7 +61,8 @@ $(call gb_ExternalProject_get_state_target,libcdr,build) : cd $(EXTERNAL_WORKDIR) \ && export PKG_CONFIG="" \ && export ICU_LIBS=" " \ - && export ICU_CFLAGS="-I$(OUTDIR)/inc/external" \ + $(if $(filter NO,$(SYSTEM_ICU)),&& export ICU_CFLAGS="-I$(OUTDIR)/inc/external") \ + $(if $(filter YES,$(SYSTEM_ICU)),&& ICU_CFLAGS=" ") \ && ./configure \ --with-pic \ --enable-static \ diff --git a/libcdr/UnpackedTarball_cdr.mk b/libcdr/UnpackedTarball_cdr.mk index be1e7d7..541fa96 100644 --- a/libcdr/UnpackedTarball_cdr.mk +++ b/libcdr/UnpackedTarball_cdr.mk @@ -11,4 +11,10 @@ $(eval $(call gb_UnpackedTarball_UnpackedTarball,cdr)) $(eval $(call gb_UnpackedTarball_set_tarball,cdr,$(CDR_TARBALL))) +$(eval $(call gb_UnpackedTarball_set_patchlevel,cdr,1)) + +$(eval $(call gb_UnpackedTarball_add_patches,cdr,\ + libcdr/libcdr-0.0.10-ellipse.patch \ +)) + # vim: set noet sw=4 ts=4: diff --git a/libcdr/libcdr-0.0.10-ellipse.patch b/libcdr/libcdr-0.0.10-ellipse.patch new file mode 100644 index 0000000..0b392a7 --- /dev/null +++ b/libcdr/libcdr-0.0.10-ellipse.patch @@ -0,0 +1,19 @@ +--- a/src/lib/CDRParser.cpp ++++ b/src/lib/CDRParser.cpp +@@ -1186,6 +1186,16 @@ void libcdr::CDRParser::readEllipse(WPXInputStream *input) + double rx = fabs(cx); + double ry = fabs(cy); + ++ while (angle1 < 0.0) ++ angle1 += 2*M_PI; ++ while (angle1 > 2*M_PI) ++ angle1 -= 2*M_PI; ++ ++ while (angle2 < 0.0) ++ angle2 += 2*M_PI; ++ while (angle2 > 2*M_PI) ++ angle2 -= 2*M_PI; ++ + if (angle1 != angle2) + { + if (angle2 < angle1)
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits