Skip to content

Commit

Permalink
media-libs/taglib: introduce boost USE flag
Browse files Browse the repository at this point in the history
Boost may optionally be used instead of GCC built-ins.

Although only used at build time for header-only functions, an ABI-specific
version of boost is required as the build system calls target_link_libraries.

Package-Manager: portage-2.3.0
  • Loading branch information
Michael Palimaka committed Jul 25, 2016
1 parent e8ab154 commit 7ce40ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions media-libs/taglib/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
</maintainer>
<use>
<flag name="asf">Provide support for Microsoft's 'advanced systems format' media container.</flag>
<flag name="boost">Use <pkg>dev-libs/boost</pkg> instead of GCC built-ins</flag>
</use>
<upstream>
<remote-id type="github">taglib/taglib</remote-id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-2.1 MPL-1.1"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
SLOT="0"
IUSE="debug examples test"
IUSE="boost debug examples test"

RDEPEND=">=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]"
DEPEND="${RDEPEND}
>=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
boost? ( dev-libs/boost[${MULTILIB_USEDEP}] )
test? ( >=dev-util/cppunit-1.13.2[${MULTILIB_USEDEP}] )
"

Expand All @@ -42,6 +43,7 @@ src_prepare() {
multilib_src_configure() {
local mycmakeargs=(
$(multilib_is_native_abi && echo -DBUILD_EXAMPLES=$(usex examples))
$(cmake-utils_use_find_package boost Boost)
-DBUILD_SHARED_LIBS=ON
-DBUILD_TESTS=$(usex test)
)
Expand Down

0 comments on commit 7ce40ea

Please sign in to comment.