diff options
author | Patrick Kursawe <phosphan@gentoo.org> | 2005-02-01 14:47:49 +0000 |
---|---|---|
committer | Patrick Kursawe <phosphan@gentoo.org> | 2005-02-01 14:47:49 +0000 |
commit | b5af1770b530812a02baa171b40735d2450d7874 (patch) | |
tree | 159da81b24867c43f894f6477a1626a4d579b3c7 /media-libs/libemf | |
parent | added ~ppc64 to KEYWORDS (diff) | |
download | gentoo-2-b5af1770b530812a02baa171b40735d2450d7874.tar.gz gentoo-2-b5af1770b530812a02baa171b40735d2450d7874.tar.bz2 gentoo-2-b5af1770b530812a02baa171b40735d2450d7874.zip |
Added patch for amd64
(Portage version: 2.0.51-r13)
Diffstat (limited to 'media-libs/libemf')
-rw-r--r-- | media-libs/libemf/ChangeLog | 8 | ||||
-rw-r--r-- | media-libs/libemf/files/libEMF-1.0-amd64.patch | 66 | ||||
-rw-r--r-- | media-libs/libemf/libemf-1.0.ebuild | 7 |
3 files changed, 76 insertions, 5 deletions
diff --git a/media-libs/libemf/ChangeLog b/media-libs/libemf/ChangeLog index e3901979bd60..332a58cebb01 100644 --- a/media-libs/libemf/ChangeLog +++ b/media-libs/libemf/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for media-libs/libemf -# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libemf/ChangeLog,v 1.5 2004/06/24 23:08:21 agriffis Exp $ +# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libemf/ChangeLog,v 1.6 2005/02/01 14:47:49 phosphan Exp $ + + 01 Feb 2005; Patrick Kursawe <phosphan@gentoo.org> + +files/libEMF-1.0-amd64.patch, libemf-1.0.ebuild: + Adding patch for amd64, see bug #9167 (patch source: PLD) 24 Mar 2004; Patrick Kursawe <phosphan@gentoo.org> libemf-1.0.ebuild: Added missing "inherit eutils" diff --git a/media-libs/libemf/files/libEMF-1.0-amd64.patch b/media-libs/libemf/files/libEMF-1.0-amd64.patch new file mode 100644 index 000000000000..f3279568baa1 --- /dev/null +++ b/media-libs/libemf/files/libEMF-1.0-amd64.patch @@ -0,0 +1,66 @@ +diff -dur libEMF-1.0.orig/include/wine/winnt.h libEMF-1.0/include/wine/winnt.h +--- libEMF-1.0.orig/include/wine/winnt.h 2002-01-29 05:31:53.000000000 +0100 ++++ libEMF-1.0/include/wine/winnt.h 2004-01-22 14:22:35.382239593 +0100 +@@ -45,6 +45,10 @@ + # undef WORDS_BIGENDIAN + # undef BITFIELDS_BIGENDIAN + # undef ALLOW_UNALIGNED_ACCESS ++#elif defined(__x86_64__) ++# undef WORDS_BIGENDIAN ++# undef BITFIELDS_BIGENDIAN ++# define ALLOW_UNALIGNED_ACCESS + #elif !defined(RC_INVOKED) + # error Unknown CPU architecture! + #endif +@@ -211,7 +215,7 @@ + typedef unsigned short WORD, *PWORD, *LPWORD; + typedef int INT, *PINT, *LPINT; + typedef unsigned int UINT, *PUINT, *LPUINT; +-#if !defined(__alpha__) ++#if !defined(__alpha__) && !defined(__x86_64__) + typedef unsigned long DWORD, *PDWORD, *LPDWORD; + typedef unsigned long ULONG, *PULONG, *LPULONG; + #else /* defined( __alpha__ ) */ +@@ -257,7 +261,7 @@ + typedef BYTE BOOLEAN, *PBOOLEAN; + typedef char CHAR, *PCHAR; + typedef short SHORT, *PSHORT; +-#if !defined(__alpha__) ++#if !defined(__alpha__) && !defined(__x86_64__) + typedef long LONG, *PLONG, *LPLONG; + #else /* defined( __alpha__ ) */ + typedef int LONG, *PLONG, *LPLONG; +@@ -1045,6 +1049,11 @@ + + #endif /* __sparc__ */ + ++#if defined(__x86_64__) ++#define CONTEXT_FULL 1 ++typedef struct _CONTEXT CONTEXT; ++#endif ++ + #if !defined(CONTEXT_FULL) && !defined(RC_INVOKED) + #error You need to define a CONTEXT for your CPU + #endif +diff -dur libEMF-1.0.orig/libemf/libemf.h libEMF-1.0/libemf/libemf.h +--- libEMF-1.0.orig/libemf/libemf.h 2002-01-29 05:54:27.000000000 +0100 ++++ libEMF-1.0/libemf/libemf.h 2004-01-22 14:23:14.315813724 +0100 +@@ -332,7 +332,7 @@ + fread( &dword, sizeof(DWORD), 1, fp_ ); + return *this; + } +-#if !defined(__alpha__) ++#if !defined(__alpha__) && !defined(__x86_64__) + /*! + * Output a long int to the stream (swabbed). + * \param long long int to output. +@@ -402,7 +402,7 @@ + fread( &int_, sizeof(INT), 1, fp_ ); + return *this; + } +-#if !defined(__alpha__) ++#if !defined(__alpha__) && !defined(__x86_64__) + /*! + * Output a (long) unsigned int to the stream (swabbed). + * \param uint (long) unsigned int to output. +Only in libEMF-1.0/libemf: libemf.h~ diff --git a/media-libs/libemf/libemf-1.0.ebuild b/media-libs/libemf/libemf-1.0.ebuild index 578ccd8dbd54..90335bd15694 100644 --- a/media-libs/libemf/libemf-1.0.ebuild +++ b/media-libs/libemf/libemf-1.0.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libemf/libemf-1.0.ebuild,v 1.8 2004/06/24 23:08:21 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libemf/libemf-1.0.ebuild,v 1.9 2005/02/01 14:47:49 phosphan Exp $ inherit eutils gcc @@ -20,7 +20,8 @@ S=${WORKDIR}/${MY_P} src_unpack() { unpack ${A} - [ $(gcc-major-version) -ge 3 ] && epatch ${FILESDIR}/${MY_P}-gcc3.patch + epatch ${FILESDIR}/${MY_P}-gcc3.patch + epatch ${FILESDIR}/${MY_P}-amd64.patch } src_compile() { |