diff options
author | Christian Parpart <trapni@gentoo.org> | 2007-02-16 16:02:34 +0000 |
---|---|---|
committer | Christian Parpart <trapni@gentoo.org> | 2007-02-16 16:02:34 +0000 |
commit | 9a29da12827fe37d4f9d088c857a950b8a5392d5 (patch) | |
tree | 8e4e57e456706c4f82b88a19bd99e98c926a81db /media-libs/libcaptury/libcaptury-0.1.0.ebuild | |
parent | dropping multilib useflag here, too. and adding missing depend, wtf (diff) | |
download | overlay-9a29da12827fe37d4f9d088c857a950b8a5392d5.tar.gz overlay-9a29da12827fe37d4f9d088c857a950b8a5392d5.tar.bz2 overlay-9a29da12827fe37d4f9d088c857a950b8a5392d5.zip |
added/restricted some deps and rearranged some env-vars
svn path=/overlay/; revision=26
Diffstat (limited to 'media-libs/libcaptury/libcaptury-0.1.0.ebuild')
-rw-r--r-- | media-libs/libcaptury/libcaptury-0.1.0.ebuild | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/media-libs/libcaptury/libcaptury-0.1.0.ebuild b/media-libs/libcaptury/libcaptury-0.1.0.ebuild index 30979ab..43c3946 100644 --- a/media-libs/libcaptury/libcaptury-0.1.0.ebuild +++ b/media-libs/libcaptury/libcaptury-0.1.0.ebuild @@ -15,7 +15,10 @@ IUSE="debug" RDEPEND="media-libs/xvid x11-libs/libX11 virtual/opengl - amd64? ( app-emulation/emul-linux-x86-xlibs )" + amd64? ( + >=app-emulation/emul-linux-x86-xlibs-7.0-r8 + >=app-emulation/emul-linux-x86-medialibs-1.2-r1 + )" DEPEND="${RDEPEND} dev-util/pkgconfig" @@ -24,6 +27,14 @@ RESTRICT="multilib-pkg-force" S="${WORKDIR}/captury-${PV}/${PN}" +setup_env() { + use debug && append-flags -O0 -g3 + use debug || append-flags -DNDEBUG=1 + +# export LD_LIBRARY_PATH=/usr/$(get_libdir) +# append-ldflags -L/usr/$(get_libdir) +} + src_compile() { if [[ -z ${OABI} ]] && has_multilib_profile; then einfo "Building multilib ${PN} for ABIs: $(get_install_abis)" @@ -35,9 +46,6 @@ src_compile() { ABI=${OABI} fi - use debug && append-flags -O0 -g3 - use debug || append-flags -DNDEBUG=1 - if [[ ! -f configure ]]; then ./autogen.sh || die "autogen.sh failed" fi @@ -45,10 +53,12 @@ src_compile() { mkdir abi-${ABI} pushd abi-${ABI} + setup_env + ../configure \ --prefix="/usr" \ --host="$(get_abi_CHOST ${ABI})" \ - --libdir="/usr/$(get_abi_LIBDIR ${ABI})" \ + --libdir="/usr/$(get_libdir)" \ || die "./configure for ABI ${ABI} failed" emake || die "make for ABI ${ABI} failed" |