Accepting request 210067 from home:uweigand:branches:multimedia:libs

- ppc64le-support.patch: Support for powerpc64le

OBS-URL: https://build.opensuse.org/request/show/210067
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libEMF?expand=0&rev=17
This commit is contained in:
Sascha Peilicke 2013-12-12 09:44:22 +00:00 committed by Git OBS Bridge
parent 6c8b1470d9
commit fa2eb9be7f
3 changed files with 28 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Dec 9 18:14:07 UTC 2013 - uweigand@de.ibm.com
- ppc64le-support.patch: Support for powerpc64le
-------------------------------------------------------------------
Thu Apr 11 08:20:34 UTC 2013 - mmeister@suse.com

View File

@ -22,13 +22,14 @@ Version: 1.0.7
Release: 0
Source: http://downloads.sourceforge.net/project/libemf/libemf/%{version}/%{name}-%{version}.tar.gz
Patch: aarch64-support.patch
Patch2: ppc64le-support.patch
Url: http://libemf.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Library for Manipulation with Enhanced MetaFile (EMF, ECMA-234)
License: LGPL-2.1+ and GPL-2.0+
Group: System/Libraries
# taken from includes/wine/winnt.h
ExclusiveArch: alpha %arm aarch64 %ix86 mips ppc ppc64 sparc s390 s390x x86_64
ExclusiveArch: alpha %arm aarch64 %ix86 mips ppc ppc64 ppc64le sparc s390 s390x x86_64
%description
LibEMF is a C/C++ library that provides a drawing toolkit based on
@ -92,6 +93,7 @@ SO/OO graphics object.
%prep
%setup -q
%patch -p1
%patch2 -p1
%build
%configure\

20
ppc64le-support.patch Normal file
View File

@ -0,0 +1,20 @@
Index: libEMF-1.0.7/include/libEMF/wine/winnt.h
===================================================================
--- libEMF-1.0.7.orig/include/libEMF/wine/winnt.h
+++ libEMF-1.0.7/include/libEMF/wine/winnt.h
@@ -50,8 +50,13 @@
# define BITFIELDS_BIGENDIAN
# undef ALLOW_UNALIGNED_ACCESS
#elif defined(__PPC__)
-# define WORDS_BIGENDIAN
-# define BITFIELDS_BIGENDIAN
+# ifdef __LITTLE_ENDIAN__
+# undef WORDS_BIGENDIAN
+# undef BITFIELDS_BIGENDIAN
+# else
+# define WORDS_BIGENDIAN
+# define BITFIELDS_BIGENDIAN
+# endif
# undef ALLOW_UNALIGNED_ACCESS
#elif defined(__s390__)
# define WORDS_BIGENDIAN