EAPI=6
-inherit flag-o-matic multilib-minimal
+inherit cmake-multilib flag-o-matic xdg-utils
if [[ ${PV} = 9999 ]]; then
inherit git-r3
fi
SLOT="0"
-IUSE="+asm debug jack mp3 pulseaudio theora vorbis vpx x264"
+IUSE="+asm jack mp3 pulseaudio theora vorbis vpx x264"
RDEPEND="
dev-qt/qtcore:5
}
multilib_src_configure() {
- local myconf=(
- $(multilib_native_use_enable debug assert)
- $(multilib_native_use_with pulseaudio)
- $(multilib_native_use_with jack)
- $(use_enable asm x86-asm)
+ local mycmakeargs=(
+ -DENABLE_32BIT_GLINJECT="$(usex abi_x86_32)"
+ -DENABLE_X86_ASM="$(usex asm)"
+ -DWITH_PULSEAUDIO="$(multilib_native_usex pulseaudio)"
+ -DWITH_JACK="$(multilib_native_usex jack)"
+ -DWITH_GLINJECT="true"
)
# libav doesn't have AVFrame::channels
# https://github.com/MaartenBaert/ssr/issues/195#issuecomment-45646159
- if has_version media-video/libav; then
- myconf+=( --disable-ffmpeg-versions )
+ if has_version media-video/libav ; then
+ mycmakeargs+=( -DENABLE_FFMPEG_VERSIONS="false" )
fi
if multilib_is_native_abi ; then
- myconf+=( --with-qt5 )
+ mymakeargs+=( -DWITH_QT5="true" )
else
- myconf+=( --disable-ssrprogram )
+ mycmakeargs+=( -DWITH_SIMPLESCREENRECORDER="false" )
fi
- ECONF_SOURCE="${S}" econf "${myconf[@]}"
+ cmake-utils_src_configure
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
}