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 )" |
14 |
# masks? ( http://${PN}.sourceforge.net/data/masks.tar.bz2 ) currently gives 404 |
12 |
|
15 |
|
13 |
LICENSE="GPL-2" |
16 |
LICENSE="GPL-2" |
14 |
SLOT="0" |
17 |
SLOT="0" |
15 |
KEYWORDS="~amd64 ~x86" # ppc currently disabled because of media-video/dv2sub |
18 |
KEYWORDS="~amd64 ~x86" # ppc currently disabled because of media-video/dv2sub |
16 |
IUSE="xine mplayer" |
19 |
#IUSE="mplayer +xine plugins cdr buttons masks transitions debug" |
17 |
|
20 |
IUSE="mplayer +xine plugins cdr buttons transitions debug" |
18 |
DEPEND=">=media-video/dvdauthor-0.6.11 |
21 |
|
19 |
>=media-gfx/imagemagick-6.1.8.8 |
22 |
DEPEND="media-video/dvdauthor |
20 |
>=media-video/mjpegtools-1.6.2 |
23 |
media-gfx/jhead |
21 |
>=media-video/dvd-slideshow-0.7.2 |
24 |
media-video/ffmpeg |
22 |
xine? ( >=media-libs/xine-lib-1.1.0 ) |
25 |
media-video/mjpegtools |
|
|
26 |
xine? ( media-libs/xine-lib ) |
23 |
mplayer? ( media-video/mplayer ) |
27 |
mplayer? ( media-video/mplayer ) |
24 |
!xine? ( !mplayer? ( >=media-libs/xine-lib-1.1.0 ) ) |
28 |
!xine? ( !mplayer? ( media-libs/xine-lib ) ) |
25 |
x11-libs/qt:3" |
29 |
x11-libs/qt:3 |
|
|
30 |
x11-libs/qt-gui:4 |
31 |
x11-libs/libX11 |
32 |
app-text/convmv" |
26 |
|
33 |
|
27 |
RDEPEND="${DEPEND} |
34 |
RDEPEND="${DEPEND} |
28 |
media-libs/netpbm |
|
|
29 |
app-cdr/dvdisaster |
35 |
app-cdr/dvdisaster |
|
|
36 |
media-libs/netpbm |
30 |
media-video/dv2sub |
37 |
media-video/dv2sub |
31 |
media-video/videotrans |
38 |
media-video/videotrans |
|
|
39 |
media-gfx/imagemagick |
32 |
media-sound/toolame |
40 |
media-sound/toolame |
33 |
media-sound/lame |
41 |
media-sound/lame |
34 |
media-sound/sox" |
42 |
media-sound/sox |
|
|
43 |
media-sound/vorbis-tools |
44 |
cdr? ( || ( virtual/cdrtools app-cdr/dvd+rw-tools ) )" |
35 |
|
45 |
|
36 |
# TODO: |
46 |
# TODO: |
37 |
# media-video/dvd-slideshow -> optional |
47 |
# templates now provided as rpm |
38 |
# installing further tools -> needs evaluation |
48 |
# http://sourceforge.net/project/showfiles.php?group_id=98243&package_id=258878 |
|
|
49 |
|
50 |
pkg_setup() { |
51 |
if ! use xine && ! use mplayer ; then |
52 |
eerror "You have to enable at least one of the use flags xine or \ |
53 |
mplayer" |
54 |
die "xine and mplayer flag unset." |
55 |
fi |
56 |
} |
39 |
|
57 |
|
40 |
src_unpack() { |
58 |
src_unpack() { |
41 |
unpack ${A} |
59 |
unpack ${A} |
42 |
cd "${S}" |
60 |
use buttons && mv buttons "${S}" |
|
|
61 |
# use masks && mv masks "${S}" |
62 |
use transitions && mv slideshow "${S}" |
63 |
} |
43 |
|
64 |
|
44 |
# do not over-optimize (see bug #147250) |
65 |
src_prepare() { |
45 |
replace-flags -O[s3] -O2 |
66 |
sed -i -e 's:backround:background:g' qdvdauthor/qdvdauthor.pro \ |
46 |
filter-flags -finline-functions |
67 |
|| die "sed failed" |
47 |
|
68 |
|
48 |
# set our C(XX)FLAGS |
69 |
# remove spaces in filenames |
49 |
for PRO in */*.pro */*/*.pro; do |
70 |
OIFS=$IFS; IFS=$'\n' |
50 |
echo "QMAKE_CFLAGS_RELEASE = ${CFLAGS}" >> "${PRO}" |
71 |
for i in $(find buttons -depth -name '* *') |
51 |
echo "QMAKE_CXXFLAGS_RELEASE = ${CXXFLAGS}" >> "${PRO}" |
72 |
do mv ${i} $(dirname ${i})/$(basename ${i// /-}) |
52 |
done |
73 |
done |
|
|
74 |
IFS=$OIFS |
53 |
|
75 |
|
54 |
# full-qualify qmake in configure and append -nocache (see bug #118697) |
76 |
# fix filename encoding |
55 |
sed -i -e "s:make;\?[[:space:]]*\$:make ${MAKEOPTS};:g" \ |
77 |
convmv --notest -r -f iso-8859-15 -t utf8 buttons |
56 |
-e "s:\(/qmake\):\1 -nocache QMAKE=\$QTDIR/bin/qmake:g" configure |
78 |
} |
57 |
|
79 |
|
58 |
# fixing defaults from /usr/local/bin to gentoo default /usr/bin |
80 |
src_configure() { |
59 |
sed -i -e 's:/usr/local/bin:/usr/bin:g' doc/sound.txt \ |
81 |
if use xine ; then |
60 |
qdvdauthor/dialog*.cpp qdvdauthor/qslideshow/dialog*.cpp |
82 |
export WITH_XINE_SUPPORT=1 |
|
|
83 |
fi |
84 |
|
85 |
if use mplayer ; then |
86 |
export WITH_MPLAYER_SUPPORT=1 |
87 |
fi |
88 |
|
89 |
export WITH_VLC_SUPPORT=0 |
90 |
|
91 |
eqmake3 all.pro |
92 |
|
93 |
cd "${S}"/qdvdauthor |
94 |
eqmake3 qdvdauthor.pro |
95 |
|
96 |
cd "${S}"/qdvdauthor/qplayer |
97 |
eqmake3 qplayer.pro |
98 |
|
99 |
if use plugins ; then |
100 |
for i in simpledvd complexdvd menuslide testplugs; do |
101 |
cd "${S}"/qdvdauthor/plugins/"${i}" |
102 |
eqmake3 "${i}".pro |
103 |
done |
104 |
fi |
105 |
|
106 |
cd "${S}"/addons/jhead/libjhead |
107 |
eqmake3 interface.pro |
108 |
|
109 |
cd "${S}"/qrender |
110 |
eqmake4 qrender.pro |
61 |
} |
111 |
} |
62 |
|
112 |
|
63 |
src_compile() { |
113 |
src_compile() { |
64 |
local myconf="--prefix=/usr --build-qplayer --build-qslideshow" |
114 |
cd "${S}"/qdvdauthor |
|
|
115 |
emake || die "emake failed" |
65 |
|
116 |
|
66 |
# select backend |
117 |
cd "${S}"/qdvdauthor/qplayer |
67 |
use xine && myconf="${myconf} --with-xine-support" |
118 |
emake || die "emake failed" |
68 |
use mplayer && myconf="${myconf} --with-mplayer-support" |
|
|
69 |
|
119 |
|
70 |
# if no backend selected, use XINE as default |
120 |
if use plugins ; then |
71 |
if ! use xine && ! use mplayer; then |
121 |
for i in simpledvd complexdvd menuslide testplugs; do |
72 |
myconf="${myconf} --with-xine-support" |
122 |
cd "${S}"/qdvdauthor/plugins/"${i}" |
|
|
123 |
emake || die "emake failed" |
124 |
eqmake3 "${i}".pro |
125 |
done |
73 |
fi |
126 |
fi |
74 |
|
127 |
|
75 |
./configure --qt-dir="${QTDIR}" ${myconf} || die "configure failed" |
128 |
cd "${S}"/addons/jhead/libjhead |
|
|
129 |
emake || die "emake failed" |
130 |
eqmake3 interface.pro -o Makefile.interface |
76 |
|
131 |
|
77 |
# build plugins |
132 |
cd "${S}"/qrender |
78 |
cd qdvdauthor/plugins && ./make.sh |
133 |
emake || die "emake failed" |
79 |
} |
134 |
} |
80 |
|
135 |
|
81 |
src_install() { |
136 |
src_install() { |
82 |
emake INSTALL_ROOT="${D}" install || die "install failed" |
137 |
cd "${S}"/qdvdauthor |
|
|
138 |
emake INSTALL_ROOT="${D}" install || die "emake install failed" |
139 |
|
140 |
cd "${S}"/qdvdauthor/qplayer |
141 |
emake INSTALL_ROOT="${D}" install || die "emake install failed" |
83 |
|
142 |
|
84 |
dobin bin/{qdvdauthor,qslideshow,qplayer} |
143 |
if use plugins ; then |
85 |
dodoc CHANGELOG README TODO doc/{ISO*,look*,sound*,todo*,render*}.txt |
144 |
for i in simpledvd complexdvd; do |
|
|
145 |
cd "${S}"/qdvdauthor/plugins/"${i}" |
146 |
emake INSTALL_ROOT="${D}" install || die "emake install failed" |
147 |
done |
148 |
fi |
86 |
|
149 |
|
87 |
insinto /usr/share/qdvdauthor |
150 |
cd "${S}"/addons/jhead/libjhead |
88 |
doins silence.ac3 silence.mp2 |
151 |
emake INSTALL_ROOT="${D}" -f Makefile.interface install || \ |
|
|
152 |
die "emake install failed" |
89 |
|
153 |
|
90 |
insinto /usr/share/qdvdauthor/html/en |
154 |
cd "${S}"/qrender |
91 |
doins doc/html/en/*.html |
155 |
emake INSTALL_ROOT="${D}" install || die "emake install failed" |
92 |
|
156 |
|
93 |
for i in simpledvd complexdvd; do |
157 |
cd "${S}" |
94 |
insinto /usr/share/qdvdauthor/plugins/${i} |
158 |
if use buttons ; then |
95 |
doins qdvdauthor/plugins/${i}/*.{jpg,png} |
159 |
insinto /usr/share/qdvdauthor |
96 |
cp -dp qdvdauthor/plugins/plugins/lib${i}.so* \ |
160 |
doins -r buttons |
97 |
${D}usr/share/qdvdauthor/plugins/ |
161 |
fi |
98 |
done |
162 |
|
|
|
163 |
# if use masks ; then |
164 |
# insinto /usr/share/qdvdauthor |
165 |
# doins -r masks |
166 |
# fi |
167 |
|
168 |
if use transitions ; then |
169 |
insinto /usr/share/qdvdauthor |
170 |
doins -r slideshow |
171 |
fi |
99 |
|
172 |
|
|
|
173 |
dodoc CHANGELOG README doc/{ISO*,look*,sound*,todo*,render*}.txt |
100 |
domenu qdvdauthor.desktop |
174 |
domenu qdvdauthor.desktop |
101 |
doicon qdvdauthor.png |
175 |
doicon qdvdauthor.png |
102 |
} |
176 |
} |