summaryrefslogtreecommitdiff
blob: f7e5cae82866347a8eb14f6b03b15e11829b20cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/qdvdauthor/qdvdauthor-0.0.9.ebuild,v 1.6 2006/01/03 12:16:53 caleb Exp $

inherit qt3 eutils

DESCRIPTION="QDVDAuthor, the GUI frontend for dvdauthor and other related tools."
HOMEPAGE="http://qdvdauthor.sourceforge.net/"
SRC_URI="mirror://sourceforge/qdvdauthor/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
DEPEND=">=media-video/dvdauthor-0.6.10
	>=media-gfx/imagemagick-5.5.7.11
	>=media-video/mjpegtools-1.6.2
	>=media-libs/xine-lib-1_rc5
	>=media-video/dvd-slideshow-0.6.0
	media-sound/sox
	media-sound/lame
	media-libs/libogg
	$(qt_min_version 3.2)"

# xine-libs or mplayer libs or media-video/vlc - mplayer use flags?

# >=media-video/dvd-slideshow-0.6.0 -> optional

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${P}-nointeractive.patch
}

src_compile() {

	./configure --with-xine-support || die "config fault"
	#export IMAGE_LIB="imagemagicklib" # QTDIR="$QTDIR" QT_LIB="$QT_LIB"
	# fixing defaults from /usr/local/bin to gentoo default /usr/bin
	#export VIDEO_LIB="xine"
	#export QT_LIB="$QTDIR"
	sed -i "s|/usr/local/bin|/usr/bin|g" qdvdauthor/qdvdauthor.cpp qdvdauthor/dialogexecute.cpp doc/sound.txt
	cd qdvdauthor
	${QTDIR}/bin/qmake QMAKE=${QTDIR}/bin/qmake qdvdauthor.pro || die 'qmake failed'

	# fixing Makefile, so that we can use our CFLAGS
	sed -i -e "s|^CFLAGS.*-O2|CFLAGS = ${CFLAGS} |g" -e "s|^CXXFLAGS.*-O2|CXXFLAGS = ${CXXFLAGS} |g" Makefile
	emake || die "emake qdvdauthor failed"

	cd qslideshow
	${QTDIR}/bin/qmake QMAKE=${QTDIR}/bin/qmake qslideshow.pro
	# fixing Makefile, so that we can use our CFLAGS
	sed -i -e "s|^CFLAGS.*-O2|CFLAGS   = ${CFLAGS} |g" -e "s|^CXXFLAGS.*-O2|CXXFLAGS = ${CXXFLAGS} |g" Makefile
	emake || die "emake qslideshow failed"
}

src_install() {
	make -C qdvdauthor INSTALL_ROOT=${D} install || die "qdvdauthor install failed"
	make -C qdvdauthor/qslideshow INSTALL_ROOT=${D} install || die "qslideshow install failed"

	#had to prevent it from trying to install dvdproject link
	dobin bin/q*
	dodoc CHANGELOG COPYING INSTALL README TODO doc/*
	insinto "/usr/share/applications"
	doins qdvdauthor.desktop
	insinto "/usr/share/pixmaps"
	doins qdvdauthor.png
}