Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions recipes/pylibpd/patches/threadfix.patch
Original file line number Diff line number Diff line change
@@ -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',
37 changes: 15 additions & 22 deletions recipes/pylibpd/recipe.sh
Original file line number Diff line number Diff line change
@@ -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
}