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 / +109 lines)
Lines 2-102 Link Here
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
}
60
61
src_configure() {
62
	if use xine ; then
63
		export WITH_XINE_SUPPORT=1
64
	fi
65
66
	if use mplayer ; then
67
		export WITH_MPLAYER_SUPPORT=1
68
	fi
69
70
	export WITH_VLC_SUPPORT=0
43
71
44
	# do not over-optimize (see bug #147250)
72
	eqmake3 all.pro
45
	replace-flags -O[s3] -O2
73
46
	filter-flags -finline-functions
74
	cd ${S}/qdvdauthor
47
75
	eqmake3 qdvdauthor.pro
48
	# set our C(XX)FLAGS
76
49
	for PRO in */*.pro */*/*.pro; do
77
	cd ${S}/qdvdauthor/qplayer
50
		echo "QMAKE_CFLAGS_RELEASE = ${CFLAGS}" >> "${PRO}"
78
	eqmake3 qplayer.pro
51
		echo "QMAKE_CXXFLAGS_RELEASE = ${CXXFLAGS}" >> "${PRO}"
79
52
	done
80
	if use plugins ; then
53
81
		cd ${S}/qdvdauthor/plugins/simpledvd
54
	# full-qualify qmake in configure and append -nocache (see bug #118697)
82
		eqmake3 simpledvd.pro
55
	sed -i -e "s:make;\?[[:space:]]*\$:make ${MAKEOPTS};:g" \
83
		cd ${S}/qdvdauthor/plugins/complexdvd
56
		-e "s:\(/qmake\):\1 -nocache QMAKE=\$QTDIR/bin/qmake:g" configure
84
		eqmake3 complexdvd.pro
57
85
		cd ${S}/qdvdauthor/plugins/menuslide
58
	# fixing defaults from /usr/local/bin to gentoo default /usr/bin
86
		eqmake3 menuslide.pro
59
	sed -i -e 's:/usr/local/bin:/usr/bin:g' doc/sound.txt \
87
		cd ${S}/qdvdauthor/plugins/testplugs
60
		qdvdauthor/dialog*.cpp qdvdauthor/qslideshow/dialog*.cpp
88
		eqmake3 testplugs.pro
89
	fi
90
91
	cd ${S}/qrender
92
	eqmake4 qrender.pro
61
}
93
}
62
94
63
src_compile() {
95
src_compile() {
64
	local myconf="--prefix=/usr --build-qplayer --build-qslideshow"
96
	cd ${S}/qdvdauthor
97
	emake || die "emake failed"
65
98
66
	# select backend
99
	cd ${S}/qdvdauthor/qplayer
67
	use xine && myconf="${myconf} --with-xine-support"
100
	emake || die "emake failed"
68
	use mplayer && myconf="${myconf} --with-mplayer-support"
69
101
70
	# if no backend selected, use XINE as default
102
	if use plugins ; then
71
	if ! use xine && ! use mplayer; then
103
		cd ${S}/qdvdauthor/plugins/simpledvd
72
		myconf="${myconf} --with-xine-support"
104
		emake || die "emake failed"
105
		eqmake3 simpledvd.pro
106
		cd ${S}/qdvdauthor/plugins/complexdvd
107
		emake || die "emake failed"
108
		eqmake3 complexdvd.pro
109
		cd ${S}/qdvdauthor/plugins/menuslide
110
		emake || die "emake failed"
111
		eqmake3 menuslide.pro
112
		cd ${S}/qdvdauthor/plugins/testplugs
113
		emake || die "emake failed"
114
		eqmake3 testplugs.pro
73
	fi
115
	fi
74
116
75
	./configure --qt-dir="${QTDIR}" ${myconf} || die "configure failed"
117
	cd ${S}/qrender
76
118
	emake || die "emake failed"
77
	# build plugins
78
	cd qdvdauthor/plugins && ./make.sh
79
}
119
}
80
120
81
src_install() {
121
src_install() {
82
	emake INSTALL_ROOT="${D}" install || die "install failed"
122
	cd ${S}/qdvdauthor
123
	emake INSTALL_ROOT="${D}" install || die "emake install failed"
83
124
84
	dobin bin/{qdvdauthor,qslideshow,qplayer}
125
	cd ${S}/qdvdauthor/qplayer
85
	dodoc CHANGELOG README TODO doc/{ISO*,look*,sound*,todo*,render*}.txt
126
	emake INSTALL_ROOT="${D}" install || die "emake install failed"
86
127
87
	insinto /usr/share/qdvdauthor
128
	if use plugins ; then
88
	doins silence.ac3 silence.mp2
129
		cd ${S}/qdvdauthor/plugins/simpledvd
130
		emake INSTALL_ROOT="${D}" install || die "emake install failed"
131
		cd ${S}/qdvdauthor/plugins/complexdvd
132
		emake INSTALL_ROOT="${D}" install || die "emake install failed"
133
	fi
134
135
	cd ${S}/qrender
136
	emake INSTALL_ROOT="${D}" install || die "emake install failed"
89
137
90
	insinto /usr/share/qdvdauthor/html/en
138
	cd ${S}
91
	doins doc/html/en/*.html
139
	if use buttons ; then
92
140
		insinto /usr/share/qdvdauthor/
93
	for i in simpledvd complexdvd; do
141
		doins -r buttons
94
		insinto /usr/share/qdvdauthor/plugins/${i}
142
	fi
95
		doins qdvdauthor/plugins/${i}/*.{jpg,png}
143
96
		cp -dp qdvdauthor/plugins/plugins/lib${i}.so* \
144
	if use transitions ; then
97
			${D}usr/share/qdvdauthor/plugins/
145
		insinto /usr/share/qdvdauthor/
98
	done
146
		doins -r slideshow
147
	fi
99
148
149
	dodoc CHANGELOG README doc/{ISO*,look*,sound*,todo*,render*}.txt
100
	domenu qdvdauthor.desktop
150
	domenu qdvdauthor.desktop
101
	doicon qdvdauthor.png
151
	doicon qdvdauthor.png
102
}
152
}

Return to bug 241804