1 |
zzam 10/10/05 13:35:22 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: vdr-xineliboutput-1.0.5-r1.ebuild |
5 |
Log: |
6 |
Fix not respecting LDFLAGS, Bug #339743. |
7 |
|
8 |
(Portage version: 2.2_rc88/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.55 media-plugins/vdr-xineliboutput/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog?rev=1.55&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog?rev=1.55&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog?r1=1.54&r2=1.55 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog,v |
20 |
retrieving revision 1.54 |
21 |
retrieving revision 1.55 |
22 |
diff -u -r1.54 -r1.55 |
23 |
--- ChangeLog 22 Sep 2010 13:12:24 -0000 1.54 |
24 |
+++ ChangeLog 5 Oct 2010 13:35:22 -0000 1.55 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for media-plugins/vdr-xineliboutput |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog,v 1.54 2010/09/22 13:12:24 hd_brummy Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog,v 1.55 2010/10/05 13:35:22 zzam Exp $ |
30 |
+ |
31 |
+*vdr-xineliboutput-1.0.5-r1 (05 Oct 2010) |
32 |
+ |
33 |
+ 05 Oct 2010; Matthias Schwarzott <zzam@g.o> |
34 |
+ +vdr-xineliboutput-1.0.5-r1.ebuild, |
35 |
+ +files/vdr-xineliboutput-1.0.5-ldflags.patch: |
36 |
+ Fix not respecting LDFLAGS, Bug #339743. |
37 |
|
38 |
22 Sep 2010; Joerg Bornkessel <hd_brummy@g.o> |
39 |
vdr-xineliboutput-9999.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 media-plugins/vdr-xineliboutput/vdr-xineliboutput-1.0.5-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/vdr-xineliboutput/vdr-xineliboutput-1.0.5-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/vdr-xineliboutput/vdr-xineliboutput-1.0.5-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: vdr-xineliboutput-1.0.5-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2010 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-xineliboutput/vdr-xineliboutput-1.0.5-r1.ebuild,v 1.1 2010/10/05 13:35:22 zzam Exp $ |
53 |
|
54 |
GENTOO_VDR_CONDITIONAL=yes |
55 |
|
56 |
EAPI="2" |
57 |
|
58 |
inherit vdr-plugin eutils multilib versionator |
59 |
|
60 |
MY_PV=${PV#*_p} |
61 |
MY_P=${PN}-cvs-${MY_PV} |
62 |
|
63 |
DESCRIPTION="Video Disk Recorder Xinelib PlugIn" |
64 |
HOMEPAGE="http://sourceforge.net/projects/xineliboutput/" |
65 |
SRC_URI="mirror://sourceforge/${PN#vdr-}/${P}.tgz" |
66 |
|
67 |
SLOT="0" |
68 |
LICENSE="GPL-2" |
69 |
KEYWORDS="~amd64 ~x86" |
70 |
IUSE="+vdr +xine fbcon X libextractor xinerama" |
71 |
|
72 |
# both vdr plugin or vdr-sxfe can use X11 |
73 |
# still depends need some cleanup |
74 |
COMMON_DEPEND=" |
75 |
vdr? ( |
76 |
>=media-video/vdr-1.4.0 |
77 |
!>=media-video/vdr-1.7 |
78 |
) |
79 |
|
80 |
xine? ( >=media-libs/xine-lib-1.1.1 ) |
81 |
|
82 |
media-libs/jpeg |
83 |
libextractor? ( >=media-libs/libextractor-0.5.20 ) |
84 |
|
85 |
X? ( |
86 |
x11-libs/libX11 |
87 |
x11-libs/libXv |
88 |
x11-libs/libXext |
89 |
x11-libs/libXrender |
90 |
xinerama? ( x11-libs/libXinerama ) |
91 |
)" |
92 |
|
93 |
DEPEND="${COMMON_DEPEND} |
94 |
sys-kernel/linux-headers |
95 |
X? ( |
96 |
x11-proto/xextproto |
97 |
x11-proto/xf86vidmodeproto |
98 |
x11-proto/xproto |
99 |
x11-proto/renderproto |
100 |
xinerama? ( x11-proto/xineramaproto ) |
101 |
)" |
102 |
|
103 |
RDEPEND="${COMMON_DEPEND}" |
104 |
|
105 |
#S=${WORKDIR}/${MY_P#vdr-} |
106 |
|
107 |
VDR_CONFD_FILE=${FILESDIR}/confd-1.0.0_pre6 |
108 |
|
109 |
pkg_setup() { |
110 |
vdr-plugin_pkg_setup |
111 |
|
112 |
if ! use vdr && ! use xine; then |
113 |
eerror "Compiling ${PN} with USE='-vdr -xine' is not possible." |
114 |
eerror "You either need at least one of these flags." |
115 |
#die "${PN} cannot be used with vdr support and xine support disabled!" |
116 |
fi |
117 |
} |
118 |
|
119 |
use_onoff() { |
120 |
if use "$1"; then |
121 |
echo 1 |
122 |
else |
123 |
echo 0 |
124 |
fi |
125 |
} |
126 |
|
127 |
use_onoff_xine() { |
128 |
if use xine && use "$1"; then |
129 |
echo 1 |
130 |
else |
131 |
echo 0 |
132 |
fi |
133 |
} |
134 |
|
135 |
src_prepare() { |
136 |
vdr-plugin_src_prepare |
137 |
|
138 |
epatch "${FILESDIR}/${P}-ldflags.patch" |
139 |
if use xine; then |
140 |
XINE_PLUGIN_DIR=$(xine-config --plugindir) |
141 |
if [[ ${XINE_PLUGIN_DIR} = "" ]]; then |
142 |
eerror "Could not find xine plugin dir" |
143 |
die "Could not find xine plugin dir" |
144 |
fi |
145 |
fi |
146 |
|
147 |
# stop some automagic overwriting of the stuff we set |
148 |
sed -e '/XINELIBOUTPUT_VDRPLUGIN = 1/s/^/#/' \ |
149 |
-e '/HAVE_EXTRACTOR_H = 1/s/^/#/' \ |
150 |
-i Makefile |
151 |
|
152 |
cat >>Make.config <<-EOF |
153 |
XINELIBOUTPUT_XINEPLUGIN = $(use_onoff xine) |
154 |
XINELIBOUTPUT_VDRPLUGIN = $(use_onoff vdr) |
155 |
|
156 |
XINELIBOUTPUT_FB = $(use_onoff_xine fbcon) |
157 |
XINELIBOUTPUT_X11 = $(use_onoff_xine X) |
158 |
|
159 |
HAVE_XRENDER = 1 |
160 |
HAVE_XDPMS = 1 |
161 |
HAVE_EXTRACTOR_H = $(use_onoff libextractor) |
162 |
HAVE_XINERAMA = $(use_onoff xinerama) |
163 |
EOF |
164 |
|
165 |
# patching makefile to work with this |
166 |
# $ rm ${outdir}/file; cp file ${outdir}/file |
167 |
# work in the sandbox |
168 |
sed -i Makefile \ |
169 |
-e 's:XINEPLUGINDIR.*=.*:XINEPLUGINDIR = '"${WORKDIR}/lib:" \ |
170 |
-e 's:VDRINCDIR.*=.*:VDRINCDIR ?= /usr/include:' |
171 |
mkdir -p "${WORKDIR}/lib" |
172 |
} |
173 |
|
174 |
src_configure() { :; } |
175 |
|
176 |
src_install() { |
177 |
if use vdr; then |
178 |
# install vdr plugin |
179 |
vdr-plugin_src_install |
180 |
|
181 |
# version number that the sources contain |
182 |
local SO_VERSION="$(grep 'static const char \*VERSION *=' xineliboutput.c |\ |
183 |
cut -d'"' -f2)" |
184 |
echo SO_VERSION=$SO_VERSION |
185 |
insinto ${VDR_PLUGIN_DIR} |
186 |
if use fbcon; then |
187 |
doins libxineliboutput-fbfe.so.${SO_VERSION} || die "doins failed" |
188 |
fi |
189 |
if use X; then |
190 |
doins libxineliboutput-sxfe.so.${SO_VERSION} || die "doins failed" |
191 |
fi |
192 |
fi |
193 |
|
194 |
if use xine; then |
195 |
# install xine-plugins |
196 |
insinto "${XINE_PLUGIN_DIR}" |
197 |
doins xineplug_inp_*.so |
198 |
|
199 |
insinto "${XINE_PLUGIN_DIR}"/post |
200 |
doins xineplug_post_*.so |
201 |
|
202 |
# install xine-based frontends |
203 |
use fbcon && dobin vdr-fbfe |
204 |
use X && dobin vdr-sxfe |
205 |
|
206 |
fi |
207 |
} |
208 |
|
209 |
pkg_config() { |
210 |
einfo "emerge --config is not supported" |
211 |
} |