@@ -19,7 +19,14 @@ BUILD_c_igraph=$BUILD_PATH/c_igraph/$(get_directory $URL_c_igraph)
19
19
RECIPE_c_igraph=$RECIPES_PATH /c_igraph
20
20
21
21
function prebuild_c_igraph() {
22
- true
22
+ if [ ! -e $BUILD_c_igraph /.patched ]; then {
23
+ try patch $BUILD_c_igraph /src/Makefile.am $RECIPE_c_igraph /Makefile.am.patch;
24
+ try cp -f $RECIPE_c_igraph /arith.h $BUILD_c_igraph /src/f2c/arith.h;
25
+ try patch $BUILD_c_igraph /src/f2c/sysdep1.h $RECIPE_c_igraph /sysdep1.h.patch;
26
+ try patch $BUILD_c_igraph /src/f2c/uninit.c $RECIPE_c_igraph /uninit.c.patch;
27
+ touch $BUILD_c_igraph /.patched;
28
+ }
29
+ fi
23
30
}
24
31
25
32
function shouldbuild_c_igraph() {
@@ -32,15 +39,15 @@ function build_c_igraph() {
32
39
cd $BUILD_c_igraph
33
40
34
41
push_arm
35
- try patch $BUILD_c_igraph /src/Makefile.am $RECIPE_c_igraph /Makefile.am.patch
36
- export OLD_CPPFLAGS=" $CPPFLAGS "
37
- export CPPFLAGS=" $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 -L$ANDROIDNDK /platforms/android-$ANDROIDAPI /arch-arm/usr/lib"
38
- try ./configure --prefix=" $BUILD_PATH /python-install" --build=i686-pc-linux-gnu --host=arm-linux-eabi
39
- export CPPFLAGS= " $OLD_CPPFLAGS "
40
- try cp -f $RECIPE_c_igraph /arith.h $BUILD_c_igraph /src/f2c/arith.h
41
- try patch $BUILD_c_igraph /src/f2c/sysdep1.h $RECIPE_c_igraph /sysdep1.h.patch
42
- try patch $BUILD_c_igraph /src/f2c/uninit.c $RECIPE_c_igraph /uninit.c.patch
43
- try patch $BUILD_c_igraph /config.h $RECIPE_c_igraph /config.h.patch
42
+ if [ ! -e $BUILD_c_igraph /config.h ] ; then
43
+ export OLD_CPPFLAGS=" $CPPFLAGS " ;
44
+ export CPPFLAGS=" $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 -L$ANDROIDNDK /platforms/android-$ANDROIDAPI /arch-arm/usr/lib" ;
45
+ try ./configure --prefix=" $BUILD_PATH /python-install" --build=i686-pc-linux-gnu --host=arm-linux-eabi;
46
+ try patch $BUILD_c_igraph /config.h $RECIPE_c_igraph /config.h.patch ;
47
+ export CPPFLAGS= " $OLD_CPPFLAGS " ;
48
+ fi
49
+
50
+
44
51
try $MAKE
45
52
try $MAKE install
46
53
0 commit comments