From f528bf2fee375b91af7f7689512dbc5c79197973 Mon Sep 17 00:00:00 2001 From: Ben Rousch Date: Fri, 7 Jun 2013 15:13:39 -0400 Subject: [PATCH] Fixed recipe for pylibpd --- recipes/pylibpd/patches/threadfix.patch | 10 +++++++ recipes/pylibpd/recipe.sh | 37 ++++++++++--------------- 2 files changed, 25 insertions(+), 22 deletions(-) create mode 100644 recipes/pylibpd/patches/threadfix.patch diff --git a/recipes/pylibpd/patches/threadfix.patch b/recipes/pylibpd/patches/threadfix.patch new file mode 100644 index 0000000000..f299d01c7f --- /dev/null +++ b/recipes/pylibpd/patches/threadfix.patch @@ -0,0 +1,10 @@ +--- python/setup-threadfix.py 2013-05-29 13:10:16.000000000 -0400 ++++ python/setup.py 2013-06-07 11:53:34.447298388 -0400 +@@ -22,7 +22,6 @@ + libraries = [ + 'm', + 'dl', +- 'pthread', + ], + sources=[ + 'pylibpd.i', diff --git a/recipes/pylibpd/recipe.sh b/recipes/pylibpd/recipe.sh index 16f5dfa639..14266a47f2 100644 --- a/recipes/pylibpd/recipe.sh +++ b/recipes/pylibpd/recipe.sh @@ -1,39 +1,32 @@ #!/bin/bash - -# version of your package -VERSION_pylibpd=1.3 - -# dependencies of this recipe -DEPS_pylibpd=() - -# url of the -URL_pylibpd=http://ticklestep.com/pylibpd.tar.gz - -# md5 of the package -MD5_pylibpd=647f813726c21445c42bc2fc77a4b146 - -# default build path +VERSION_pylibpd= +DEPS_pylibpd=(python) +URL_pylibpd=https://github.com/libpd/libpd/archive/master.zip +MD5_pylibpd= BUILD_pylibpd=$BUILD_PATH/pylibpd/$(get_directory $URL_pylibpd) - -# default recipe path RECIPE_pylibpd=$RECIPES_PATH/pylibpd -# function called for preparing source code if needed -# (you can apply patch etc here.) function prebuild_pylibpd() { - true + # Apply thread removal patch + cd $BUILD_pylibpd/python + if [ -f .patched ]; then + return + fi + try patch -p1 < $RECIPE_pylibpd/patches/threadfix.patch + touch .patched } -# function called to build the source code function build_pylibpd() { cd $BUILD_pylibpd/python push_arm - $BUILD_PATH/python-install/bin/python.host setup.py install -O2 + try $BUILD_PATH/python-install/bin/python.host setup.py build + try $BUILD_PATH/python-install/bin/python.host setup.py install -O2 + try $BUILD_PATH/python-install/bin/python.host setup.py clean pop_arm } # function called after all the compile have been done function postbuild_pylibpd() { - true + true }