PATCH_LIST= FILE_LIST= #SRC_FETCH_PATH="http://www.libgd.org/releases/gd-2.0.35.tar.bz2" SRC_FETCH_PATH="ftp://ftp.eenet.ee/pub/FreeBSD/distfiles/gd-2.0.35.tar.bz2" SRC_FETCH_METHOD="http" MAKEDEPENDS=( 'libpng-*::: *.h *.so *.so.*' 'zlib-*::: *.h *.so *.so.*' ) function do_config { CC="$CC" CXX="$CXX" LD="$LD" \ RANLIB="$RANLIB" AR="$AR" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" \ CFLAGS="-I$FLXROOTDIR/usr/include -D_GNU_SOURCE" LDFLAGS="-L$FLXROOTDIR/usr/lib/ -L$FLXROOTDIR/lib" LIBPNG12_CONFIG="/bin/true" LIBPNG_CONFIG="/bin/true" USRLIBDIR="$FLXROOTDIR/usr/lib" LIBDIR="$FLXROOTDIR/usr/lib" \ ./configure --host="$FLXTARG" --build="$FLXHOST" --without-xpm --without-jpeg --without-fontconfig --without-freetype --prefix=/usr --libdir=/usr/lib --without-x --without-libiconv-prefix --with-png="$FLXROOTDIR/usr/lib" } function do_compile_only { $FLXMAKE CFLAGS="-I$FLXROOTDIR/usr/include -D_GNU_SOURCE -DHAVE_LIBPNG=1" LDFLAGS="-L$FLXROOTDIR/lib -lpng" } function do_prepack { $FLXMAKE install DESTDIR=$ROOTDIR } function do_clean { ( do_delpack ) make clean return 0 }