aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/clutter/clutter-gst.inc
blob: b25f31ec5503d7a68938630d844606d304d2af13 (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
DESCRIPTION = "Clutter GStreamer integration library"
HOMEPAGE = "http://www.clutter-project.org/"
LICENSE = "LGPLv2.1"

INC_PR = "r1"

DEPENDS = "clutter gstreamer gst-plugins-base"

require clutter-common.inc

inherit autotools pkgconfig

align_examples_data_location() {
	for full_name in $(find ${S}/examples -name *.png) ; do
		data_name=${full_name##*/}
		for i in $(find ${S}/examples -name *.c) ; do
			sed -i -e s:${data_name}:${datadir}/${PN}-examples/${data_name}:g $i
		done
	done
}

do_configure_prepend() {
	copy_gtk_doc_make
	make_all_execs_installable
	align_examples_data_location
}

do_install_append () {
	install -m 755 -d ${D}${datadir}/${PN}-examples
	for i in $(find ${S}/examples -name *.png) ; do
		install -m 755 ${i} ${D}${datadir}/${PN}-examples
	done
}

PACKAGES =+ "${PN}-examples"
FILES_${PN}-examples = "${bindir}/video-* ${datadir}/${PN}-examples"

PACKAGES =+ "${PN}-tests"
FILES_${PN}-tests = "${bindir}/test-*"