#!/bin/env beesh PGRP=( core ) # SRCURL="http://www.zlib.net/zlib-1.2.5.tar.bz2" SRCURL="http://downloads.sourceforge.net/project/libpng/zlib/1.2.5/zlib-1.2.5.tar.gz" # PATCHES="" # EXCLUDE="" B=${S} mee_patch() { # patch for 1.2.5 sed -i 's/ifdef _LARGEFILE64_SOURCE/ifndef _LARGEFILE64_SOURCE/' zlib.h } mee_configure() { CFLAGS='-fPIC -O3' ${S}/configure --prefix=${PREFIX} --eprefix=${EXECPREFIX} --libdir=${LIBDIR} --includedir=${INCLUDEDIR} --sharedlibdir=${LIBDIR} } mee_build() { bee_build # make check } mee_install() { bee_install mkdir -pv ${D}/lib mv -v ${D}/usr/lib/libz.so.* ${D}/lib ln -sfv /lib/libz.so.1.2.5 ${D}/usr/lib/libz.so ln -sfv /lib/libz.so.1.2.5 ${D}/usr/lib/libz.so.1 }