Skip to content

Commit

Permalink
app-emulation/faudio: fix prefix installation for 19.06
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.70, Repoman-2.3.16
Signed-off-by: Guilherme Amadio <[email protected]>
  • Loading branch information
amadio committed Aug 7, 2019
1 parent 4656338 commit 2f4920c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions app-emulation/faudio/faudio-19.06.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ multilib_src_configure() {
"-DXNASONG=$(usex xnasong ON OFF)"
)
if use ffmpeg; then
mycmakeargs+=( "-DFFmpeg_LIBRARY_DIRS=${PREFIX%/}/usr/$(get_libdir)" )
mycmakeargs+=( "-DFFmpeg_LIBRARY_DIRS=${EPREFIX%/}/usr/$(get_libdir)" )
fi
cmake-utils_src_configure
}
Expand All @@ -70,7 +70,10 @@ multilib_src_install() {
# FIXME: do we want to install the FAudio tools?
cmake-utils_src_install

sed -e "s/%LIB%/$(get_libdir)/g" "${FILESDIR}/faudio.pc" \
sed -e \
"s@%LIB%@$(get_libdir)@g" \
"s@%PREFIX%@${EPREFIX}/usr@g" \
"${FILESDIR}/faudio.pc" \
> "${T}/faudio.pc" \
|| die "sed failed"
insinto "/usr/$(get_libdir)/pkgconfig"
Expand Down
2 changes: 1 addition & 1 deletion app-emulation/faudio/files/faudio.pc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
prefix=/usr
prefix=%PREFIX%
exec_prefix=${prefix}
libdir=${prefix}/%LIB%
includedir=${prefix}/include/FAudio
Expand Down

0 comments on commit 2f4920c

Please sign in to comment.