# $Id$ PNAME="libiodbc" PVER="3.52.12" PBUILD="r1" PCAT="dev-db" DESCRIPTION="ODBC Interface for Linux." HOMEPAGE="http://www.iodbc.org/" DEPEND=">= sys-libs/ncurses-5.9 >= sys-libs/readline-7.0" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild rpath SRC_URI=( sourceforge://iodbc/${SRCFILE} http://www.iodbc.org/downloads/iODBC/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/Downloads | sed 's:/download::' | highesttarball gz" src_compile() { cd ${SRCDIR} # using gentoo dir location, which fits our distribution well # --disable-libodbc to minimize conflicts with unixODBC mconfigure --with-layout=gentoo --disable-gui --disable-libodbc --enable-odbc3 || die mmake -j1 || die } src_install() { mbuild_src_install || die # delete insecure rpath mdeleterpath || die }