File tree 7 files changed +96
-30
lines changed
7 files changed +96
-30
lines changed Original file line number Diff line number Diff line change @@ -22,19 +22,14 @@ function prebuild_c_igraph() {
22
22
true
23
23
}
24
24
25
- function build_c_igraph() {
26
- cd $BUILD_c_igraph
27
-
28
- push_arm
29
-
30
- export CPPFLAGS=" -I$ANDROIDNDK /sources/cxx-stl/gnu-libstdc++/4.4.3/include -I$ANDROIDNDK /sources/cxx-stl/gnu-libstdc++/4.4.3/libs/armeabi/include"
31
- try ./configure --prefix=" $BUILD_PATH /python-install" --libdir=" $BUILD_PATH /libs" --host=arm-gnueabi --with-sysroot=" $ANDROIDNDK /sources/cxx-stl/stlport/" --with-external-f2c
32
- try patch $BUILD_c_igraph /config.h $RECIPE_c_igraph /config.h.patch
33
- try $MAKE
34
- try $MAKE install
35
-
25
+ function shouldbuild_c_igraph() {
26
+ false
27
+ }
36
28
37
- pop_arm
29
+ function build_c_igraph() {
30
+ # I'm not even going to make anything here!
31
+ # I'll let the main igraph recipe do that.
32
+ true
38
33
}
39
34
40
35
function postbuild_c_igraph() {
Original file line number Diff line number Diff line change
1
+ 170c170,180
2
+ < scg_headers.h igraph_hacks_internal.h
3
+ ---
4
+ > scg_headers.h igraph_hacks_internal.h \
5
+ > arpackobject.h \
6
+ > pyattributes.h bfsiter.h \
7
+ > common.h convert.h \
8
+ > edgeobject.h edgeseqobject.h \
9
+ > error.h filehandle.h \
10
+ > graphobject.h igraphmodule_api.h \
11
+ > indexing.h platform.h \
12
+ > py2compat.h pyhelpers.h \
13
+ > pyrandom.h vertexobject.h \
14
+ > vertexseqobject.h
15
+ 260c270,287
16
+ < qsort.c qsort_r.c types.c hacks.c
17
+ ---
18
+ > qsort.c qsort_r.c types.c hacks.c \
19
+ > arpackobject.c \
20
+ > pyattributes.c \
21
+ > bfsiter.c \
22
+ > common.c \
23
+ > convert.c \
24
+ > edgeobject.c \
25
+ > edgeseqobject.c \
26
+ > error.c \
27
+ > filehandle.c \
28
+ > graphobject.c \
29
+ > igraphmodule.c \
30
+ > indexing.c \
31
+ > py2compat.c \
32
+ > pyhelpers.c \
33
+ > pyrandom.c \
34
+ > vertexobject.c \
35
+ > vertexseqobject.c
36
+ 263,265c290,292
37
+ < libigraph_la_CFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include $(WARNING_CFLAGS)
38
+ < libigraph_la_CXXFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include $(WARNING_CFLAGS)
39
+ < libigraph_la_LDFLAGS = -no-undefined
40
+ ---
41
+ > libigraph_la_CFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include $(WARNING_CFLAGS) -IBUILD_PATH/python-install/include/python2.7
42
+ > libigraph_la_CXXFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include $(WARNING_CFLAGS) -IBUILD_PATH/python-install/include/python2.7
43
+ > libigraph_la_LDFLAGS = -no-undefined -LBUILD_PATH/python-install/lib -IBUILD_PATH/python-install/include/python2.7
44
+ 267c294
45
+ < $(LAPACK_LIB) $(ARPACK_LIB) $(GLPK_LIB) $(PLFIT_LIB)
46
+ ---
47
+ > $(LAPACK_LIB) $(ARPACK_LIB) $(GLPK_LIB) $(PLFIT_LIB) -lpython2.7
Original file line number Diff line number Diff line change
1
+ 1a2
2
+ > #define HAVE_LOGBL 1
Original file line number Diff line number Diff line change 1
- --- build/c_igraph/igraph-0.6.5/config.h 2013-11-05 14:10:26.285433616 -0500
2
- +++ config.h 2013-11-05 14:12:36.431283045 -0500
3
- @@ -53,7 +53,7 @@
4
- /* #undef HAVE_LOG2 */
5
-
6
- /* Define to 1 if you have the `logbl' function. */
7
- - /* #undef HAVE_LOGBL */
8
- + #define HAVE_LOGBL 1
9
-
10
- /* Define to 1 if you have the <memory.h> header file. */
11
- #define HAVE_MEMORY_H 1
1
+ 2a3
2
+ > #define HAVE_LOGBL 1
Original file line number Diff line number Diff line change
1
+ 43c43
2
+ < AC_CHECK_FUNCS([expm1 rint rintf finite log2 logbl snprintf log1p round fabsl fmin strcasecmp isnan strdup _strdup ftruncate stpcpy])
3
+ ---
4
+ > AC_CHECK_FUNCS([expm1 rint rintf finite log2 snprintf log1p round fabsl fmin strcasecmp isnan strdup _strdup ftruncate stpcpy])
Original file line number Diff line number Diff line change
1
+ from distutils .util import get_platform
2
+ from sys import version
3
+ print get_platform () + '-' + version [:3 ]
Original file line number Diff line number Diff line change 6
6
7
7
VERSION_igraph=${VERSION_igraph: 0.6.5}
8
8
9
- DEPS_igraph=(python c_igraph)
9
+ DEPS_igraph=(c_igraph python )
10
10
11
11
URL_igraph=http://pypi.python.org/packages/source/p/python-igraph/python-igraph-0.6.5.tar.gz
12
12
@@ -21,16 +21,40 @@ function prebuild_igraph() {
21
21
true
22
22
}
23
23
24
- function shouldbuild_igraph() {
25
- true
26
- }
27
-
28
24
function build_igraph() {
29
25
cd $BUILD_igraph
30
26
push_arm
31
27
32
- patch setup.py $RECIPE_igraph /setup.py.patch
33
- try $HOSTPYTHON setup.py build_ext -p arm-gnueabi -L " $BUILD_PATH /libs" -I " $BUILD_PATH /python-install/include/igraph/" install --no-pkg-config --root $BUILD_PATH /python-install
28
+ export CMD=" rename 's/attributes/pyattributes/' src/attributes*"
29
+ echo $CMD
30
+ try $CMD
31
+ export CMD=" rename 's/random/pyrandom/' src/random*"
32
+ echo $CMD
33
+ try $CMD
34
+ export CMD=" cp src/* $BUILD_c_igraph /src/"
35
+ echo $CMD
36
+ try $CMD
37
+ cd $BUILD_c_igraph
38
+ try patch src/Makefile.am $RECIPE_igraph /Makefile.am.patch
39
+ export CMD=" sed -i s{BUILD_PATH{$BUILD_PATH {g src/Makefile.am"
40
+ echo $CMD
41
+ try $CMD
42
+ export CPPFLAGS=" -I$ANDROIDNDK /sources/cxx-stl/gnu-libstdc++/4.4.3/include -I$ANDROIDNDK /sources/cxx-stl/gnu-libstdc++/4.4.3/libs/armeabi/include -DHAVE_LOGBL"
43
+ export CFLAGS=" -I$BUILD_PATH /python-install/include/python2.7 -L$BUILD_PATH /python-install/lib"
44
+ try ./configure --prefix=" $BUILD_c_igraph " --host=arm-gnueabi --with-external-f2c
45
+ try $MAKE
46
+ try $MAKE install
47
+ cd $BUILD_igraph
48
+ export BUILDDIR=" build/lib.` python $RECIPE_igraph /get_platform.py` "
49
+ export CMD=" mkdir -p $BUILDDIR "
50
+ echo $CMD
51
+ try $CMD
52
+ export CMD=" cp $BUILD_c_igraph /lib/libigraph.so.0.0.0 $BUILDDIR /_igraph.so"
53
+ echo $CMD
54
+ try $CMD
55
+ cd $BUILD_igraph
56
+ try $HOSTPYTHON setup.py build_scripts
57
+ try $HOSTPYTHON setup.py install --skip-build --no-pkg-config --root $BUILD_PATH /python-install
34
58
35
59
pop_arm
36
60
}
You can’t perform that action at this time.
0 commit comments