summaryrefslogtreecommitdiff
path: root/recipes/dsplink/gstreamer-ti_svn.bb
blob: 2e6faddf301c2865aa21718da5e0c339b62ffb2c (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
DEPENDS = "ti-codec-engine ti-dmai gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly libid3tag liboil libmad"

SRC_URI = "svn://gforge.ti.com/svn/gstreamer_ti/trunk;module=gstreamer_ti;proto=https;user=anonymous;pswd='' \
          "
SRCREV = "189"

PR = "${MACHINE_KERNEL_PR}"

# Again, no '.' in PWD allowed :(
PV = "0+svnr${SRCREV}"

S = "${WORKDIR}/gstreamer_ti/ti_build/ticodecplugin"

inherit autotools

require ti-paths.inc

export DMAI_INSTALL_DIR = "${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-dmai"
export CE_INSTALL_DIR="${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-codec-engine"
export FC_INSTALL_DIR="${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-codec-engine/cetools"
export CODEC_INSTALL_DIR="${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-codec-combos"

export XDC_TARGET = "gnu.targets.arm.GCArmv5T"

XDC_PLATFORM = "foo"
# Assume every TI armv7a cpu is a 3530
XDC_PLATFORM_armv7a = "ti.platforms.evm3530"
export XDC_PLATFORM

# We need to add this to config.bld:
#GCArmv5T.cc.$unseal("opts");
#GCArmv5T.cc.opts = "SEDME_CCARCH";
#GCArmv5T.cc.$seal("opts");

do_configure_prepend() {
	for i in ${S}/src/*.cfg ; do
		sed -i -e s:\./encodeCombo.x64P:${datadir}/ti-codec-combos/encodeCombo.x64P:g \
	           -e s:\./decodeCombo.x64P:${datadir}/ti-codec-combos/decodeCombo.x64P:g \
	           $i
	done
}

do_compile_prepend() {
	for i in $(find ${S} -name "config.bld") ; do
		    sed -i -e s:SEDME_CCARCH:'${TARGET_CCARCH}': $i
	done
}

CPPFLAGS_append = " -DPlatform_${PLATFORM}"

PACKAGE_ARCH = "${MACHINE_ARCH}"

RDEPENDS_${PN} = "ti-dmai"
FILES_${PN} += "${libdir}/gstreamer-0.10/*.so"
FILES_${PN}-dev += "${libdir}/gstreamer-0.10/*.a ${libdir}/gstreamer-0.10/*.la"
FILES_${PN}-dbg += "${libdir}/gstreamer-0.10/.debug"