Skip to content

Commit 54814e1

Browse files
committed
use SED instead of sed + fix PIL build on osx (not tested). closes kivy#47
1 parent 51f8025 commit 54814e1

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

recipes/libxml2/recipe.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ function build_libxml2() {
2222

2323
try ./configure --build=i686-pc-linux-gnu --host=arm-linux-eabi \
2424
--without-modules --without-legacy --without-history --without-debug --without-docbook --without-python
25-
try sed -i 's/ runtest\$(EXEEXT) \\/ \\/' Makefile
26-
try sed -i 's/ testrecurse\$(EXEEXT)$//' Makefile
25+
try $SED 's/ runtest\$(EXEEXT) \\/ \\/' Makefile
26+
try $SED 's/ testrecurse\$(EXEEXT)$//' Makefile
2727
try make
2828

2929
pop_arm

recipes/pil/patches/disable-tk.patch

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--- Imaging-1.1.7/setup.py.orig 2012-08-31 12:52:25.000000000 +0200
2+
+++ Imaging-1.1.7/setup.py 2012-08-31 12:53:04.000000000 +0200
3+
@@ -322,7 +322,7 @@
4+
"_imagingcms", ["_imagingcms.c"], libraries=["lcms"] + extra
5+
))
6+
7+
- if sys.platform == "darwin":
8+
+ if False: #sys.platform == "darwin":
9+
# locate Tcl/Tk frameworks
10+
frameworks = []
11+
framework_roots = [
12+

recipes/pil/recipe.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ function prebuild_pil() {
2121

2222
LIBS="$SRC_PATH/obj/local/$ARCH"
2323
try cp setup.py.tmpl setup.py
24-
try sed -i s:_LIBS_:$LIBS: setup.py
25-
try sed -i s:_JNI_:$JNI_PATH: setup.py
26-
try sed -i s:_NDKPLATFORM_:$NDKPLATFORM: setup.py
24+
try $SED s:_LIBS_:$LIBS: setup.py
25+
try $SED s:_JNI_:$JNI_PATH: setup.py
26+
try $SED s:_NDKPLATFORM_:$NDKPLATFORM: setup.py
27+
28+
try patch -p1 < $RECIPE_pil/patches/disable-tk.patch
2729

2830
# everything done, touch the marker !
2931
touch .patched

0 commit comments

Comments
 (0)