summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-05-10 11:08:18 +0000
committerMike Frysinger <vapier@gentoo.org>2008-05-10 11:08:18 +0000
commit2d24f78a2a9276d6f56e2191657e1580be3c0a76 (patch)
tree6b3cdcce16e01afa23c9fe75a68437b5b5ed7203 /media-libs/sdl-gfx
parentDoesn't compile on alpha due to regression (missing typedef). Fixed in .26-rc... (diff)
downloadhistorical-2d24f78a2a9276d6f56e2191657e1580be3c0a76.tar.gz
historical-2d24f78a2a9276d6f56e2191657e1580be3c0a76.tar.bz2
historical-2d24f78a2a9276d6f56e2191657e1580be3c0a76.zip
Add fix from Debian for building with gcc-4.3 #219621 by Peter Alfredsen.
Package-Manager: portage-2.2_pre5
Diffstat (limited to 'media-libs/sdl-gfx')
-rw-r--r--media-libs/sdl-gfx/ChangeLog6
-rw-r--r--media-libs/sdl-gfx/Manifest11
-rw-r--r--media-libs/sdl-gfx/files/sdl-gfx-2.0.16-gcc43.patch223
-rw-r--r--media-libs/sdl-gfx/sdl-gfx-2.0.16.ebuild8
4 files changed, 237 insertions, 11 deletions
diff --git a/media-libs/sdl-gfx/ChangeLog b/media-libs/sdl-gfx/ChangeLog
index 97cef456499c..ebb86f9a2216 100644
--- a/media-libs/sdl-gfx/ChangeLog
+++ b/media-libs/sdl-gfx/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-libs/sdl-gfx
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-gfx/ChangeLog,v 1.38 2008/03/06 03:59:50 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-gfx/ChangeLog,v 1.39 2008/05/10 11:08:18 vapier Exp $
+
+ 10 May 2008; Mike Frysinger <vapier@gentoo.org>
+ +files/sdl-gfx-2.0.16-gcc43.patch, sdl-gfx-2.0.16.ebuild:
+ Add fix from Debian for building with gcc-4.3 #219621 by Peter Alfredsen.
06 Mar 2008; Chris Gianelloni <wolf31o2@gentoo.org> sdl-gfx-2.0.16.ebuild:
Added ~x86-fbsd since it was likely needed to be added for bug #175779,
diff --git a/media-libs/sdl-gfx/Manifest b/media-libs/sdl-gfx/Manifest
index 46e7888f9f15..24e897de9a97 100644
--- a/media-libs/sdl-gfx/Manifest
+++ b/media-libs/sdl-gfx/Manifest
@@ -2,16 +2,17 @@
Hash: SHA1
AUX sdl-gfx-2.0.13-gcc34.patch 447 RMD160 683c42b4c3ee4b0ef7bfe79b981534ba9c5d4095 SHA1 a92a7f42f1ca611b6f52f81488b06c49c7cd98fc SHA256 62bd2b33db84244f9a7fed18cf06a575f83c736d9148e61763387540f0af193a
+AUX sdl-gfx-2.0.16-gcc43.patch 13847 RMD160 e657f3442e74efae6dbf255bd7214b3deb31433e SHA1 450972746eb8b29ede969dc335e717dcfb7d27d4 SHA256 84c6b04099a87dbcd2b241b2de44f2189c6db4932659ffc4b127a3e1899ea62a
DIST SDL_gfx-2.0.13.tar.gz 598297 RMD160 237510724dbcfe86163fa715a5b005588009b096 SHA1 406c2aecec20961156338b7eba83963bc22a5287 SHA256 d350706545894d1a60c6fa9109349c420ba86bb7243c770cf1602ccc820661d6
DIST SDL_gfx-2.0.16.tar.gz 830086 RMD160 1ee1b19f5699b5f3661a9ba461bc44a1e4f135da SHA1 c0277d25daf4b680876ef04a893f64e90d9ce03d SHA256 1ac780303b76bc830b837e6030de60943df0c28d7b9dab3a7229427bb6f4c2ea
EBUILD sdl-gfx-2.0.13-r1.ebuild 1015 RMD160 4510e8f7a5c0d137ffcc99114c07c623c61f61b8 SHA1 38c2cb29ae47f4e604f37dc2ee146c4fcf589225 SHA256 4f32bdbbd77c23f9e864346be744fd76d86f488a2b23d1ac3aa070d736f43d15
-EBUILD sdl-gfx-2.0.16.ebuild 1220 RMD160 26b28aa93da8353d389148ee54ab12af80a0f673 SHA1 0e05b6d1e28ef74f75ca3f8b76d6af4a52850eed SHA256 2c8be1c5c937fd710fd758421770242278ad6cd9d14777ffc42255246ec7ac00
-MISC ChangeLog 4447 RMD160 20d86f3fe0baf31633c87f58501b10e1b107a702 SHA1 2e7d0c0d0af708f64a02c7e367642cab3002bc2a SHA256 99e9c838753b39858c0b7de67b202a94ea8bfdd67e7543b35e81a522a11ffe1d
+EBUILD sdl-gfx-2.0.16.ebuild 1173 RMD160 c3ba32b7d6d0cede2618342785a55a67a6706568 SHA1 34078ad1b86bcd66a2d096904977db8470f533b2 SHA256 3ac6eb2c7ba8220ef856b78bbede4291b312560c1ec38974a71e8a8aa274759b
+MISC ChangeLog 4632 RMD160 353ea0f1a2f4a581886ef3c5e525452e69838a72 SHA1 31a02ae548b2e5dc35c5a254f97dc2bdfa75e153 SHA256 6573e1a06f04743855cd9f89dc31a6e620745bf9e2b798e2e7ed0d8af7b000e0
MISC metadata.xml 814 RMD160 7c27f9bb809a7e8ec09ffe500a34e787dc291398 SHA1 4f47376426cd837f96b6fee6f64fb45e98bc4131 SHA256 acfaa2ee674cddffcfa2bc9efad13e427caff8ad702b2ede75f77b8ea8910427
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
-iD8DBQFHz2w1kT4lNIS36YERAlntAKCgaiLk+GHJfqcZSH+KnzjpZare7QCfbHoz
-WEd/ZmPYHcNqFOLTw7q9CO0=
-=4Aj3
+iD8DBQFIJYInj9hvisErhMIRAiWrAKDNUkE25AKnZ/ad1XQfxKJ41Gj09gCgpbbo
+OnBqvqPaG024Nv5fnvM9qGw=
+=JBlU
-----END PGP SIGNATURE-----
diff --git a/media-libs/sdl-gfx/files/sdl-gfx-2.0.16-gcc43.patch b/media-libs/sdl-gfx/files/sdl-gfx-2.0.16-gcc43.patch
new file mode 100644
index 000000000000..5aa61133855c
--- /dev/null
+++ b/media-libs/sdl-gfx/files/sdl-gfx-2.0.16-gcc43.patch
@@ -0,0 +1,223 @@
+http://bugs.gentoo.org/219621
+
+fix building with gcc-4.3
+
+--- SDL_gfx-2.0.16/SDL_imageFilter.c
++++ SDL_gfx-2.0.16/SDL_imageFilter.c
+@@ -84 +84 @@
+- ".L1010: \n\t" "movq (%%eax), %%mm1 \n\t" /* load 8 bytes from Src1 into mm1 */
++ "1: movq (%%eax), %%mm1 \n\t" /* load 8 bytes from Src1 into mm1 */
+@@ -90 +90 @@
+- "jnz .L1010 \n\t" /* check loop termination, proceed if required */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
+@@ -161 +161 @@
+- ".L21011: \n\t"
++ "1: \n\t"
+@@ -177 +177 @@
+- "jnz .L21011 \n\t" /* check loop termination, proceed if required */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
+@@ -244 +244 @@
+- ".L1012: \n\t" "movq (%%eax), %%mm1 \n\t" /* load 8 bytes from Src1 into mm1 */
++ "1: movq (%%eax), %%mm1 \n\t" /* load 8 bytes from Src1 into mm1 */
+@@ -250 +250 @@
+- "jnz .L1012 \n\t" /* check loop termination, proceed if required */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
+@@ -316 +316 @@
+- ".L1013: \n\t" "movq (%%eax), %%mm1 \n\t" /* load 8 bytes from Src1 into mm1 */
++ "1: movq (%%eax), %%mm1 \n\t" /* load 8 bytes from Src1 into mm1 */
+@@ -325 +325 @@
+- "jnz .L1013 \n\t" /* check loop termination, proceed if required */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
+@@ -391 +391 @@
+- ".L1014: \n\t" "movq (%%eax), %%mm1 \n\t" /* load 8 bytes from Src1 into mm1 */
++ "1: movq (%%eax), %%mm1 \n\t" /* load 8 bytes from Src1 into mm1 */
+@@ -415 +415 @@
+- "jnz .L1014 \n\t" /* check loop termination, proceed if required */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
+@@ -484 +484 @@
+- ".L10141: \n\t" "mov (%%edx), %%al \n\t" /* load a byte from Src1 */
++ "1:mov (%%edx), %%al \n\t" /* load a byte from Src1 */
+@@ -486 +486 @@
+- ".L10142: \n\t" "mov %%al, (%%edi) \n\t" /* move a byte result to Dest */
++ "mov %%al, (%%edi) \n\t" /* move a byte result to Dest */
+@@ -490 +490 @@
+- "jnz .L10141 \n\t" /* check loop termination, proceed if required */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
+@@ -560 +560 @@
+- ".L1015: \n\t" "movq (%%eax), %%mm1 \n\t" /* load 8 bytes from Src1 into mm1 */
++ "1: movq (%%eax), %%mm1 \n\t" /* load 8 bytes from Src1 into mm1 */
+@@ -577 +577 @@
+- "jnz .L1015 \n\t" /* check loop termination, proceed if required */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
+@@ -645 +645 @@
+- ".L1016: \n\t" "movq (%%eax), %%mm1 \n\t" /* load 8 bytes from Src1 into mm1 */
++ "1: movq (%%eax), %%mm1 \n\t" /* load 8 bytes from Src1 into mm1 */
+@@ -664 +664 @@
+- "jnz .L1016 \n\t" /* check loop termination, proceed if required */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
+@@ -731 +731 @@
+- ".L1017: \n\t" "movq (%%eax), %%mm1 \n\t" /* load 8 bytes from Src1 into mm1 */
++ "1: movq (%%eax), %%mm1 \n\t" /* load 8 bytes from Src1 into mm1 */
+@@ -737 +737 @@
+- "jnz .L1017 \n\t" /* check loop termination, proceed if required */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
+@@ -803 +803 @@
+- ".L91017: \n\t" "movq (%%eax), %%mm1 \n\t" /* load 8 bytes from Src1 into mm1 */
++ "1: movq (%%eax), %%mm1 \n\t" /* load 8 bytes from Src1 into mm1 */
+@@ -809 +809 @@
+- "jnz .L91017 \n\t" /* check loop termination, proceed if required */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
+@@ -871 +871 @@
+- ".L10191: \n\t" "mov (%%esi), %%bl \n\t" /* load a byte from Src2 */
++ "1: mov (%%esi), %%bl \n\t" /* load a byte from Src2 */
+@@ -873,2 +873,2 @@
+- "jnz .L10192 \n\t" "movb $255, (%%edi) \n\t" /* division by zero = 255 !!! */
+- "jmp .L10193 \n\t" ".L10192: \n\t" "xor %%ah, %%ah \n\t" /* prepare AX, zero AH register */
++ "jnz 2f \n\t" "movb $255, (%%edi) \n\t" /* division by zero = 255 !!! */
++ "jmp 3f \n\t" "2: \n\t" "xor %%ah, %%ah \n\t" /* prepare AX, zero AH register */
+@@ -878 +878 @@
+- ".L10193: \n\t" "inc %%edx \n\t" /* increment Src1, Src2, Dest */
++ "3: inc %%edx \n\t" /* increment Src1, Src2, Dest */
+@@ -881 +881 @@
+- "jnz .L10191 \n\t" /* check loop termination, proceed if required */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
+@@ -942 +942 @@
+- ".L91117: \n\t" "movq (%%eax), %%mm0 \n\t" /* load 8 bytes from Src1 into mm1 */
++ "1: movq (%%eax), %%mm0 \n\t" /* load 8 bytes from Src1 into mm1 */
+@@ -947 +947 @@
+- "jnz .L91117 \n\t" /* check loop termination, proceed if required */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
+@@ -1015 +1015 @@
+- ".L1021: \n\t"
++ "1: \n\t"
+@@ -1022 +1022 @@
+- "jnz .L1021 \n\t" /* check loop termination, proceed if required */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
+@@ -1094 +1094 @@
+- ".L11023: \n\t"
++ "1: \n\t"
+@@ -1101 +1101 @@
+- "jnz .L11023 \n\t" /* check loop termination, proceed if required */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
+@@ -1189 +1189 @@
+- ".L1022: \n\t"
++ "1: \n\t"
+@@ -1199 +1199 @@
+- "jnz .L1022 \n\t" /* check loop termination, proceed if required */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
+@@ -1278 +1278 @@
+- ".L1023: \n\t" "movq (%%eax), %%mm0 \n\t" /* load 8 bytes from SrcDest into MM0 */
++ "1: movq (%%eax), %%mm0 \n\t" /* load 8 bytes from SrcDest into MM0 */
+@@ -1284 +1284 @@
+- "jnz .L1023 \n\t" /* check loop termination, proceed if required */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
+@@ -1357 +1357 @@
+- ".L11024: \n\t" "movq (%%eax), %%mm0 \n\t" /* load 8 bytes from SrcDest into MM0 */
++ "1: movq (%%eax), %%mm0 \n\t" /* load 8 bytes from SrcDest into MM0 */
+@@ -1363 +1363 @@
+- "jnz .L11024 \n\t" /* check loop termination, proceed if required */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
+@@ -1440 +1440 @@
+- ".L10240: \n\t" /* ** Prepare proper bit-Mask in MM1 ** */
++ "1: \n\t" /* ** Prepare proper bit-Mask in MM1 ** */
+@@ -1445 +1445 @@
+- "jnz .L10240 \n\t" /* check loop termination, proceed if required */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
+@@ -1452 +1452 @@
+- ".L10241: \n\t"
++ "2: \n\t"
+@@ -1461 +1461 @@
+- "jnz .L10241 \n\t" /* check loop termination, proceed if required */
++ "jnz 2b \n\t" /* check loop termination, proceed if required */
+@@ -1530 +1530 @@
+- ".L13023: \n\t" "movq (%%eax), %%mm0 \n\t" /* load 8 bytes from SrcDest into MM0 */
++ "1: movq (%%eax), %%mm0 \n\t" /* load 8 bytes from SrcDest into MM0 */
+@@ -1536 +1536 @@
+- "jnz .L13023 \n\t" /* check loop termination, proceed if required */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
+@@ -1616,2 +1616,2 @@
+- "jg .L10251 \n\t" ".align 16 \n\t" /* 16 byte allignment of the loop entry */
+- ".L10250: \n\t" "movq (%%eax), %%mm3 \n\t" /* load 8 bytes from Src1 into MM3 */
++ "jg 2f \n\t" ".align 16 \n\t" /* 16 byte allignment of the loop entry */
++ "1: movq (%%eax), %%mm3 \n\t" /* load 8 bytes from Src1 into MM3 */
+@@ -1628,3 +1628,3 @@
+- "jnz .L10250 \n\t" /* check loop termination, proceed if required */
+- "jmp .L10252 \n\t" ".align 16 \n\t" /* 16 byte allignment of the loop entry */
+- ".L10251: \n\t" "movq (%%eax), %%mm3 \n\t" /* load 8 bytes from Src1 into MM3 */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
++ "jmp 3f \n\t" ".align 16 \n\t" /* 16 byte allignment of the loop entry */
++ "2: movq (%%eax), %%mm3 \n\t" /* load 8 bytes from Src1 into MM3 */
+@@ -1650,2 +1650,2 @@
+- "jnz .L10251 \n\t" /* check loop termination, proceed if required */
+- ".L10252: \n\t" "emms \n\t" /* exit MMX state */
++ "jnz 2b \n\t" /* check loop termination, proceed if required */
++ "3: emms \n\t" /* exit MMX state */
+@@ -1730,2 +1730,2 @@
+- ".align 16 \n\t" /* 16 byte allignment of the loop entry */
+- ".L1026: \n\t" "movq (%%eax), %%mm3 \n\t" /* load 8 bytes from Src1 into MM3 */
++ ".align 16 \n\t" /* 16 byte allignment of the loop entry */
++ "1: movq (%%eax), %%mm3 \n\t" /* load 8 bytes from Src1 into MM3 */
+@@ -1744 +1744 @@
+- "jnz .L1026 \n\t" /* check loop termination, proceed if required */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
+@@ -1819 +1819 @@
+- ".L10270: \n\t" /* ** Prepare proper bit-Mask in MM1 ** */
++ "1: \n\t" /* ** Prepare proper bit-Mask in MM1 ** */
+@@ -1823 +1823 @@
+- "jnz .L10270 \n\t" /* check loop termination, proceed if required */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
+@@ -1830 +1830 @@
+- ".L10271: \n\t" "movq (%%eax), %%mm0 \n\t" /* load 8 bytes from Src1 into MM0 */
++ "2: movq (%%eax), %%mm0 \n\t" /* load 8 bytes from Src1 into MM0 */
+@@ -1837 +1837 @@
+- "jnz .L10271 \n\t" /* check loop termination, proceed if required */
++ "jnz 2b \n\t" /* check loop termination, proceed if required */
+@@ -1905 +1905 @@
+- ".L12023: \n\t" "movq (%%eax), %%mm0 \n\t" /* load 8 bytes from SrcDest into MM0 */
++ "1: movq (%%eax), %%mm0 \n\t" /* load 8 bytes from SrcDest into MM0 */
+@@ -1911 +1911 @@
+- "jnz .L12023 \n\t" /* check loop termination, proceed if required */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
+@@ -1984,2 +1984,2 @@
+- "jg .L10281 \n\t" ".align 16 \n\t" /* 16 byte allignment of the loop entry */
+- ".L10280: \n\t" "movq (%%eax), %%mm3 \n\t" /* load 8 bytes from Src1 into MM3 */
++ "jg 2f \n\t" ".align 16 \n\t" /* 16 byte allignment of the loop entry */
++ "1: movq (%%eax), %%mm3 \n\t" /* load 8 bytes from Src1 into MM3 */
+@@ -1996,3 +1996,3 @@
+- "jnz .L10280 \n\t" /* check loop termination, proceed if required */
+- "jmp .L10282 \n\t" ".align 16 \n\t" /* 16 byte allignment of the loop entry */
+- ".L10281: \n\t" "movq (%%eax), %%mm3 \n\t" /* load 8 bytes from Src1 into MM3 */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
++ "jmp 3f \n\t" ".align 16 \n\t" /* 16 byte allignment of the loop entry */
++ "2: movq (%%eax), %%mm3 \n\t" /* load 8 bytes from Src1 into MM3 */
+@@ -2018,2 +2018,2 @@
+- "jnz .L10281 \n\t" /* check loop termination, proceed if required */
+- ".L10282: \n\t" "emms \n\t" /* exit MMX state */
++ "jnz 2b \n\t" /* check loop termination, proceed if required */
++ "3: emms \n\t" /* exit MMX state */
+@@ -2098 +2098 @@
+- ".L1029: \n\t"
++ "1: \n\t"
+@@ -2106 +2106 @@
+- "jnz .L1029 \n\t" /* check loop termination, proceed if required */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
+@@ -2189 +2189 @@
+- ".L1030: \n\t"
++ "1: \n\t"
+@@ -2198 +2198 @@
+- "jnz .L1030 \n\t" /* check loop termination, proceed if required */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
+@@ -2266 +2266 @@
+- "jz .L10311 \n\t" /* check division by zero */
++ "jz 1f \n\t" /* check division by zero */
+@@ -2269,2 +2269,2 @@
+- "jmp .L10312 \n\t" ".L10311: \n\t" "mov $255, %%ax \n\t" /* if div by zero, assume result max. byte value */
+- ".L10312: \n\t" /* ** Duplicate AX in 4 words of MM0 ** */
++ "jmp 2f \n\t" "1: \n\t" "mov $255, %%ax \n\t" /* if div by zero, assume result max. byte value */
++ "2: \n\t" /* ** Duplicate AX in 4 words of MM0 ** */
+@@ -2299 +2299 @@
+- ".L1031: \n\t"
++ "1: \n\t"
+@@ -2324 +2324 @@
+- "jnz .L1031 \n\t" /* check loop termination, proceed if required */
++ "jnz 1b \n\t" /* check loop termination, proceed if required */
diff --git a/media-libs/sdl-gfx/sdl-gfx-2.0.16.ebuild b/media-libs/sdl-gfx/sdl-gfx-2.0.16.ebuild
index d22d28a9c7a5..eca0e382fc5f 100644
--- a/media-libs/sdl-gfx/sdl-gfx-2.0.16.ebuild
+++ b/media-libs/sdl-gfx/sdl-gfx-2.0.16.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-gfx/sdl-gfx-2.0.16.ebuild,v 1.5 2008/03/06 03:59:50 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-gfx/sdl-gfx-2.0.16.ebuild,v 1.6 2008/05/10 11:08:18 vapier Exp $
inherit autotools eutils flag-o-matic libtool
@@ -21,15 +21,13 @@ S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
cd "${S}"
- rm -f acinclude.m4 # bug #210137
+ epatch "${FILESDIR}"/${P}-gcc43.patch #219621
+ rm -f acinclude.m4 #210137
eautoreconf
elibtoolize
}
src_compile() {
- filter-flags -finline-functions -funroll-loops #26892 #89749
- replace-flags -O? -O2
-
econf \
--disable-dependency-tracking \
$(use_enable mmx) || die