summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/libcaptury/libcaptury-0.1.0.ebuild')
-rw-r--r--media-libs/libcaptury/libcaptury-0.1.0.ebuild20
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"