--- /usr/portage/media-libs/hamlib/hamlib-1.2.8.ebuild 2008-12-04 18:58:18.000000000 +0100 +++ hamlib-1.2.8-r1.ebuild 2008-12-27 17:26:23.000000000 +0100 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/hamlib/hamlib-1.2.8.ebuild,v 1.1 2008/12/04 17:58:18 darkside Exp $ -inherit eutils multilib libtool +inherit autotools eutils libtool multilib DESCRIPTION="Ham radio backend rig control libraries" HOMEPAGE="http://hamlib.sourceforge.net/" @@ -16,12 +16,13 @@ RESTRICT="test" RDEPEND="virtual/libc + >=sys-devel/libtool-1.5 + dev-libs/libusb python? ( dev-lang/python dev-lang/tcl ) tcl? ( dev-lang/tcl )" DEPEND=" ${RDEPEND} - >=sys-devel/libtool-1.5 >=dev-util/pkgconfig-0.15 >=dev-lang/swig-1.3.14 dev-libs/libxml2 @@ -31,17 +32,19 @@ unpack ${A} cd "${S}" - epatch "${FILESDIR}"/${PN}-pkgconfig-fix.diff - - # Needed for FreeBSD - Please do not remove - elibtoolize + epatch "${FILESDIR}"/${PN}-pkgconfig-fix.diff \ + "${FILESDIR}"/${PN}-ltdl.diff + + # remove bundled libltdl copy + rm -rf libltdl + + eautoreconf } src_compile() { econf \ --libdir=/usr/$(get_libdir)/hamlib \ --disable-static \ - --with-microtune \ --with-rpc-backends \ --without-perl-binding \ $(use_with python python-binding) \