Skip to content

Commit 5b42f0f

Browse files
committed
Merge branch 'master' of https://github.com/Stocarson/python-for-android into Stocarson-master
2 parents bb85667 + 8cdf614 commit 5b42f0f

File tree

3 files changed

+30
-6
lines changed

3 files changed

+30
-6
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- Makefile 2015-08-19 10:42:49.160410592 +0200
2+
+++ Makefile-threadfix 2015-08-19 11:08:49.458350964 +0200
3+
@@ -150,7 +150,7 @@
4+
libpd: $(LIBPD)
5+
6+
$(LIBPD): ${PD_FILES:.c=.o} ${UTIL_FILES:.c=.o} ${EXTRA_FILES:.c=.o}
7+
- $(CC) -o $(LIBPD) $^ $(LDFLAGS) -lm -lpthread
8+
+ $(CC) -o $(LIBPD) $^ $(LDFLAGS) -lm
9+
10+
javalib: $(JNIH_FILE) $(PDJAVA_JAR)
11+
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +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 @@
1+
--- python/setup.py 2015-08-18 11:15:35.546257493 +0200
2+
+++ python/setup-threadfix.py 2015-08-18 11:32:16.784394028 +0200
3+
@@ -24,7 +24,6 @@
44
libraries = [
55
'm',
66
'dl',
7-
- 'pthread',
7+
- 'pthread'
88
],
9-
sources=[
9+
sources = [
1010
'pylibpd.i',

recipes/pylibpd/recipe.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,26 @@ URL_pylibpd=https://github.com/libpd/libpd/archive/$VERSION_pylibpd.zip
66
MD5_pylibpd=
77
BUILD_pylibpd=$BUILD_PATH/pylibpd/$(get_directory $URL_pylibpd)
88
RECIPE_pylibpd=$RECIPES_PATH/pylibpd
9+
GIT_pylibpd=https://github.com/libpd/libpd
910

1011
function prebuild_pylibpd() {
12+
# Clone recursively libpd repository
13+
rm -rf $BUILD_pylibpd
14+
git clone --recursive $GIT_pylibpd $BUILD_pylibpd
1115
# Apply thread removal patch
1216
cd $BUILD_pylibpd/python
1317
if [ -f .patched ]; then
1418
return
1519
fi
1620
try patch -p1 < $RECIPE_pylibpd/patches/threadfix.patch
1721
touch .patched
22+
# Apply Makefile patch
23+
cd $BUILD_pylibpd
24+
if [ -f .patched ]; then
25+
return
26+
fi
27+
try patch < $RECIPE_pylibpd/patches/makefilefix.patch
28+
touch .patched
1829
}
1930

2031
function shouldbuild_pylibpd() {
@@ -24,8 +35,10 @@ function shouldbuild_pylibpd() {
2435
}
2536

2637
function build_pylibpd() {
27-
cd $BUILD_pylibpd/python
2838
push_arm
39+
cd $BUILD_pylibpd
40+
try make
41+
cd python
2942
try $HOSTPYTHON setup.py build
3043
try $HOSTPYTHON setup.py install -O2
3144
try $HOSTPYTHON setup.py clean

0 commit comments

Comments
 (0)