Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 241804 | Differences between
and this patch

Collapse All | Expand All

(-)qdvdauthor-1.2.0.ebuild (-59 / +114 lines)
Lines 1-102 Link Here
1
# Copyright 1999-2008 Gentoo Foundation
1
# Copyright 1999-2009 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/media-video/qdvdauthor/qdvdauthor-1.2.0.ebuild,v 1.2 2008/07/27 21:54:04 carlo Exp $
3
# $Header: /var/cvsroot/gentoo-x86/media-video/qdvdauthor/qdvdauthor-1.2.0.ebuild,v 1.2 2008/07/27 21:54:04 carlo Exp $
4
4
5
EAPI=1
5
EAPI=2
6
6
7
inherit eutils flag-o-matic qt3
7
inherit eutils flag-o-matic qt4 qt3
8
8
9
DESCRIPTION="'Q' DVD-Author is a GUI frontend for dvdauthor written in Qt"
9
DESCRIPTION="'Q' DVD-Author is a GUI frontend for dvdauthor written in Qt"
10
HOMEPAGE="http://qdvdauthor.sourceforge.net/"
10
HOMEPAGE="http://qdvdauthor.sourceforge.net/"
11
SRC_URI="mirror://sourceforge/qdvdauthor/${P}.tar.gz"
11
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
12
		buttons? ( http://${PN}.sourceforge.net/data/buttons.tar.bz2 )
13
		transitions? ( http://${PN}.sourceforge.net/data/alpha_trans.tar.bz2 )"
12
14
13
LICENSE="GPL-2"
15
LICENSE="GPL-2"
14
SLOT="0"
16
SLOT="0"
15
KEYWORDS="~amd64 ~x86"  # ppc currently disabled because of media-video/dv2sub
17
KEYWORDS="~amd64 ~x86"	# ppc currently disabled because of media-video/dv2sub
16
IUSE="xine mplayer"
18
IUSE="mplayer +xine plugins cdr buttons transitions debug"
17
19
18
DEPEND=">=media-video/dvdauthor-0.6.11
20
DEPEND="media-video/dvdauthor
19
	>=media-gfx/imagemagick-6.1.8.8
21
	media-gfx/jhead
20
	>=media-video/mjpegtools-1.6.2
22
	media-video/ffmpeg
21
	>=media-video/dvd-slideshow-0.7.2
23
	media-video/mjpegtools
22
	xine? ( >=media-libs/xine-lib-1.1.0 )
24
	xine? ( media-libs/xine-lib )
23
	mplayer? ( media-video/mplayer )
25
	mplayer? ( media-video/mplayer )
24
	!xine? ( !mplayer? ( >=media-libs/xine-lib-1.1.0 ) )
26
	!xine? ( !mplayer? ( media-libs/xine-lib ) )
25
	x11-libs/qt:3"
27
	x11-libs/qt:3
28
	x11-libs/qt-gui:4
29
	x11-libs/libX11"
26
30
27
RDEPEND="${DEPEND}
31
RDEPEND="${DEPEND}
28
	media-libs/netpbm
29
	app-cdr/dvdisaster
32
	app-cdr/dvdisaster
33
	media-libs/netpbm
30
	media-video/dv2sub
34
	media-video/dv2sub
31
	media-video/videotrans
35
	media-video/videotrans
36
	media-gfx/imagemagick
32
	media-sound/toolame
37
	media-sound/toolame
33
	media-sound/lame
38
	media-sound/lame
34
	media-sound/sox"
39
	media-sound/sox
40
	media-sound/vorbis-tools
41
	cdr? ( || ( virtual/cdrtools app-cdr/dvd+rw-tools ) )"
35
42
36
# TODO:
43
# TODO:
37
# media-video/dvd-slideshow -> optional
44
# templates	now provided as rpm
38
# installing further tools -> needs evaluation
45
# http://sourceforge.net/project/showfiles.php?group_id=98243&package_id=258878
46
47
pkg_setup() {
48
	if ! use xine && ! use mplayer ; then
49
		eerror "You have to enable at least one of the use flags xine or \
50
			mplayer"
51
		die "xine and mplayer flag unset."
52
	fi
53
}
39
54
40
src_unpack() {
55
src_unpack() {
41
	unpack ${A}
56
	unpack ${A}
42
	cd "${S}"
57
	use buttons && mv buttons "${S}"
58
	use transitions && mv slideshow "${S}"
59
}
43
60
44
	# do not over-optimize (see bug #147250)
61
src_prepare() {
45
	replace-flags -O[s3] -O2
62
	sed -i -e 's:backround:background:g' qdvdauthor/qdvdauthor.pro \
46
	filter-flags -finline-functions
63
		|| die "sed failed"
47
64
}
48
	# set our C(XX)FLAGS
65
49
	for PRO in */*.pro */*/*.pro; do
66
src_configure() {
50
		echo "QMAKE_CFLAGS_RELEASE = ${CFLAGS}" >> "${PRO}"
67
	if use xine ; then
51
		echo "QMAKE_CXXFLAGS_RELEASE = ${CXXFLAGS}" >> "${PRO}"
68
		export WITH_XINE_SUPPORT=1
52
	done
69
	fi
53
70
54
	# full-qualify qmake in configure and append -nocache (see bug #118697)
71
	if use mplayer ; then
55
	sed -i -e "s:make;\?[[:space:]]*\$:make ${MAKEOPTS};:g" \
72
		export WITH_MPLAYER_SUPPORT=1
56
		-e "s:\(/qmake\):\1 -nocache QMAKE=\$QTDIR/bin/qmake:g" configure
73
	fi
57
74
58
	# fixing defaults from /usr/local/bin to gentoo default /usr/bin
75
	export WITH_VLC_SUPPORT=0
59
	sed -i -e 's:/usr/local/bin:/usr/bin:g' doc/sound.txt \
76
60
		qdvdauthor/dialog*.cpp qdvdauthor/qslideshow/dialog*.cpp
77
	eqmake3 all.pro
78
79
	cd "${S}"/qdvdauthor
80
	eqmake3 qdvdauthor.pro
81
82
	cd "${S}"/qdvdauthor/qplayer
83
	eqmake3 qplayer.pro
84
85
	if use plugins ; then
86
		for i in simpledvd complexdvd menuslide testplugs; do
87
			cd "${S}"/qdvdauthor/plugins/"${i}"
88
			eqmake3 "${i}".pro
89
		done
90
	fi
91
92
	cd "${S}"/addons/jhead/libjhead
93
	eqmake3 interface.pro
94
95
	cd "${S}"/qrender
96
	eqmake4 qrender.pro
61
}
97
}
62
98
63
src_compile() {
99
src_compile() {
64
	local myconf="--prefix=/usr --build-qplayer --build-qslideshow"
100
	cd "${S}"/qdvdauthor
101
	emake || die "emake failed"
65
102
66
	# select backend
103
	cd "${S}"/qdvdauthor/qplayer
67
	use xine && myconf="${myconf} --with-xine-support"
104
	emake || die "emake failed"
68
	use mplayer && myconf="${myconf} --with-mplayer-support"
69
105
70
	# if no backend selected, use XINE as default
106
	if use plugins ; then
71
	if ! use xine && ! use mplayer; then
107
		for i in simpledvd complexdvd menuslide testplugs; do
72
		myconf="${myconf} --with-xine-support"
108
			cd "${S}"/qdvdauthor/plugins/"${i}"
109
			emake || die "emake failed"
110
			eqmake3 "${i}".pro
111
		done
73
	fi
112
	fi
74
113
75
	./configure --qt-dir="${QTDIR}" ${myconf} || die "configure failed"
114
	cd "${S}"/addons/jhead/libjhead
115
	emake || die "emake failed"
116
	eqmake3 interface.pro -o Makefile.interface
76
117
77
	# build plugins
118
	cd "${S}"/qrender
78
	cd qdvdauthor/plugins && ./make.sh
119
	emake || die "emake failed"
79
}
120
}
80
121
81
src_install() {
122
src_install() {
82
	emake INSTALL_ROOT="${D}" install || die "install failed"
123
	cd "${S}"/qdvdauthor
124
	emake INSTALL_ROOT="${D}" install || die "emake install failed"
83
125
84
	dobin bin/{qdvdauthor,qslideshow,qplayer}
126
	cd "${S}"/qdvdauthor/qplayer
85
	dodoc CHANGELOG README TODO doc/{ISO*,look*,sound*,todo*,render*}.txt
127
	emake INSTALL_ROOT="${D}" install || die "emake install failed"
86
128
87
	insinto /usr/share/qdvdauthor
129
	if use plugins ; then
88
	doins silence.ac3 silence.mp2
130
		for i in simpledvd complexdvd; do
131
			cd "${S}"/qdvdauthor/plugins/"${i}"
132
			emake INSTALL_ROOT="${D}" install || die "emake install failed"
133
		done
134
	fi
89
135
90
	insinto /usr/share/qdvdauthor/html/en
136
	cd "${S}"/addons/jhead/libjhead
91
	doins doc/html/en/*.html
137
	emake INSTALL_ROOT="${D}" -f Makefile.interface install || \
92
138
		die "emake install failed"
93
	for i in simpledvd complexdvd; do
139
94
		insinto /usr/share/qdvdauthor/plugins/${i}
140
	cd "${S}"/qrender
95
		doins qdvdauthor/plugins/${i}/*.{jpg,png}
141
	emake INSTALL_ROOT="${D}" install || die "emake install failed"
96
		cp -dp qdvdauthor/plugins/plugins/lib${i}.so* \
142
97
			${D}usr/share/qdvdauthor/plugins/
143
	cd "${S}"
98
	done
144
	if use buttons ; then
145
		insinto /usr/share/qdvdauthor
146
		doins -r buttons
147
	fi
148
149
	if use transitions ; then
150
		insinto /usr/share/qdvdauthor
151
		doins -r slideshow
152
	fi
99
153
154
	dodoc CHANGELOG README doc/{ISO*,look*,sound*,todo*,render*}.txt
100
	domenu qdvdauthor.desktop
155
	domenu qdvdauthor.desktop
101
	doicon qdvdauthor.png
156
	doicon qdvdauthor.png
102
}
157
}

Return to bug 241804