File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,13 @@ rmifexists $SYS_PREFIX/include/png*
1313package_configure $EXTRACONF --with-zlib-prefix=" $SYS_PREFIX " --enable-static --disable-shared
1414
1515if [ ! $SYS_HOSTPLATFORM = win32 ]; then
16- package_make
16+ if [ $SYS_PLATFORM = android ] && [ -f $SYS_PREFIX /include/zlib.h ] ; then
17+ mv $SYS_PREFIX /include/zlib.h $SYS_PREFIX /include/zlib.h.tmp
18+ package_make
19+ mv $SYS_PREFIX /include/zlib.h.tmp $SYS_PREFIX /include/zlib.h
20+ else
21+ package_make
22+ fi
1723else
1824 # mutilate some default windows makefile - argh!
1925 cat scripts/makefile.msys | sed " s|CC =|CC=$SYS_CC #|;s|DESTDIR=|DESTDIR=$SYS_PREFIX #|;s|ZLIBDIR=|ZLIBDIR=$SYS_PREFIX /lib #|;s|ZLIBINC=|ZLIBINC=$SYS_PREFIX /include #|" > makefile.msys
You can’t perform that action at this time.
0 commit comments