Skip to content

Commit

Permalink
media-sound/amarok: Fix cmake warnings
Browse files Browse the repository at this point in the history
Cosmetics, basically.

Package-Manager: Portage-2.3.13, Repoman-2.3.4
  • Loading branch information
a17r committed Dec 4, 2017
1 parent 14e3890 commit d84b8b4
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions media-sound/amarok/amarok-2.8.90-r5.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ src_prepare() {

# requires qtwebkit
sed -i -e "s/wikipedia,//" data/amarok_homerc || die

sed -i -e "/macro_log_feature.*QT_QTOPENGL_FOUND/d" \
CMakeLists.txt \
|| die "failed to remove QT_QTOPENGL detection"

sed -i -e "/if/ s/QT_QTOPENGL_FOUND/FALSE/" \
src/context/applets/CMakeLists.txt \
|| die "failed to sed out QT_QTOPENGL_FOUND"
}

src_configure() {
Expand All @@ -84,20 +92,20 @@ src_configure() {

local mycmakeargs=(
-DWITH_PLAYER=ON
-DWITH_Libgcrypt=OFF
-DWITH_SPECTRUM_ANALYZER=OFF
-DWITH_NepomukCore=OFF
-DWITH_Soprano=OFF
-DWITH_MYSQL_EMBEDDED=$(usex embedded)
-DWITH_IPOD=$(usex ipod)
-DWITH_GDKPixBuf=$(usex ipod)
-DWITH_LibLastFm=$(usex lastfm)
-DWITH_MP3Tunes=$(usex mp3tunes)
-DWITH_Mtp=$(usex mtp)
-DWITH_LibOFA=$(usex ofa)
-DWITH_UTILITIES=$(usex utils)
)

use ipod && mycmakeargs+=( DWITH_GDKPixBuf=ON )
use mp3tunes && mycmakeargs+=( -DWITH_Libgcrypt=OFF )

# bug 581554: add libmysqld location for rpath patch
use embedded && mycmakeargs+=( -DMYSQLD_DIR="${EPREFIX}/usr/$(get_libdir)/mysql" )

Expand Down

0 comments on commit d84b8b4

Please sign in to comment.