blob: 3bceca9a3c63124dfe85b5e5e514b1612d7fad55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
DESCRIPTION = "Phytec Gstreamer examples"
HOMEPAGE = "http://www.phytec.de"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
SECTION = "multimedia"
PR = "r0"
# Archive created via
# $ unzip gstreamer_examples.zip
# $ mv gstreamer_examples phytec-gstreamer-examples-imx8m-2.0
# $ cp phytec-gstreamer-examples-imx8m-1.0/COPYING.MIT phytec-gstreamer-examples-imx8m-2.0/
# $ find phytec-gstreamer-examples-imx8m-2.0/ -exec "touch" "{}" ";"
# $ find phytec-gstreamer-examples-imx8m-2.0/ -name "*.sh" -exec "chmod" "+x" "{}" ";"
# $ tar --owner=root --group=root -czf phytec-gstreamer-examples-imx8m-2.0.tar.gz \
# phytec-gstreamer-examples-imx8m-2.0/
SRC_URI = "ftp://ftp.phytec.de/pub/Software/Linux/Applications/${PN}-${PV}.tar.gz"
SRC_URI[md5sum] = "3528a68977faa58ec4d71bd428c0b5d2"
SRC_URI[sha256sum] = "4178d7cf605d3de492cd0cdc1ef26c867c37632bb7bb17f0b72c559ea866667e"
GSTREAMER_EXAMPLES_DIR = "${datadir}/phytec-gstreamer-examples"
do_configure[noexec] = "1"
do_compile[noexec] = "1"
do_install() {
DESTDIR="${D}${GSTREAMER_EXAMPLES_DIR}"
for directory in `find -type d`; do
if [ ${directory} != "./patches" ]; then
install -d ${DESTDIR}/${directory}
fi
done
for text in `find -name '*.txt'`; do
install -m 0644 ${text} ${DESTDIR}/${text}
done
for scripts in `find -name '*.sh'`; do
install -m 0755 ${scripts} ${DESTDIR}/${scripts}
done
# Create link in home folder for old documentation
install -d ${D}/home/root
ln -s ${GSTREAMER_EXAMPLES_DIR} ${D}/home/root/gstreamer_examples
}
FILES_${PN} += " \
/home/root/ \
${GSTREAMER_EXAMPLES_DIR} \
"
RDEPENDS_${PN} += " \
bash \
gst-plugin-i2c \
media-ctl \
v4l-utils \
gstreamer1.0 \
gstreamer1.0-plugins-good-multifile \
gstreamer1.0-plugins-good-video4linux2 \
gstreamer1.0-plugins-bad-fbdevsink \
gstreamer1.0-plugins-bad-bayer \
gstreamer1.0-plugins-good-jpeg \
gstreamer1.0-plugin-bayer2rgb-neon \
"
|