SRC_FETCH_PATH="http://freefr.dl.sourceforge.net/project/libpng/libpng12/1.2.46/libpng-1.2.46.tar.gz" SRC_FETCH_METHOD="http" MAKEDEPENDS=( "zlib-*:::*.h *.so *.so.*" ) LIBDIR=lib function do_config { rm -f Makefile ln -sf scripts/makefile.linux Makefile } function do_compile_only { $FLXMAKE prefix=/usr LIBPATH=/usr/$LIBDIR \ CFLAGS="-Wall $GCC_OPT_FASTEST $GCC_CPU_COMMON $GCC_ARCH_COMMON" \ CC="$CC" CXX="$CXX" LD="$LD" RANLIB="$RANLIB" AR="$AR" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" } function do_prepack { mkdir -p $ROOTDIR/usr/bin $ROOTDIR/usr/$LIBDIR $ROOTDIR/usr/include $ROOTDIR/usr/man $FLXMAKE install DESTDIR=$ROOTDIR prefix=/usr LIBPATH=/usr/$LIBDIR \ CFLAGS="-Wall $GCC_OPT_FASTEST $GCC_CPU_COMMON $GCC_ARCH_COMMON" \ CC="$CC" CXX="$CXX" LD="$LD" RANLIB="$RANLIB" AR="$AR" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" }