diff options
author | 2007-10-08 14:41:21 +0000 | |
---|---|---|
committer | 2007-10-08 14:41:21 +0000 | |
commit | 204f246c71d50c5c54910d9561de7aadb580c246 (patch) | |
tree | 9d0e47be6c13ab8d7ab2605cc9b3fd03eeee1dac /net-libs/opal/opal-2.2.11.ebuild | |
parent | drop ppc-macos (diff) | |
download | historical-204f246c71d50c5c54910d9561de7aadb580c246.tar.gz historical-204f246c71d50c5c54910d9561de7aadb580c246.tar.bz2 historical-204f246c71d50c5c54910d9561de7aadb580c246.zip |
version bump
Package-Manager: portage-2.1.3.12
Diffstat (limited to 'net-libs/opal/opal-2.2.11.ebuild')
-rw-r--r-- | net-libs/opal/opal-2.2.11.ebuild | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/net-libs/opal/opal-2.2.11.ebuild b/net-libs/opal/opal-2.2.11.ebuild new file mode 100644 index 000000000000..754b93b2bed2 --- /dev/null +++ b/net-libs/opal/opal-2.2.11.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/opal/opal-2.2.11.ebuild,v 1.1 2007/10/08 14:41:21 genstef Exp $ + +inherit eutils flag-o-matic multilib toolchain-funcs + +DESCRIPTION="OPAL library, used by Ekiga" +HOMEPAGE="http://www.ekiga.org" +SRC_URI="http://www.ekiga.org/admin/downloads/latest/sources/sources/${P}.tar.gz" + +LICENSE="MPL-1.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="novideo noaudio debug" + +RDEPEND="~dev-libs/pwlib-1.10.$((${PV##*.}-1)) + >=media-video/ffmpeg-0.4.7" + +src_unpack() { + unpack ${A} + + cd "${S}" + # Makefile is currently broken with NOTRACE=1, fix that + epatch "${FILESDIR}"/${PN}-2.1.1-notrace.diff +} + +src_compile() { + tc-export CC CXX + local makeopts + local myconf + + # remove -fstack-protector, may cause problems (bug #75259) + filter-flags -fstack-protector + + # NOTRACE avoid compilation problems, we disable PTRACING using NOTRACE=1 + # compile with PTRACING if the user wants to debug stuff + if ! use debug; then + makeopts="${makeopts} NOTRACE=1" + fi + + # doesn't work with osptoolkit-3.3.1 + # iax2 support is missing in the tarball, disable it too + myconf="--disable-transnexusosp --disable-iax --enable-localspeex" + + use novideo \ + && myconf="${myconf} --disable-video" + + use noaudio \ + && myconf="${myconf} --disable-audio" + + econf \ + PWLIBDIR=/usr/share/pwlib \ + OPALDIR="${S}" \ + ${myconf} || die "configure failed" + + emake ${makeopts} opt || die "make failed" +} + +src_install() { + local OPAL_ARCH ALT_ARCH OPAL_SUFFIX + local makeopts libdir libname + + # make NOTRACE=1 opt ==> linux_$ARCH_n + # make opt ==> linux_$ARCH_r + if ! use debug; then + OPAL_SUFFIX="n" + makeopts="NOTRACE=1" + else + OPAL_SUFFIX="r" + fi + + # use ptlib-config to get the right values here (for hppa, amd64 ...) + OPAL_ARCH="$(ptlib-config --ostype)_$(ptlib-config --machtype)_${OPAL_SUFFIX}" + + # set ALT_ARCH + if use debug; then + ALT_ARCH=${OPAL_ARCH/_r/_n} + else + ALT_ARCH=${OPAL_ARCH/_n/_r} + fi + + ### + # Install stuff + # + make PREFIX=/usr DESTDIR="${D}" \ + ${makeopts} install || die "install failed" + + libdir=$(get_libdir) + libname="libopal_${OPAL_ARCH}.so.${PV}" + + # compat symlinks + for pv in ${PV} ${PV%.[0-9]} ${PV%.[0-9]*.[0-9]}; do + dosym ${libname} /usr/${libdir}/libopal_${ALT_ARCH}.so.${pv} + done + dosym ${libname} /usr/${libdir}/libopal_${OPAL_ARCH}.so + dosym ${libname} /usr/${libdir}/libopal_${ALT_ARCH}.so + + ### + # Compatibility "hacks" + # + + # install version.h into $OPALDIR + insinto /usr/share/opal + doins version.h +} |