Lines 4-10
Link Here
|
4 |
|
4 |
|
5 |
EAPI=2 |
5 |
EAPI=2 |
6 |
|
6 |
|
7 |
inherit eutils flag-o-matic qt4 qt3 |
7 |
inherit eutils flag-o-matic qt3 qt4 |
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/" |
Lines 16-21
Link Here
|
16 |
SLOT="0" |
16 |
SLOT="0" |
17 |
KEYWORDS="~amd64 ~ppc ~x86" |
17 |
KEYWORDS="~amd64 ~ppc ~x86" |
18 |
IUSE="mplayer +xine plugins cdr templates debug" |
18 |
IUSE="mplayer +xine plugins cdr templates debug" |
|
|
19 |
#IUSE="mplayer vlc +xine plugins cdr templates debug" |
19 |
|
20 |
|
20 |
DEPEND="media-video/dvdauthor |
21 |
DEPEND="media-video/dvdauthor |
21 |
media-gfx/jhead |
22 |
media-gfx/jhead |
Lines 28-34
Link Here
|
28 |
x11-libs/qt-gui:4 |
29 |
x11-libs/qt-gui:4 |
29 |
x11-libs/libX11 |
30 |
x11-libs/libX11 |
30 |
templates? ( app-text/convmv )" |
31 |
templates? ( app-text/convmv )" |
31 |
|
32 |
# vlc? ( media-video/vlc ) |
32 |
RDEPEND="${DEPEND} |
33 |
RDEPEND="${DEPEND} |
33 |
app-cdr/dvdisaster |
34 |
app-cdr/dvdisaster |
34 |
media-libs/netpbm |
35 |
media-libs/netpbm |
Lines 44-84
Link Here
|
44 |
TEMPLATES="${WORKDIR}"/${PN}-templates-1.10.0 |
45 |
TEMPLATES="${WORKDIR}"/${PN}-templates-1.10.0 |
45 |
|
46 |
|
46 |
pkg_setup() { |
47 |
pkg_setup() { |
|
|
48 |
# if ! use xine && ! use mplayer && ! use vlc ; then |
47 |
if ! use xine && ! use mplayer ; then |
49 |
if ! use xine && ! use mplayer ; then |
48 |
eerror "You have to enable at least one of the use flags xine or \ |
50 |
eerror "You have to enable at least one of the use flags xine or \ |
49 |
mplayer" |
51 |
mplayer" |
|
|
52 |
# eerror "You have to enable at least one of the use flags xine," |
53 |
# eerror "mplayer or vlc." |
50 |
die "xine and mplayer flag unset." |
54 |
die "xine and mplayer flag unset." |
51 |
fi |
55 |
fi |
52 |
} |
56 |
} |
53 |
|
57 |
|
54 |
src_prepare() { |
58 |
src_prepare() { |
55 |
sed -i -e 's:backround:background:g' qdvdauthor/qdvdauthor.pro \ |
59 |
if use templates ; then |
56 |
|| die "sed failed" |
60 |
mv "${WORKDIR}"/masks ${TEMPLATES} |
57 |
|
61 |
|
58 |
mv "${WORKDIR}"/masks ${TEMPLATES} |
62 |
# remove spaces in filenames |
|
|
63 |
local OIFS IFS i |
64 |
OIFS=${IFS}; IFS=$'\n' |
65 |
for i in $(find ${TEMPLATES} -depth -name '* *') ; do |
66 |
mv ${i} $(dirname ${i})/$(basename ${i// /-}) |
67 |
done |
68 |
IFS=${OIFS} |
59 |
|
69 |
|
60 |
# remove spaces in filenames |
70 |
# fix filename encoding |
61 |
local OIFS IFS i |
71 |
convmv --notest -r -f iso-8859-15 -t utf8 ${TEMPLATES}/buttons 1>>/dev/null 2>&1 |
62 |
OIFS=${IFS}; IFS=$'\n' |
72 |
fi |
63 |
for i in $(find ${TEMPLATES} -depth -name '* *') ; do |
|
|
64 |
mv ${i} $(dirname ${i})/$(basename ${i// /-}) |
65 |
done |
66 |
IFS=${OIFS} |
67 |
|
73 |
|
68 |
# fix filename encoding |
74 |
sed -i -e "/^CONFIG/s|debug||" qdvdauthor/qdvdauthor.pro || die |
69 |
convmv --notest -r -f iso-8859-15 -t utf8 ${TEMPLATES}/buttons 1>>/dev/null 2>&1 |
|
|
70 |
} |
75 |
} |
71 |
|
76 |
|
72 |
src_configure() { |
77 |
src_configure() { |
73 |
if use xine ; then |
78 |
if use xine ; then |
74 |
export WITH_XINE_SUPPORT=1 |
79 |
export WITH_XINE_SUPPORT=1 |
|
|
80 |
export XINE_CONFIG=`which xine-config 2>/dev/null` |
81 |
else |
82 |
export WITH_XINE_SUPPORT=0 |
75 |
fi |
83 |
fi |
76 |
|
84 |
|
77 |
if use mplayer ; then |
85 |
if use mplayer ; then |
78 |
export WITH_MPLAYER_SUPPORT=1 |
86 |
export WITH_MPLAYER_SUPPORT=1 |
|
|
87 |
else |
88 |
export WITH_MPLAYER_SUPPORT=0 |
79 |
fi |
89 |
fi |
80 |
|
90 |
|
81 |
export WITH_VLC_SUPPORT=0 |
91 |
# if use vlc ; then |
|
|
92 |
# export WITH_VLC_SUPPORT=1 |
93 |
# else |
94 |
export WITH_VLC_SUPPORT=0 |
95 |
# fi |
96 |
|
97 |
if use debug ; then |
98 |
export DEBUG_QDVDAUTHOR=debug |
99 |
else |
100 |
export DEBUG_QDVDAUTHOR=release |
101 |
fi |
82 |
|
102 |
|
83 |
eqmake3 all.pro |
103 |
eqmake3 all.pro |
84 |
|
104 |
|
Lines 100-159
Link Here
|
100 |
|
120 |
|
101 |
cd "${S}"/qrender |
121 |
cd "${S}"/qrender |
102 |
eqmake4 qrender.pro |
122 |
eqmake4 qrender.pro |
|
|
123 |
|
124 |
# cd "${S}" |
125 |
# eqmake4 all.pro |
103 |
} |
126 |
} |
104 |
|
127 |
|
105 |
src_compile() { |
128 |
src_compile() { |
106 |
cd "${S}"/qdvdauthor |
129 |
cd "${S}"/qdvdauthor |
107 |
emake || die "emake failed" |
130 |
emake || die |
108 |
|
131 |
|
109 |
cd "${S}"/qdvdauthor/qplayer |
132 |
cd "${S}"/qdvdauthor/qplayer |
110 |
emake || die "emake failed" |
133 |
emake || die |
111 |
|
134 |
|
112 |
if use plugins ; then |
135 |
if use plugins ; then |
113 |
for i in simpledvd complexdvd menuslide testplugs; do |
136 |
for i in simpledvd complexdvd menuslide testplugs; do |
114 |
cd "${S}"/qdvdauthor/plugins/${i} |
137 |
cd "${S}"/qdvdauthor/plugins/${i} |
115 |
emake || die "emake failed" |
138 |
emake || die |
116 |
eqmake3 ${i}.pro |
139 |
eqmake3 ${i}.pro |
117 |
done |
140 |
done |
118 |
fi |
141 |
fi |
119 |
|
142 |
|
120 |
cd "${S}"/addons/jhead/libjhead |
143 |
cd "${S}"/addons/jhead/libjhead |
121 |
emake || die "emake failed" |
144 |
emake || die |
122 |
eqmake3 interface.pro -o Makefile.interface |
145 |
eqmake3 interface.pro -o Makefile.interface |
123 |
|
146 |
|
124 |
cd "${S}"/qrender |
147 |
cd "${S}"/qrender |
125 |
emake || die "emake failed" |
148 |
emake || die |
126 |
} |
149 |
} |
127 |
|
150 |
|
128 |
src_install() { |
151 |
src_install() { |
129 |
cd "${S}"/qdvdauthor |
152 |
cd "${S}"/qdvdauthor |
130 |
emake INSTALL_ROOT="${D}" install || die "emake install failed" |
153 |
emake INSTALL_ROOT="${D}" install || die |
131 |
|
154 |
|
132 |
cd "${S}"/qdvdauthor/qplayer |
155 |
cd "${S}"/qdvdauthor/qplayer |
133 |
emake INSTALL_ROOT="${D}" install || die "emake install failed" |
156 |
emake INSTALL_ROOT="${D}" install || die |
134 |
|
157 |
|
135 |
if use plugins ; then |
158 |
if use plugins ; then |
136 |
for i in simpledvd complexdvd; do |
159 |
for i in simpledvd complexdvd; do |
137 |
cd "${S}"/qdvdauthor/plugins/${i} |
160 |
cd "${S}"/qdvdauthor/plugins/${i} |
138 |
emake INSTALL_ROOT="${D}" install || die "emake install failed" |
161 |
emake INSTALL_ROOT="${D}" install || die |
139 |
done |
162 |
done |
140 |
fi |
163 |
fi |
141 |
|
164 |
|
142 |
cd "${S}"/addons/jhead/libjhead |
165 |
cd "${S}"/addons/jhead/libjhead |
143 |
emake INSTALL_ROOT="${D}" -f Makefile.interface install || \ |
166 |
emake INSTALL_ROOT="${D}" -f Makefile.interface install || die |
144 |
die "emake install failed" |
|
|
145 |
|
167 |
|
146 |
cd "${S}"/qrender |
168 |
cd "${S}"/qrender |
147 |
emake INSTALL_ROOT="${D}" install || die "emake install failed" |
169 |
emake INSTALL_ROOT="${D}" install || die |
148 |
|
170 |
|
149 |
cd "${TEMPLATES}" |
|
|
150 |
if use templates ; then |
171 |
if use templates ; then |
|
|
172 |
cd "${TEMPLATES}" |
151 |
insinto /usr/share/qdvdauthor |
173 |
insinto /usr/share/qdvdauthor |
152 |
doins -r animated buttons masks slideshow static |
174 |
doins -r animated buttons masks slideshow static || die |
153 |
fi |
175 |
fi |
154 |
|
176 |
|
155 |
cd "${S}" |
177 |
cd "${S}" |
156 |
dodoc CHANGELOG README |
178 |
dodoc CHANGELOG README || die |
157 |
domenu qdvdauthor.desktop |
179 |
domenu qdvdauthor.desktop || die |
158 |
doicon qdvdauthor.png |
180 |
doicon qdvdauthor.png || die |
159 |
} |
181 |
} |