Skip to content

Commit f528bf2

Browse files
committed
Fixed recipe for pylibpd
1 parent 8a82662 commit f528bf2

File tree

2 files changed

+25
-22
lines changed

2 files changed

+25
-22
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--- python/setup-threadfix.py 2013-05-29 13:10:16.000000000 -0400
2+
+++ python/setup.py 2013-06-07 11:53:34.447298388 -0400
3+
@@ -22,7 +22,6 @@
4+
libraries = [
5+
'm',
6+
'dl',
7+
- 'pthread',
8+
],
9+
sources=[
10+
'pylibpd.i',

recipes/pylibpd/recipe.sh

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,32 @@
11
#!/bin/bash
22

3-
4-
# version of your package
5-
VERSION_pylibpd=1.3
6-
7-
# dependencies of this recipe
8-
DEPS_pylibpd=()
9-
10-
# url of the
11-
URL_pylibpd=http://ticklestep.com/pylibpd.tar.gz
12-
13-
# md5 of the package
14-
MD5_pylibpd=647f813726c21445c42bc2fc77a4b146
15-
16-
# default build path
3+
VERSION_pylibpd=
4+
DEPS_pylibpd=(python)
5+
URL_pylibpd=https://github.com/libpd/libpd/archive/master.zip
6+
MD5_pylibpd=
177
BUILD_pylibpd=$BUILD_PATH/pylibpd/$(get_directory $URL_pylibpd)
18-
19-
# default recipe path
208
RECIPE_pylibpd=$RECIPES_PATH/pylibpd
219

22-
# function called for preparing source code if needed
23-
# (you can apply patch etc here.)
2410
function prebuild_pylibpd() {
25-
true
11+
# Apply thread removal patch
12+
cd $BUILD_pylibpd/python
13+
if [ -f .patched ]; then
14+
return
15+
fi
16+
try patch -p1 < $RECIPE_pylibpd/patches/threadfix.patch
17+
touch .patched
2618
}
2719

28-
# function called to build the source code
2920
function build_pylibpd() {
3021
cd $BUILD_pylibpd/python
3122
push_arm
32-
$BUILD_PATH/python-install/bin/python.host setup.py install -O2
23+
try $BUILD_PATH/python-install/bin/python.host setup.py build
24+
try $BUILD_PATH/python-install/bin/python.host setup.py install -O2
25+
try $BUILD_PATH/python-install/bin/python.host setup.py clean
3326
pop_arm
3427
}
3528

3629
# function called after all the compile have been done
3730
function postbuild_pylibpd() {
38-
true
31+
true
3932
}

0 commit comments

Comments
 (0)