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

Collapse All | Expand All

(-)/media/system/repositories/portage/media-plugins/vdr-xineliboutput/vdr-xineliboutput-1.0.4_p20091118.ebuild (-22 / +15 lines)
Lines 24-35 Link Here
24
# still depends need some cleanup
24
# still depends need some cleanup
25
COMMON_DEPEND="
25
COMMON_DEPEND="
26
	vdr? ( >=media-video/vdr-1.4.0 )
26
	vdr? ( >=media-video/vdr-1.4.0 )
27
28
	xine? ( >=media-libs/xine-lib-1.1.1 )
27
	xine? ( >=media-libs/xine-lib-1.1.1 )
29
30
	media-libs/jpeg
28
	media-libs/jpeg
31
	libextractor? ( >=media-libs/libextractor-0.5.20 )
29
	libextractor? ( >=media-libs/libextractor-0.5.20 )
32
33
	X? (
30
	X? (
34
		x11-libs/libX11
31
		x11-libs/libX11
35
		x11-libs/libXv
32
		x11-libs/libXv
Lines 37-43 Link Here
37
		x11-libs/libXrender
34
		x11-libs/libXrender
38
		xinerama? ( x11-libs/libXinerama )
35
		xinerama? ( x11-libs/libXinerama )
39
	)"
36
	)"
40
41
DEPEND="${COMMON_DEPEND}
37
DEPEND="${COMMON_DEPEND}
42
	sys-kernel/linux-headers
38
	sys-kernel/linux-headers
43
	X? (
39
	X? (
Lines 47-59 Link Here
47
		x11-proto/renderproto
43
		x11-proto/renderproto
48
		xinerama? ( x11-proto/xineramaproto )
44
		xinerama? ( x11-proto/xineramaproto )
49
	)"
45
	)"
50
51
RDEPEND="${COMMON_DEPEND}"
46
RDEPEND="${COMMON_DEPEND}"
52
47
53
S=${WORKDIR}/${MY_P#vdr-}
48
S=${WORKDIR}/${MY_P#vdr-}
54
49
55
VDR_CONFD_FILE=${FILESDIR}/confd-1.0.0_pre6
56
57
pkg_setup() {
50
pkg_setup() {
58
	vdr-plugin_pkg_setup
51
	vdr-plugin_pkg_setup
59
52
Lines 83-90 Link Here
83
src_prepare() {
76
src_prepare() {
84
	vdr-plugin_src_prepare
77
	vdr-plugin_src_prepare
85
78
86
#	epatch "${FILESDIR}/${PN}-1.0.4_p20090810-compile-fix.diff"
87
88
	if use xine; then
79
	if use xine; then
89
		XINE_PLUGIN_DIR=$(xine-config --plugindir)
80
		XINE_PLUGIN_DIR=$(xine-config --plugindir)
90
		if [[ ${XINE_PLUGIN_DIR} = "" ]]; then
81
		if [[ ${XINE_PLUGIN_DIR} = "" ]]; then
Lines 96-102 Link Here
96
	# stop some automagic overwriting of the stuff we set
87
	# stop some automagic overwriting of the stuff we set
97
	sed -e '/XINELIBOUTPUT_VDRPLUGIN = 1/s/^/#/' \
88
	sed -e '/XINELIBOUTPUT_VDRPLUGIN = 1/s/^/#/' \
98
		-e '/HAVE_EXTRACTOR_H = 1/s/^/#/' \
89
		-e '/HAVE_EXTRACTOR_H = 1/s/^/#/' \
99
		-i Makefile
90
		-i Makefile || die "sed failed"
100
91
101
	cat >>Make.config <<-EOF
92
	cat >>Make.config <<-EOF
102
		XINELIBOUTPUT_XINEPLUGIN = $(use_onoff xine)
93
		XINELIBOUTPUT_XINEPLUGIN = $(use_onoff xine)
Lines 116-123 Link Here
116
	# work in the sandbox
107
	# work in the sandbox
117
	sed -i Makefile \
108
	sed -i Makefile \
118
		-e 's:XINEPLUGINDIR.*=.*:XINEPLUGINDIR = '"${WORKDIR}/lib:" \
109
		-e 's:XINEPLUGINDIR.*=.*:XINEPLUGINDIR = '"${WORKDIR}/lib:" \
119
		-e 's:VDRINCDIR.*=.*:VDRINCDIR ?= /usr/include:'
110
		-e 's:VDRINCDIR.*=.*:VDRINCDIR ?= /usr/include:' \
120
	mkdir -p "${WORKDIR}/lib"
111
		|| die "sed failed"
112
	mkdir -p "${WORKDIR}/lib" || die "mkdir failed"
121
}
113
}
122
114
123
src_configure() { :; }
115
src_configure() { :; }
Lines 128-157 Link Here
128
		vdr-plugin_src_install
120
		vdr-plugin_src_install
129
121
130
		# version number that the sources contain
122
		# version number that the sources contain
131
		local SO_VERSION="$(grep 'static const char \*VERSION *=' xineliboutput.c |\
123
		local SO_VERSION="$(grep 'static const char \*VERSION *=' \
132
						cut	-d'"' -f2)"
124
			xineliboutput.c | cut -d'"' -f2)"
133
	echo SO_VERSION=$SO_VERSION
125
		echo SO_VERSION=$SO_VERSION
134
		insinto ${VDR_PLUGIN_DIR}
126
		insinto ${VDR_PLUGIN_DIR}
135
		if use fbcon; then
127
		if use fbcon; then
136
			doins libxineliboutput-fbfe.so.${SO_VERSION} || die "doins failed"
128
			doins libxineliboutput-fbfe.so.${SO_VERSION} \
129
			|| die "doins failed"
137
		fi
130
		fi
138
		if use X; then
131
		if use X; then
139
			doins libxineliboutput-sxfe.so.${SO_VERSION} || die "doins failed"
132
			doins libxineliboutput-sxfe.so.${SO_VERSION} \
133
			|| die "doins failed"
140
		fi
134
		fi
141
	fi
135
	fi
142
136
143
	if use xine; then
137
	if use xine; then
144
		# install xine-plugins
138
		# install xine-plugins
145
		insinto "${XINE_PLUGIN_DIR}"
139
		insinto "${XINE_PLUGIN_DIR}"
146
		doins xineplug_inp_*.so
140
		doins xineplug_inp_*.so || die "doins failed"
147
141
148
		insinto "${XINE_PLUGIN_DIR}"/post
142
		insinto "${XINE_PLUGIN_DIR}"/post
149
		doins xineplug_post_*.so
143
		doins xineplug_post_*.so || die "doins failed"
150
144
151
		# install xine-based frontends
145
		# install xine-based frontends
152
		use fbcon && dobin vdr-fbfe
146
		use fbcon && dobin vdr-fbfe || die "doins failed"
153
		use X && dobin vdr-sxfe
147
		use X && dobin vdr-sxfe || die "doins failed"
154
155
	fi
148
	fi
156
}
149
}
157
150

Return to bug 296042