# $Id$ PNAME="pilot-link" PVER="0.12.5" PBUILD="r1" PCATEGORIE="net-misc" DESCRIPTION="A suite of tools for moving data between a Palm device and a desktop." HOMEPAGE="http://www.pilot-link.org/" DEPEND=">= virtual/glibc >= sys-libs/ncurses-5.9 >= sys-libs/readline-6.2 >= dev-libs/popt-1.16 >= dev-libs/libusb-compat-0.1.3 >= media-libs/libpng-1.5 >= net-wlan/bluez-4.95" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild SRC_URI=( http://downloads.pilot-link.org/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-1.12.4-readline.patch mirror://${PNAME}/${PNAME}-1.12.4-threads.patch mirror://${PNAME}/${PNAME}-1.12.4-png.patch mirror://${PNAME}/${PNAME}-1.12.4-werror.patch mirror://${PNAME}/${PNAME}-1.12.4-glibc-open.patch mirror://${PNAME}/${PNAME}-1.12.4-libusb-compat-usb_open.patch ) UP2DATE="updatecmd -listonly ${HOMEPAGE} | grep ${PNAME}-[0-9] | firsttarball" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fixing some broken configure switches and automagic deps mpatch ${PNAME}-1.12.4-readline.patch || die mpatch ${PNAME}-1.12.4-threads.patch || die mpatch ${PNAME}-1.12.4-png.patch || die # upstream's check for Werror was wrong mpatch ${PNAME}-1.12.4-werror.patch || die # fix glibc open without mode error mpatch ${PNAME}-1.12.4-glibc-open.patch || die # libusb-compat requires you to check the return value of usb_open! mpatch ${PNAME}-1.12.4-libusb-compat-usb_open.patch || die autoreconf --install --force --verbose || die } src_configure() { cd ${SRCDIR} mconfigure \ --includedir=/usr/include/libpisock \ --disable-compile-werror \ --disable-debug \ --enable-conduits \ --enable-threads \ --enable-libusb \ --with-libiconv \ --with-libpng=$(libpng-config --prefix) \ --with-bluez \ --with-readline \ --without-perl \ --without-included-popt \ --without-java \ --without-python \ --without-tcl \ || die # not parallel make safe mmake -j1 || die }