Skip to content

Commit

Permalink
use SED instead of sed + fix PIL build on osx (not tested). closes #47
Browse files Browse the repository at this point in the history
  • Loading branch information
tito committed Aug 31, 2012
1 parent 51f8025 commit 54814e1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
4 changes: 2 additions & 2 deletions recipes/libxml2/recipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ function build_libxml2() {

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

pop_arm
Expand Down
12 changes: 12 additions & 0 deletions recipes/pil/patches/disable-tk.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- Imaging-1.1.7/setup.py.orig 2012-08-31 12:52:25.000000000 +0200
+++ Imaging-1.1.7/setup.py 2012-08-31 12:53:04.000000000 +0200
@@ -322,7 +322,7 @@
"_imagingcms", ["_imagingcms.c"], libraries=["lcms"] + extra
))

- if sys.platform == "darwin":
+ if False: #sys.platform == "darwin":
# locate Tcl/Tk frameworks
frameworks = []
framework_roots = [

8 changes: 5 additions & 3 deletions recipes/pil/recipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ function prebuild_pil() {

LIBS="$SRC_PATH/obj/local/$ARCH"
try cp setup.py.tmpl setup.py
try sed -i s:_LIBS_:$LIBS: setup.py
try sed -i s:_JNI_:$JNI_PATH: setup.py
try sed -i s:_NDKPLATFORM_:$NDKPLATFORM: setup.py
try $SED s:_LIBS_:$LIBS: setup.py
try $SED s:_JNI_:$JNI_PATH: setup.py
try $SED s:_NDKPLATFORM_:$NDKPLATFORM: setup.py

try patch -p1 < $RECIPE_pil/patches/disable-tk.patch

# everything done, touch the marker !
touch .patched
Expand Down

0 comments on commit 54814e1

Please sign in to comment.