Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 590744
Collapse All | Expand All

(-)file_not_specified_in_diff (-7 / +20 lines)
Line  Link Here
0
-- /dev/null
0
++ b/usr/portage/media-video/raspberrypi-omxplayer/files/cross.patch
Line 0 Link Here
0
-- a/usr/portage/media-video/raspberrypi-omxplayer/raspberrypi-omxplayer-0_p20160528.ebuild
1
--- a/Makefile
2
+++ b/Makefile
3
@@ -4,9 +4,11 @@
4
 
5
 PKGS=freetype2 dbus-1 libavcodec libavutil libavformat libswresample libswscale libpcre
6
 
7
-LIBS+=-lrt -lpthread $(shell pkg-config --libs $(PKGS)) -L/opt/vc/lib
8
+PKG_CONFIG ?= pkg-config
9
 
10
-INCLUDES+=$(shell pkg-config --cflags $(PKGS)) -I/opt/vc/include -I. -Ilinux
11
+LIBS+=-lrt -lpthread $(shell $(PKG_CONFIG) --libs $(PKGS)) -L${SYSROOT}/opt/vc/lib
12
+
13
+INCLUDES+=$(shell $(PKG_CONFIG) --cflags $(PKGS)) -I${SYSROOT}/opt/vc/include -I. -Ilinux
14
 
15
 DIST ?= omxplayer-dist
16
 
17
++ b/usr/portage/media-video/raspberrypi-omxplayer/raspberrypi-omxplayer-0_p20160528.ebuild
Lines 35-50 S="${WORKDIR}/popcornmix-omxplayer-${GIT_COMMIT}" Link Here
35
35
36
src_prepare() {
36
src_prepare() {
37
	epatch "${FILESDIR}"/Makefile-0_p20160528.patch \
37
	epatch "${FILESDIR}"/Makefile-0_p20160528.patch \
38
		"${FILESDIR}"/fonts-path.patch \
38
		"${FILESDIR}"/fonts-path.patch
39
		"${FILESDIR}"/cross.patch
40
41
	epatch_user
42
39
43
	cat > Makefile.include << EOF
40
	cat > Makefile.include << EOF
44
LIBS=-lvchostif -lvchiq_arm -lvcos -lbcm_host -lEGL -lGLESv2 -lopenmaxil -lrt -lpthread
41
LIBS=-lvchostif -lvchiq_arm -lvcos -lbcm_host -lEGL -lGLESv2 -lopenmaxil -lrt -lpthread
45
EOF
42
EOF
46
43
47
	tc-export CXX PKG_CONFIG
44
	tc-export CXX
48
}
45
}
49
46
50
src_compile() {
47
src_compile() {

Return to bug 590744