# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-video/qdvdauthor/qdvdauthor-1.2.0.ebuild,v 1.2 2008/07/27 21:54:04 carlo Exp $ EAPI=2 inherit eutils flag-o-matic qt4 qt3 DESCRIPTION="'Q' DVD-Author is a GUI frontend for dvdauthor written in Qt" HOMEPAGE="http://qdvdauthor.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz buttons? ( http://${PN}.sourceforge.net/data/buttons.tar.bz2 ) transitions? ( http://${PN}.sourceforge.net/data/alpha_trans.tar.bz2 )" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" # ppc currently disabled because of media-video/dv2sub IUSE="mplayer +xine plugins cdr buttons transitions debug" DEPEND="media-video/dvdauthor media-gfx/jhead media-video/ffmpeg media-video/mjpegtools xine? ( media-libs/xine-lib ) mplayer? ( media-video/mplayer ) !xine? ( !mplayer? ( media-libs/xine-lib ) ) x11-libs/qt:3 x11-libs/qt-gui:4 x11-libs/libX11" RDEPEND="${DEPEND} app-cdr/dvdisaster media-libs/netpbm media-video/dv2sub media-video/videotrans media-gfx/imagemagick media-sound/toolame media-sound/lame media-sound/sox media-sound/vorbis-tools cdr? ( || ( virtual/cdrtools app-cdr/dvd+rw-tools ) )" # TODO: # templates now provided as rpm # http://sourceforge.net/project/showfiles.php?group_id=98243&package_id=258878 pkg_setup() { if ! use xine && ! use mplayer ; then eerror "You have to enable at least one of the use flags xine or \ mplayer" die "xine and mplayer flag unset." fi } src_unpack() { unpack ${A} use buttons && mv buttons ${S} use transitions && mv slideshow ${S} } src_configure() { if use xine ; then export WITH_XINE_SUPPORT=1 fi if use mplayer ; then export WITH_MPLAYER_SUPPORT=1 fi export WITH_VLC_SUPPORT=0 eqmake3 all.pro cd ${S}/qdvdauthor eqmake3 qdvdauthor.pro cd ${S}/qdvdauthor/qplayer eqmake3 qplayer.pro if use plugins ; then cd ${S}/qdvdauthor/plugins/simpledvd eqmake3 simpledvd.pro cd ${S}/qdvdauthor/plugins/complexdvd eqmake3 complexdvd.pro cd ${S}/qdvdauthor/plugins/menuslide eqmake3 menuslide.pro cd ${S}/qdvdauthor/plugins/testplugs eqmake3 testplugs.pro fi cd ${S}/qrender eqmake4 qrender.pro } src_compile() { cd ${S}/qdvdauthor emake || die "emake failed" cd ${S}/qdvdauthor/qplayer emake || die "emake failed" if use plugins ; then cd ${S}/qdvdauthor/plugins/simpledvd emake || die "emake failed" eqmake3 simpledvd.pro cd ${S}/qdvdauthor/plugins/complexdvd emake || die "emake failed" eqmake3 complexdvd.pro cd ${S}/qdvdauthor/plugins/menuslide emake || die "emake failed" eqmake3 menuslide.pro cd ${S}/qdvdauthor/plugins/testplugs emake || die "emake failed" eqmake3 testplugs.pro fi cd ${S}/qrender emake || die "emake failed" } src_install() { cd ${S}/qdvdauthor emake INSTALL_ROOT="${D}" install || die "emake install failed" cd ${S}/qdvdauthor/qplayer emake INSTALL_ROOT="${D}" install || die "emake install failed" if use plugins ; then cd ${S}/qdvdauthor/plugins/simpledvd emake INSTALL_ROOT="${D}" install || die "emake install failed" cd ${S}/qdvdauthor/plugins/complexdvd emake INSTALL_ROOT="${D}" install || die "emake install failed" fi cd ${S}/qrender emake INSTALL_ROOT="${D}" install || die "emake install failed" cd ${S} if use buttons ; then insinto /usr/share/qdvdauthor/ doins -r buttons fi if use transitions ; then insinto /usr/share/qdvdauthor/ doins -r slideshow fi dodoc CHANGELOG README doc/{ISO*,look*,sound*,todo*,render*}.txt domenu qdvdauthor.desktop doicon qdvdauthor.png }