PATCH_LIST="" FILE_LIST= SRC_FETCH_METHOD="http" SRC_FETCH_PATH="http://zlib.net/fossils/zlib-${PKGVER}.tar.gz" MAKEDEPENDS= LIBDIR=/lib function do_config { # CFLAGS="$GCC_ARCH_CURRENT $GCC_CPU_CURRENT $GCC_OPT_FAST" \ ./configure --shared --prefix=/usr --libdir=$LIBDIR } function do_compile_only { $FLXPMAKE && $FLXPMAKE libz.a } function do_prepack { echo "--------------${FLXARCH}---------" mkdir -p $ROOTDIR/usr/include $ROOTDIR/$LIBDIR chmod -R 755 $ROOTDIR chown -R root:root $ROOTDIR $FLXMAKE install prefix=$ROOTDIR/usr libdir=$ROOTDIR/$LIBDIR rm -f $ROOTDIR/$LIBDIR/libz.so mkdir -p $ROOTDIR/usr/$LIBDIR install -m 0644 libz.a $ROOTDIR/usr/$LIBDIR ln -s ../../$LIBDIR/libz.so.${PKGVER} $ROOTDIR/usr/$LIBDIR/libz.so set_default_perm $ROOTDIR }