--- ortp-0.16.5.ebuild 2012-01-06 19:05:26.000000000 +0400 +++ ortp-0.20.0.ebuild 2012-05-15 15:07:42.000000000 +0400 @@ -4,9 +4,11 @@ EAPI="4" +inherit autotools + DESCRIPTION="Open Real-time Transport Protocol (RTP, RFC3550) stack" HOMEPAGE="http://www.linphone.org/" -SRC_URI="http://download.savannah.nongnu.org/releases-noredirect/linphone/${PN}/sources/${P}.tar.gz" +SRC_URI="mirror://nongnu/linphone/${PN}/sources/${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" @@ -16,9 +18,13 @@ RDEPEND="srtp? ( net-libs/libsrtp ) ssl? ( dev-libs/openssl )" DEPEND="${RDEPEND} - doc? ( app-doc/doxygen )" + doc? ( app-doc/doxygen ) + virtual/pkgconfig" src_prepare() { + # respect user's CFLAGS + sed -i -e "s:-O2::;s: -g::" configure.ac || die "patching configure.ac failed" + # to be sure doc is not builded nor installed w/ -doc and doxygen installed if ! use doc; then sed -i -e 's/test $DOXYGEN != //' configure \ @@ -47,6 +53,11 @@ sed -i -e 's/$(docdir)\/$(PACKAGE)-$(VERSION)/$(docdir)/' Makefile.in \ || die "patching Makefile.in failed" fi + + # make sure to use host libtool version + rm -f m4/libtool.m4 m4/lt*.m4 #282268 + mkdir m4 + eautoreconf } src_configure() { @@ -54,11 +65,13 @@ # memcheck is for HP-UX only # mode64bit adds +DA2.0W +DS2.0 CFLAGS wich are needed for HP-UX # strict adds -Werror, don't want it + # zrtp depends on >=net-libs/libzrtpcpp-2.0.0, not in portage yet econf \ --docdir="${EPREFIX}"/usr/share/doc/${PF} \ --disable-memcheck \ --disable-mode64bit \ --disable-strict \ + --disable-zrtp \ --enable-fast-install \ --enable-libtool-lock \ $(use_enable debug) \