diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-video/raspberrypi-omxplayer |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-video/raspberrypi-omxplayer')
10 files changed, 317 insertions, 0 deletions
diff --git a/media-video/raspberrypi-omxplayer/Manifest b/media-video/raspberrypi-omxplayer/Manifest new file mode 100644 index 000000000000..9f5bad7deba0 --- /dev/null +++ b/media-video/raspberrypi-omxplayer/Manifest @@ -0,0 +1,12 @@ +AUX Makefile-0_p20160217.patch 1567 SHA256 8cd84c471a216a5e15c4ba9aa6b31bba4576f6911ca97725b18ccc4767a98e31 SHA512 c32de32fbbe39b004c428aee9bd65574704c02cd5a7470ceaeba5a039ffb1b78f288f6394a2aa2a544072704ee6d1d2eff10689d15ea16ba8350c6c71bba11eb WHIRLPOOL 954ec37b0c464a387945743f7942b2afc7261d308912c6ae5d694366957fc31359ec615dd5286ac994e298913b36b74756ab208f1de7b7ece37df5512f668d25 +AUX Makefile-0_p20160528.patch 1578 SHA256 0dbafdc5a5a79eae46562b9841c911b589f97d9118172acacca35801e28ab224 SHA512 6831719329d6900dd65c7fa6961790300bb8c204b59b81f2d0c6c31e6410bbf89f206d852cd5fb364e2945f36d6fc6be9f25f34158d1c1831581ff05162f900b WHIRLPOOL 2f567a946e28ca07be262de96ed454878bc19e6d111379ef59fee4f5228f7790e3f4302450dd94b8b4645939632e8a79726fa0d23a27013b51682a6dd71f49c6 +AUX cross-0_p20160528.patch 520 SHA256 7998b200ea72d11895b60aee21571f3c18cd5db590dab9fe881c5f4048f52164 SHA512 7ac3f7b3cda31ff6277da792d49e18b792646108faa28154bbad719f0181187e22d9ac7065a685edfcbc28076fc8a37d95b9381cc68e39a469a15c85622dec58 WHIRLPOOL 58c073703df57bfc8a79a481309906c6ebdd970199279cf551803258d6559bc5f2fa073e6076f59e0d873b95bb879f4ec45d53287a4e8e9cec66db3a154204a2 +AUX fonts-path.patch 881 SHA256 15838174c8fba07b5df2249f721203842827cd08b8f820b43c3f0f3e8abb4462 SHA512 995e9b5850a240e07814697054178fc19e94483d51b11a3786b8eff6c609619be2d7caa97c63ebdc1d194acb1d24a85b8acd34bbb4d5c0c7cc92a14da7b368dd WHIRLPOOL 7eb04d48d3e675410354e66f9f2624669b998a76bd644a0207121f710769de014b12e6f0dc753dbe8066267c545738e2b9b293de6b5d8809c4523406e2f9446c +DIST raspberrypi-omxplayer-0_p20160217.tar.gz 1204486 SHA256 eba2c6ea0843db8105fe4fe9c1f345db38952e4b96bf83ba15b1a3fd0e05effa SHA512 5137ba534ce3b0698c6ace8f570594c97ef978aaa97e6cc902f7895412c5d0282c7c4fa1f7b03f043d5281f0a282caf494602e45aae6a12d6d35bc26aaa4000f WHIRLPOOL 377b53ab0f4308ff600c8cf7af5939e79a942cca22d458b00fb38cebac8cb8760a3be22ad6ad0719890b61f7aa131e623067c96d1846b4aff8e38210e39770b6 +DIST raspberrypi-omxplayer-0_p20160528.tar.gz 1207624 SHA256 8c53d309144e9668092d1c51d32d0719cbc19295f714349655b17c9aa2a71d7f SHA512 c7b00908f52159745dda94f35b9150122ca1e4e97ad1578a89f6db917b1579a8ed94c4ef1592a7c2590240e0fd1e7e0617e3ee8dec7f532368205ee63ce42572 WHIRLPOOL 38d59c1ef076933466acd01186734d44b3d0f1602d415cb51ff82934ad69eac379c24f6d731c79b1cb8daea96148ff96e99c8f74577edbfaaf751fad434f4b18 +EBUILD raspberrypi-omxplayer-0_p20160217.ebuild 1067 SHA256 edc1ecd4a981577ae1d00e6f165cd0bb219562473d36daacb7b59e6b6a424c87 SHA512 62213cc1fc99dcac836e2254314070752143037f739f995f9ba173a0bed016518b0b1b24837ec07b17decfdf8054f938019480ed8e2c7aa84cf092905eaf3bed WHIRLPOOL 36c666d483af261bd2d6be53b673941d568891f98862ce6d2ee5c3f000266b8919980b7e5dd822b0757eddfa487824afb122428de350a772a753761651bb1716 +EBUILD raspberrypi-omxplayer-0_p20160528-r1.ebuild 1200 SHA256 5d8ed5e6f2ace286b9e5f570d24844a38b3fea8c3a8e63c579917cda99f3ef91 SHA512 02752cc2c3b6b27b115355d1ee88a493cd5dd2323b70cc41817ca6da06cd8346521c3adaf1b93239b7a5c0fc82e8e84c2510542a5a3b654af6dbf687ebe37bc5 WHIRLPOOL f3e1048d1cb9e6453d7a1a35b13c22545c7b3fa16b6031e31f019091a29cec77a3190ca1bfe5968931e054d8e6ae4ebd029ee7a6c68c9806ab3eaf8e00901c3c +EBUILD raspberrypi-omxplayer-0_p20160528.ebuild 1129 SHA256 fbb445171daae8a174625b10ed8956b1c821f35fb518806df535f1e74e435648 SHA512 a96c8bf14e56605c9ce5a0d436e9ec36e981f4222a5377b0ea9d52f6e44b67fe1cc8580716551c3c34a7364e2595bf3a610227cb2bddf06f459bca5f951eebc4 WHIRLPOOL ecff455a2c819406d9c424281a723a35869c4ea1c76ae1f7af28d8d04eb2e292ae1901508a7708bcf53b4802128732c06222f584849749ca682fc14630f03ea1 +EBUILD raspberrypi-omxplayer-9999.ebuild 1022 SHA256 b88cd805f5d86324c2c34055db357c29b3f6996a051417a3b0d593e52628f113 SHA512 2c1441c7254ec193c8c7dbe2186af6aa24a7be6617fe3850606bd5643ea48cb9667c0cad1418fe3c53ff65d2aa08413979f58f1f190e53a1b831479ef1abb1ce WHIRLPOOL 863f9a68cc8573645299995008866a23c9614bf970c21adb514a43e2136bc925cea8c7e3a92cb2998aa2b2d370453343e62773ea6a4c61b19d7ca1a9b64d5b8c +MISC ChangeLog 1917 SHA256 80ee59143c4b92ca8e91664b2edf6f40411a07c10c0225a3cd3a0ea7e9bd2c5d SHA512 4bea357d6b582545bb344741220ab73b9f67becac7bd937ed303b6fd822ae91d83440a7fbaa52032c9722326da92125ce3e10c4cd33dc45b950bdfdcf52a40b5 WHIRLPOOL 9c4bc9ea46a54de01679c983f6efc0ff5dd2219871469180037f47a762f7ed5d81537a947d1f2bf26ecf3d2466cc87de5d6cbdee8978609fba658c44822d90d5 +MISC metadata.xml 417 SHA256 32d0520299bafeb8b2f88e040fc8cc51353e6eeb4a5695acf8c3af76ac5bd3d7 SHA512 9558aefbd95a7ffef7c3714d41582531eadee6b1d6579338f036f7964ffbec1d217460d3a5cfff674cd0f915ad5efec9c97670769fb5abf19c57e5ccaa88c9b5 WHIRLPOOL 321e3964d4b7e0cb991e8d3414839598ff9c450aed9a8e041de6f736bc2ebf2b479611f65ede5ddc34194154228be5efe26a2969101be1eee0d76c7f48e177df diff --git a/media-video/raspberrypi-omxplayer/files/Makefile-0_p20160217.patch b/media-video/raspberrypi-omxplayer/files/Makefile-0_p20160217.patch new file mode 100644 index 000000000000..c6f945209b95 --- /dev/null +++ b/media-video/raspberrypi-omxplayer/files/Makefile-0_p20160217.patch @@ -0,0 +1,26 @@ +--- omxplayer-9999/Makefile ++++ omxplayer-9999/Makefile +@@ -2,9 +2,11 @@ + + CFLAGS+=-std=c++0x -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -DTARGET_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CMAKE_CONFIG -D__VIDEOCORE4__ -U_FORTIFY_SOURCE -Wall -DHAVE_OMXLIB -DUSE_EXTERNAL_FFMPEG -DHAVE_LIBAVCODEC_AVCODEC_H -DHAVE_LIBAVUTIL_OPT_H -DHAVE_LIBAVUTIL_MEM_H -DHAVE_LIBAVUTIL_AVUTIL_H -DHAVE_LIBAVFORMAT_AVFORMAT_H -DHAVE_LIBAVFILTER_AVFILTER_H -DHAVE_LIBSWRESAMPLE_SWRESAMPLE_H -DOMX -DOMX_SKIP64BIT -ftree-vectorize -DUSE_EXTERNAL_OMX -DTARGET_RASPBERRY_PI -DUSE_EXTERNAL_LIBBCM_HOST + +-LDFLAGS+=-L./ -Lffmpeg_compiled/usr/local/lib/ -lc -lWFC -lGLESv2 -lEGL -lbcm_host -lopenmaxil -lfreetype -lz ++PKGS=freetype2 dbus-1 libavcodec libavutil libavformat libswresample libswscale libpcre ++ ++LIBS+=-lrt -lpthread $(shell pkg-config --libs $(PKGS)) -L/opt/vc/lib + +-INCLUDES+=-I./ -Ilinux -Iffmpeg_compiled/usr/local/include/ -I /usr/include/dbus-1.0 -I /usr/lib/arm-linux-gnueabihf/dbus-1.0/include ++INCLUDES+=$(shell pkg-config --cflags $(PKGS)) -I/opt/vc/include -I. -Ilinux + + DIST ?= omxplayer-dist + +@@ -51,8 +47,7 @@ + bash gen_version.sh > version.h + + omxplayer.bin: version $(OBJS) +- $(CXX) $(LDFLAGS) -o omxplayer.bin $(OBJS) -lvchiq_arm -lvcos -ldbus-1 -lrt -lpthread -lavutil -lavcodec -lavformat -lswscale -lswresample -lpcre +- $(STRIP) omxplayer.bin ++ $(CXX) $(LDFLAGS) -o omxplayer.bin $(OBJS) $(LIBS) + + help.h: README.md Makefile + awk '/SYNOPSIS/{p=1;print;next} p&&/KEY BINDINGS/{p=0};p' $< \ diff --git a/media-video/raspberrypi-omxplayer/files/Makefile-0_p20160528.patch b/media-video/raspberrypi-omxplayer/files/Makefile-0_p20160528.patch new file mode 100644 index 000000000000..eb65f5d7ad70 --- /dev/null +++ b/media-video/raspberrypi-omxplayer/files/Makefile-0_p20160528.patch @@ -0,0 +1,26 @@ +--- omxplayer-9999/Makefile ++++ omxplayer-9999/Makefile +@@ -2,9 +2,11 @@ + + CFLAGS+=-std=c++0x -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -DTARGET_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CMAKE_CONFIG -D__VIDEOCORE4__ -U_FORTIFY_SOURCE -Wall -DHAVE_OMXLIB -DUSE_EXTERNAL_FFMPEG -DHAVE_LIBAVCODEC_AVCODEC_H -DHAVE_LIBAVUTIL_OPT_H -DHAVE_LIBAVUTIL_MEM_H -DHAVE_LIBAVUTIL_AVUTIL_H -DHAVE_LIBAVFORMAT_AVFORMAT_H -DHAVE_LIBAVFILTER_AVFILTER_H -DHAVE_LIBSWRESAMPLE_SWRESAMPLE_H -DOMX -DOMX_SKIP64BIT -ftree-vectorize -DUSE_EXTERNAL_OMX -DTARGET_RASPBERRY_PI -DUSE_EXTERNAL_LIBBCM_HOST + +-LDFLAGS+=-L./ -Lffmpeg_compiled/usr/local/lib/ -lc -lWFC -lGLESv2 -lEGL -lbcm_host -lopenmaxil -lfreetype -lz ++PKGS=freetype2 dbus-1 libavcodec libavutil libavformat libswresample libswscale libpcre ++ ++LIBS+=-lrt -lpthread $(shell pkg-config --libs $(PKGS)) -L/opt/vc/lib + +-INCLUDES+=-I./ -Ilinux -Iffmpeg_compiled/usr/local/include/ -I /usr/include/dbus-1.0 -I /usr/lib/arm-linux-gnueabihf/dbus-1.0/include ++INCLUDES+=$(shell pkg-config --cflags $(PKGS)) -I/opt/vc/include -I. -Ilinux + + DIST ?= omxplayer-dist + +@@ -51,8 +47,7 @@ + bash gen_version.sh > version.h + + omxplayer.bin: version $(OBJS) +- $(CXX) $(LDFLAGS) -o omxplayer.bin $(OBJS) -lvchiq_arm -lvchostif -lvcos -ldbus-1 -lrt -lpthread -lavutil -lavcodec -lavformat -lswscale -lswresample -lpcre +- $(STRIP) omxplayer.bin ++ $(CXX) $(LDFLAGS) -o omxplayer.bin $(OBJS) $(LIBS) + + help.h: README.md Makefile + awk '/SYNOPSIS/{p=1;print;next} p&&/KEY BINDINGS/{p=0};p' $< \ diff --git a/media-video/raspberrypi-omxplayer/files/cross-0_p20160528.patch b/media-video/raspberrypi-omxplayer/files/cross-0_p20160528.patch new file mode 100644 index 000000000000..bd35d6283d21 --- /dev/null +++ b/media-video/raspberrypi-omxplayer/files/cross-0_p20160528.patch @@ -0,0 +1,15 @@ +--- a/Makefile ++++ b/Makefile +@@ -4,9 +4,11 @@ + + PKGS=freetype2 dbus-1 libavcodec libavutil libavformat libswresample libswscale libpcre + +-LIBS+=-lrt -lpthread $(shell pkg-config --libs $(PKGS)) -L/opt/vc/lib ++PKG_CONFIG ?= pkg-config + +-INCLUDES+=$(shell pkg-config --cflags $(PKGS)) -I/opt/vc/include -I. -Ilinux ++LIBS+=-lrt -lpthread $(shell $(PKG_CONFIG) --libs $(PKGS)) -L${SYSROOT}/opt/vc/lib ++ ++INCLUDES+=$(shell $(PKG_CONFIG) --cflags $(PKGS)) -I${SYSROOT}/opt/vc/include -I. -Ilinux + + DIST ?= omxplayer-dist diff --git a/media-video/raspberrypi-omxplayer/files/fonts-path.patch b/media-video/raspberrypi-omxplayer/files/fonts-path.patch new file mode 100644 index 000000000000..6683145f6833 --- /dev/null +++ b/media-video/raspberrypi-omxplayer/files/fonts-path.patch @@ -0,0 +1,15 @@ +diff --git a/omxplayer.cpp b/omxplayer.cpp +index 0626e2e..8450bf2 100644 +--- a/omxplayer.cpp ++++ b/omxplayer.cpp +@@ -83,8 +83,8 @@ bool m_osd = true; + bool m_no_keys = false; + std::string m_external_subtitles_path; + bool m_has_external_subtitles = false; +-std::string m_font_path = "/usr/share/fonts/truetype/freefont/FreeSans.ttf"; +-std::string m_italic_font_path = "/usr/share/fonts/truetype/freefont/FreeSansOblique.ttf"; ++std::string m_font_path = "/usr/share/fonts/freefont/FreeSans.ttf"; ++std::string m_italic_font_path = "/usr/share/fonts/freefont/FreeSansOblique.ttf"; + std::string m_dbus_name = "org.mpris.MediaPlayer2.omxplayer"; + bool m_asked_for_font = false; + bool m_asked_for_italic_font = false; diff --git a/media-video/raspberrypi-omxplayer/metadata.xml b/media-video/raspberrypi-omxplayer/metadata.xml new file mode 100644 index 000000000000..8cad57807703 --- /dev/null +++ b/media-video/raspberrypi-omxplayer/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>fordfrog@gentoo.org</email> + <name>Miroslav Ć ulc</name> + </maintainer> + <longdescription>Command line media player for the Raspberry Pi</longdescription> + <upstream> + <remote-id type="github">popcornmix/omxplayer</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-video/raspberrypi-omxplayer/raspberrypi-omxplayer-0_p20160217.ebuild b/media-video/raspberrypi-omxplayer/raspberrypi-omxplayer-0_p20160217.ebuild new file mode 100644 index 000000000000..4a1c214969f9 --- /dev/null +++ b/media-video/raspberrypi-omxplayer/raspberrypi-omxplayer-0_p20160217.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils toolchain-funcs flag-o-matic + +GIT_COMMIT="15a490b" +DESCRIPTION="Command line media player for the Raspberry Pi" +HOMEPAGE="https://github.com/popcornmix/omxplayer" +SRC_URI="https://github.com/popcornmix/omxplayer/tarball/${GIT_COMMIT} -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~arm" +IUSE="" + +RDEPEND="dev-libs/libpcre + media-fonts/freefont + || ( media-libs/raspberrypi-userland media-libs/raspberrypi-userland-bin ) + sys-apps/dbus + sys-apps/fbset + virtual/ffmpeg + x11-apps/xrefresh + x11-apps/xset" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}/popcornmix-omxplayer-${GIT_COMMIT}" + +src_prepare() { + epatch "${FILESDIR}"/Makefile-0_p20160217.patch \ + "${FILESDIR}"/fonts-path.patch + + cat > Makefile.include << EOF +LIBS=-lvchiq_arm -lvcos -lbcm_host -lEGL -lGLESv2 -lopenmaxil -lrt -lpthread +EOF + + tc-export CXX +} + +src_compile() { + emake omxplayer.bin +} + +src_install() { + dobin omxplayer omxplayer.bin + dodoc README.md +} diff --git a/media-video/raspberrypi-omxplayer/raspberrypi-omxplayer-0_p20160528-r1.ebuild b/media-video/raspberrypi-omxplayer/raspberrypi-omxplayer-0_p20160528-r1.ebuild new file mode 100644 index 000000000000..5592e2b50c30 --- /dev/null +++ b/media-video/raspberrypi-omxplayer/raspberrypi-omxplayer-0_p20160528-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit flag-o-matic toolchain-funcs + +GIT_COMMIT="791d7df" +DESCRIPTION="Command line media player for the Raspberry Pi" +HOMEPAGE="https://github.com/popcornmix/omxplayer" +SRC_URI="https://github.com/popcornmix/omxplayer/tarball/${GIT_COMMIT} -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~arm" +IUSE="X" + +RDEPEND="dev-libs/libpcre + media-fonts/freefont + || ( media-libs/raspberrypi-userland media-libs/raspberrypi-userland-bin ) + sys-apps/dbus + sys-apps/fbset + virtual/ffmpeg + dev-libs/boost + media-libs/freetype:2 + X? ( + x11-apps/xrefresh + x11-apps/xset + )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/Makefile-0_p20160528.patch + "${FILESDIR}"/fonts-path.patch + "${FILESDIR}"/cross-0_p20160528.patch +) + +DOCS=( README.md ) + +S="${WORKDIR}/popcornmix-omxplayer-${GIT_COMMIT}" + +src_prepare() { + default + cat > Makefile.include << EOF +LIBS=-lvchostif -lvchiq_arm -lvcos -lbcm_host -lEGL -lGLESv2 -lopenmaxil -lrt -lpthread +EOF + + tc-export CXX PKG_CONFIG +} + +src_compile() { + emake omxplayer.bin +} + +src_install() { + dobin omxplayer omxplayer.bin + einstalldocs +} diff --git a/media-video/raspberrypi-omxplayer/raspberrypi-omxplayer-0_p20160528.ebuild b/media-video/raspberrypi-omxplayer/raspberrypi-omxplayer-0_p20160528.ebuild new file mode 100644 index 000000000000..da741441c5d4 --- /dev/null +++ b/media-video/raspberrypi-omxplayer/raspberrypi-omxplayer-0_p20160528.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils toolchain-funcs flag-o-matic + +GIT_COMMIT="791d7df" +DESCRIPTION="Command line media player for the Raspberry Pi" +HOMEPAGE="https://github.com/popcornmix/omxplayer" +SRC_URI="https://github.com/popcornmix/omxplayer/tarball/${GIT_COMMIT} -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~arm" +IUSE="X" + +RDEPEND="dev-libs/libpcre + media-fonts/freefont + || ( media-libs/raspberrypi-userland media-libs/raspberrypi-userland-bin ) + sys-apps/dbus + sys-apps/fbset + virtual/ffmpeg + dev-libs/boost + media-libs/freetype:2 + X? ( + x11-apps/xrefresh + x11-apps/xset + )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}/popcornmix-omxplayer-${GIT_COMMIT}" + +src_prepare() { + epatch "${FILESDIR}"/Makefile-0_p20160528.patch \ + "${FILESDIR}"/fonts-path.patch + + cat > Makefile.include << EOF +LIBS=-lvchostif -lvchiq_arm -lvcos -lbcm_host -lEGL -lGLESv2 -lopenmaxil -lrt -lpthread +EOF + + tc-export CXX +} + +src_compile() { + emake omxplayer.bin +} + +src_install() { + dobin omxplayer omxplayer.bin + dodoc README.md +} diff --git a/media-video/raspberrypi-omxplayer/raspberrypi-omxplayer-9999.ebuild b/media-video/raspberrypi-omxplayer/raspberrypi-omxplayer-9999.ebuild new file mode 100644 index 000000000000..2cac67b90a01 --- /dev/null +++ b/media-video/raspberrypi-omxplayer/raspberrypi-omxplayer-9999.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils git-r3 toolchain-funcs flag-o-matic + +DESCRIPTION="Command line media player for the Raspberry Pi" +HOMEPAGE="https://github.com/popcornmix/omxplayer" +EGIT_REPO_URI="https://github.com/popcornmix/omxplayer.git" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="X" + +RDEPEND="dev-libs/libpcre + media-fonts/freefont + || ( media-libs/raspberrypi-userland media-libs/raspberrypi-userland-bin ) + sys-apps/dbus + sys-apps/fbset + virtual/ffmpeg + dev-libs/boost + media-libs/freetype:2 + X? ( + x11-apps/xrefresh + x11-apps/xset + )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + epatch "${FILESDIR}"/Makefile-0_p20160217.patch \ + "${FILESDIR}"/fonts-path.patch + + cat > Makefile.include << EOF +LIBS=-lvchiq_arm -lvcos -lbcm_host -lEGL -lGLESv2 -lopenmaxil -lrt -lpthread +EOF + + tc-export CXX +} + +src_compile() { + emake omxplayer.bin +} + +src_install() { + dobin omxplayer omxplayer.bin + dodoc README.md +} |