diff options
Diffstat (limited to 'media-libs/libcaptury/libcaptury-0.1.0.ebuild')
-rw-r--r-- | media-libs/libcaptury/libcaptury-0.1.0.ebuild | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/media-libs/libcaptury/libcaptury-0.1.0.ebuild b/media-libs/libcaptury/libcaptury-0.1.0.ebuild index 43c3946..79c0225 100644 --- a/media-libs/libcaptury/libcaptury-0.1.0.ebuild +++ b/media-libs/libcaptury/libcaptury-0.1.0.ebuild @@ -16,9 +16,9 @@ RDEPEND="media-libs/xvid x11-libs/libX11 virtual/opengl amd64? ( - >=app-emulation/emul-linux-x86-xlibs-7.0-r8 - >=app-emulation/emul-linux-x86-medialibs-1.2-r1 - )" + app-emulation/emul-linux-x86-xlibs + app-emulation/emul-linux-x86-medialibs + )" # enforce old emul pkgs. for testing only! DEPEND="${RDEPEND} dev-util/pkgconfig" @@ -28,15 +28,26 @@ RESTRICT="multilib-pkg-force" S="${WORKDIR}/captury-${PV}/${PN}" setup_env() { - use debug && append-flags -O0 -g3 - use debug || append-flags -DNDEBUG=1 + LD_LIBRARY_PATH= + LDFLAGS= + + # keep backwards compatibility as long as I *have* to. + if use amd64 && [[ ${ABI} = "x86" ]]; then + if has_version '<app-emulation/emul-linux-x86-xlibs-7.0-r8'; then + LDFLAGS="-L/emul/linux/x86/usr/lib" + LD_LIBRARY_PATH="/emul/linux/x86/usr/lib" + fi + fi -# export LD_LIBRARY_PATH=/usr/$(get_libdir) -# append-ldflags -L/usr/$(get_libdir) + export LDFLAGS + export LD_LIBRARY_PATH } src_compile() { if [[ -z ${OABI} ]] && has_multilib_profile; then + use debug && append-flags -O0 -g3 + use debug || append-flags -DNDEBUG=1 + einfo "Building multilib ${PN} for ABIs: $(get_install_abis)" OABI=${ABI} for ABI in $(get_install_abis); do @@ -44,17 +55,20 @@ src_compile() { src_compile done ABI=${OABI} + return fi + cd ${S} + if [[ ! -f configure ]]; then ./autogen.sh || die "autogen.sh failed" fi - mkdir abi-${ABI} - pushd abi-${ABI} - setup_env + mkdir abi-${ABI} + cd abi-${ABI} + ../configure \ --prefix="/usr" \ --host="$(get_abi_CHOST ${ABI})" \ @@ -62,8 +76,6 @@ src_compile() { || die "./configure for ABI ${ABI} failed" emake || die "make for ABI ${ABI} failed" - - popd } src_install() { |