lbry-fdroid/p4a/pythonforandroid/recipes/pygame_bootstrap_components/jpeg-ndk15-plus.patch
Akinwale Ariwodola 8b2694efb7
New build (#508)
* fix build for openssl 1.1.1b required for sdk
(cherry picked from commit aa49e3b2755b97b6331cdbbb89efc954de8d5977)

* use js code from master

* fix openssl recipe and tweak build
(cherry picked from commit 6e94c27021c7bd7b1e880c2fc314850e36a5a38e)

* remove unused build recipes
(cherry picked from commit f5c0577bdb175bfc0990602936bbc9e2052e1f25)
2019-03-30 21:58:45 +01:00

44 lines
1.3 KiB
Diff

The distributed jpeg has troubles to be build with newer ndks, starting from
the introduction of the `unified headers` (ndk > 15). This patch allow us to
build the distributed `external jpeg` in sdl package, got the solution in here:
https://github.com/oNaiPs/droidVncServer/issues/53
--- jni/jpeg/Android.mk.orig 2015-06-21 15:14:54.000000000 +0200
+++ jni/jpeg/Android.mk 2019-01-14 10:57:06.384806168 +0100
@@ -20,7 +20,7 @@
endif
# temp fix until we understand why this broke cnn.com
-#ANDROID_JPEG_NO_ASSEMBLER := true
+ANDROID_JPEG_NO_ASSEMBLER := true
ifeq ($(strip $(ANDROID_JPEG_NO_ASSEMBLER)),true)
LOCAL_SRC_FILES += jidctint.c jidctfst.c
--- jni/jpeg/jidctfst.S.orig 2019-01-14 11:00:38.000000000 +0100
+++ jni/jpeg/jidctfst.S 2019-01-14 11:00:56.844803970 +0100
@@ -63,7 +63,7 @@
jpeg_idct_ifast:
- PLD [r2, #0]
+ pld [r2, #0]
stmdb sp!, {r4,r5, r6,r7, r8,r9, r10,r11, r12,lr}
ldr r4, [sp, #4*10]
sub sp, #local_SIZE
@@ -256,7 +256,7 @@
HLoopStart:
// reset pointers
- PLD [sp, #off_WORKSPACE]
+ pld [sp, #off_WORKSPACE]
add ip, sp, #off_WORKSPACE
ldr r10, local_RANGE_TABLE
@@ -268,7 +268,7 @@
str r0, local_OUTPUT_BUF
add fp, r2, r1
- PLD [ip, #32]
+ pld [ip, #32]
ldmia ip!, {r0-r7}
cmp r1, #0