Skip to content

Commit

Permalink
media-libs/aften: new revision with dynamically-linked executable.
Browse files Browse the repository at this point in the history
This new revision includes a tiny patch from Gentoo user Ihar
Hrachyshka. The upstream build system defaults to building a target
called "aften_static", and all we need to do is change that to "aften"
to get the dynamically-linked version.

Non-maintainer commit with permission from David Seifert (soap).

Gentoo-Bug: 258397

Package-Manager: portage-2.2.28
  • Loading branch information
orlitzky committed Sep 5, 2016
1 parent a64a497 commit a1115b1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ IUSE="cxx"
PATCHES=(
"${FILESDIR}/${P}-multilib.patch"
"${FILESDIR}/${P}-ppc.patch"
"${FILESDIR}/${P}-no-static-aften.patch"
)

src_configure() {
Expand Down
15 changes: 15 additions & 0 deletions media-libs/aften/files/aften-0.0.8-no-static-aften.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Patch from user Ihar Hrachyshka on Gentoo bug 258397. Replaces the
"aften_static" target with "aften" which is dynamically linked.

diff -urN aften-0.0.8.orig/CMakeLists.txt aften-0.0.8/CMakeLists.txt
--- a/CMakeLists.txt 2007-09-08 04:51:47.000000000 +0300
+++ b/CMakeLists.txt 2009-08-30 22:56:00.000000000 +0300
@@ -278,7 +278,7 @@
# When linking to static aften, dllimport mustn't be used
SET_TARGET_PROPERTIES(aften_exe PROPERTIES COMPILE_FLAGS -DAFTEN_BUILD_LIBRARY)
ENDIF(WIN32)
-TARGET_LINK_LIBRARIES(aften_exe aften_pcm aften_static)
+TARGET_LINK_LIBRARIES(aften_exe aften_pcm aften)

ADD_EXECUTABLE(wavinfo util/wavinfo.c)
TARGET_LINK_LIBRARIES(wavinfo aften_pcm)

0 comments on commit a1115b1

Please sign in to comment.