diff options
| -rw-r--r-- | meta/recipes-graphics/libsdl2/libsdl2/fix-build-failure-on-ppc.patch | 50 | ||||
| -rw-r--r-- | meta/recipes-graphics/libsdl2/libsdl2/linkage.patch | 46 | ||||
| -rw-r--r-- | meta/recipes-graphics/libsdl2/libsdl2_2.0.7.bb (renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.5.bb) | 8 |
3 files changed, 3 insertions, 101 deletions
diff --git a/meta/recipes-graphics/libsdl2/libsdl2/fix-build-failure-on-ppc.patch b/meta/recipes-graphics/libsdl2/libsdl2/fix-build-failure-on-ppc.patch deleted file mode 100644 index 1520bcfb6a..0000000000 --- a/meta/recipes-graphics/libsdl2/libsdl2/fix-build-failure-on-ppc.patch +++ /dev/null | |||
| @@ -1,50 +0,0 @@ | |||
| 1 | Upstream-Status: Backport [https://hg.libsdl.org/SDL/rev/5184186d4366] | ||
| 2 | |||
| 3 | Backport patch from upstream to fix build failures on ppc and ppc64. | ||
| 4 | |||
| 5 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
| 6 | --- | ||
| 7 | # HG changeset patch | ||
| 8 | # User Sam Lantinga <slouken@libsdl.org> | ||
| 9 | # Date 1477159315 25200 | ||
| 10 | # Node ID 5184186d4366169617b434f5b71c618a7035cde4 | ||
| 11 | # Parent 71d4148e32de5088c4bc2f04c1e5ded647a2bf82 | ||
| 12 | Fixed bug 3466 - Can't build 2.0.5 on ppc64 | ||
| 13 | |||
| 14 | /home/fedora/SDL2-2.0.5/src/video/SDL_blit_N.c: In function 'calc_swizzle32': | ||
| 15 | /home/fedora/SDL2-2.0.5/src/video/SDL_blit_N.c:127:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] | ||
| 16 | const vector unsigned char plus = VECUINT8_LITERAL(0x00, 0x00, 0x00, 0x00, | ||
| 17 | ^ | ||
| 18 | |||
| 19 | diff -r 71d4148e32de -r 5184186d4366 src/video/SDL_blit_N.c | ||
| 20 | --- a/src/video/SDL_blit_N.c Wed Oct 19 21:22:42 2016 -0700 | ||
| 21 | +++ b/src/video/SDL_blit_N.c Sat Oct 22 11:01:55 2016 -0700 | ||
| 22 | @@ -118,12 +118,6 @@ | ||
| 23 | 16, 8, 0, 24, | ||
| 24 | 0, NULL | ||
| 25 | }; | ||
| 26 | - if (!srcfmt) { | ||
| 27 | - srcfmt = &default_pixel_format; | ||
| 28 | - } | ||
| 29 | - if (!dstfmt) { | ||
| 30 | - dstfmt = &default_pixel_format; | ||
| 31 | - } | ||
| 32 | const vector unsigned char plus = VECUINT8_LITERAL(0x00, 0x00, 0x00, 0x00, | ||
| 33 | 0x04, 0x04, 0x04, 0x04, | ||
| 34 | 0x08, 0x08, 0x08, 0x08, | ||
| 35 | @@ -136,6 +130,14 @@ | ||
| 36 | Uint32 gmask = RESHIFT(srcfmt->Gshift) << (dstfmt->Gshift); | ||
| 37 | Uint32 bmask = RESHIFT(srcfmt->Bshift) << (dstfmt->Bshift); | ||
| 38 | Uint32 amask; | ||
| 39 | + | ||
| 40 | + if (!srcfmt) { | ||
| 41 | + srcfmt = &default_pixel_format; | ||
| 42 | + } | ||
| 43 | + if (!dstfmt) { | ||
| 44 | + dstfmt = &default_pixel_format; | ||
| 45 | + } | ||
| 46 | + | ||
| 47 | /* Use zero for alpha if either surface doesn't have alpha */ | ||
| 48 | if (dstfmt->Amask) { | ||
| 49 | amask = | ||
| 50 | |||
diff --git a/meta/recipes-graphics/libsdl2/libsdl2/linkage.patch b/meta/recipes-graphics/libsdl2/libsdl2/linkage.patch deleted file mode 100644 index 60185b131f..0000000000 --- a/meta/recipes-graphics/libsdl2/libsdl2/linkage.patch +++ /dev/null | |||
| @@ -1,46 +0,0 @@ | |||
| 1 | When building use the libtool intermediate .lo files instead of explicitly using | ||
| 2 | the .o files. Under libtool foo.lo is the libtool intermediate wrapper, foo.o is | ||
| 3 | a static build, and .libs/foo.o is a shared build. | ||
| 4 | |||
| 5 | If static libraries have been disabled globally then libtool won't generate them | ||
| 6 | and explicit references to foo.o won't be satisfied. | ||
| 7 | |||
| 8 | Upstream-Status: Pending | ||
| 9 | RP | ||
| 10 | 2016/1/16 | ||
| 11 | |||
| 12 | |||
| 13 | Index: SDL2-2.0.4/configure.in | ||
| 14 | =================================================================== | ||
| 15 | --- SDL2-2.0.4.orig/configure.in | ||
| 16 | +++ SDL2-2.0.4/configure.in | ||
| 17 | @@ -3464,23 +3464,23 @@ done | ||
| 18 | |||
| 19 | VERSION_OBJECTS=`echo $VERSION_SOURCES` | ||
| 20 | VERSION_DEPENDS=`echo $VERSION_SOURCES` | ||
| 21 | -VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.rc,$(objects)/\1.o,g'` | ||
| 22 | +VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.rc,$(objects)/\1.lo,g'` | ||
| 23 | VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.rc,\\\\ | ||
| 24 | -\\$(objects)/\\2.o: \\1/\\2.rc\\\\ | ||
| 25 | +\\$(objects)/\\2.lo: \\1/\\2.rc\\\\ | ||
| 26 | \\$(WINDRES) \\$< \\$@,g"` | ||
| 27 | |||
| 28 | SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES` | ||
| 29 | SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES` | ||
| 30 | -SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.o,g'` | ||
| 31 | +SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.lo,g'` | ||
| 32 | SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.c,\\\\ | ||
| 33 | -\\$(objects)/\\2.o: \\1/\\2.c\\\\ | ||
| 34 | +\\$(objects)/\\2.lo: \\1/\\2.c\\\\ | ||
| 35 | \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"` | ||
| 36 | |||
| 37 | SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES` | ||
| 38 | SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES` | ||
| 39 | -SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.o,g'` | ||
| 40 | +SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.lo,g'` | ||
| 41 | SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.c,\\\\ | ||
| 42 | -\\$(objects)/\\2.o: \\1/\\2.c\\\\ | ||
| 43 | +\\$(objects)/\\2.lo: \\1/\\2.c\\\\ | ||
| 44 | \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"` | ||
| 45 | |||
| 46 | # Set runtime shared library paths as needed | ||
diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.5.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.7.bb index 032f45bb20..fcbfa738b5 100644 --- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.5.bb +++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.7.bb | |||
| @@ -8,7 +8,7 @@ BUGTRACKER = "http://bugzilla.libsdl.org/" | |||
| 8 | SECTION = "libs" | 8 | SECTION = "libs" |
| 9 | 9 | ||
| 10 | LICENSE = "Zlib" | 10 | LICENSE = "Zlib" |
| 11 | LIC_FILES_CHKSUM = "file://COPYING.txt;md5=b2304ad7e91711027590d3f102a754b7" | 11 | LIC_FILES_CHKSUM = "file://COPYING.txt;md5=e4688d3bd5bf02dadaa3e5182fd9eda9" |
| 12 | 12 | ||
| 13 | PROVIDES = "virtual/libsdl2" | 13 | PROVIDES = "virtual/libsdl2" |
| 14 | 14 | ||
| @@ -16,14 +16,12 @@ DEPENDS_class-nativesdk = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtu | |||
| 16 | 16 | ||
| 17 | SRC_URI = " \ | 17 | SRC_URI = " \ |
| 18 | http://www.libsdl.org/release/SDL2-${PV}.tar.gz \ | 18 | http://www.libsdl.org/release/SDL2-${PV}.tar.gz \ |
| 19 | file://linkage.patch \ | ||
| 20 | file://fix-build-failure-on-ppc.patch \ | ||
| 21 | " | 19 | " |
| 22 | 20 | ||
| 23 | S = "${WORKDIR}/SDL2-${PV}" | 21 | S = "${WORKDIR}/SDL2-${PV}" |
| 24 | 22 | ||
| 25 | SRC_URI[md5sum] = "d4055424d556b4a908aa76fad63abd3c" | 23 | SRC_URI[md5sum] = "cdb071009d250e1782371049f0d5ca42" |
| 26 | SRC_URI[sha256sum] = "442038cf55965969f2ff06d976031813de643af9c9edc9e331bd761c242e8785" | 24 | SRC_URI[sha256sum] = "ee35c74c4313e2eda104b14b1b86f7db84a04eeab9430d56e001cea268bf4d5e" |
| 27 | 25 | ||
| 28 | inherit autotools lib_package binconfig pkgconfig | 26 | inherit autotools lib_package binconfig pkgconfig |
| 29 | 27 | ||
