summaryrefslogtreecommitdiffstats
path: root/rules/gstreamer.make
blob: 88370f06efb68a7c167f72c59938dcea6ed3ce71 (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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# -*-makefile-*-
#
# Copyright (C) 2008 by Robert Schwebel
#               2011 by Michael Olbrich <m.olbrich@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_GSTREAMER) += gstreamer

#
# Paths and names
#
GSTREAMER_VERSION	:= 0.10.36
GSTREAMER_MD5		:= a0cf7d6877f694a1a2ad2b4d1ecb890b
GSTREAMER		:= gstreamer-$(GSTREAMER_VERSION)
GSTREAMER_SUFFIX	:= tar.bz2
GSTREAMER_URL		:= http://gstreamer.freedesktop.org/src/gstreamer/$(GSTREAMER).$(GSTREAMER_SUFFIX)
GSTREAMER_SOURCE	:= $(SRCDIR)/$(GSTREAMER).$(GSTREAMER_SUFFIX)
GSTREAMER_DIR		:= $(BUILDDIR)/$(GSTREAMER)
GSTREAMER_LICENSE	:= LGPL-2.0-or-later

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

#
# autoconf
#
GSTREAMER_GENERIC_CONF_OPT = \
	--disable-static \
	--disable-nls \
	--disable-rpath \
	--disable-debug \
	--disable-profiling \
	--disable-valgrind \
	--disable-gcov \
	--disable-examples \
	--disable-gtk-doc \
	--disable-silent-rules \
	--without-libiconv-prefix \
	--without-libintl-prefix \
	--disable-gobject-cast-checks

GSTREAMER_AUTOCONF := \
	$(CROSS_AUTOCONF_USR) \
	$(GSTREAMER_GENERIC_CONF_OPT) \
	--$(call ptx/endis,PTXCONF_GSTREAMER_DEBUG)-gst-debug \
	--$(call ptx/endis,PTXCONF_GSTREAMER_LOADSAVE)-loadsave \
	--$(call ptx/endis,PTXCONF_GSTREAMER_CMDLINEPARSER)-parse \
	--$(call ptx/endis,PTXCONF_GSTREAMER_OPTIONPARSING)-option-parsing \
	--disable-trace \
	--disable-alloc-trace \
	--enable-registry \
	--$(call ptx/endis,PTXCONF_GSTREAMER_NETDIST)-net \
	--enable-plugin \
	--disable-tests \
	--disable-failing-tests \
	--disable-poisoning \
	$(GLOBAL_LARGE_FILE_OPTION) \
	--disable-introspection \
	--disable-docbook \
	--disable-check \
	--enable-Bsymbolic

ifdef PTXCONF_ARCH_ARM64
# The configure check defines default values for known architectures.
# This value for arm64 is taken from a newer gstreamer version.
GSTREAMER_AUTOCONF += \
	as_cv_unaligned_access=no
endif

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/gstreamer.targetinstall:
	@$(call targetinfo)

	@$(call install_init, gstreamer)
	@$(call install_fixup, gstreamer,PRIORITY,optional)
	@$(call install_fixup, gstreamer,SECTION,base)
	@$(call install_fixup, gstreamer,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
	@$(call install_fixup, gstreamer,DESCRIPTION,missing)

ifdef PTXCONF_GSTREAMER_INSTALL_TYPEFIND
	@$(call install_copy, gstreamer, 0, 0, 0755, -, \
		/usr/bin/gst-typefind)
	@$(call install_copy, gstreamer, 0, 0, 0755, -, \
		/usr/bin/gst-typefind-0.10)
endif
ifdef PTXCONF_GSTREAMER_INSTALL_INSPECT
	@$(call install_copy, gstreamer, 0, 0, 0755, -, \
		/usr/bin/gst-inspect)
	@$(call install_copy, gstreamer, 0, 0, 0755, -, \
		/usr/bin/gst-inspect-0.10)
endif
ifdef PTXCONF_GSTREAMER_INSTALL_XMLINSPECT
	@$(call install_copy, gstreamer, 0, 0, 0755, -, \
		/usr/bin/gst-xmlinspect)
	@$(call install_copy, gstreamer, 0, 0, 0755, -, \
		/usr/bin/gst-xmlinspect-0.10)
endif
ifdef PTXCONF_GSTREAMER_INSTALL_XMLLAUNCH
	@$(call install_copy, gstreamer, 0, 0, 0755, -, \
		/usr/bin/gst-xmllaunch)
	@$(call install_copy, gstreamer, 0, 0, 0755, -, \
		/usr/bin/gst-xmllaunch-0.10)
endif
ifdef PTXCONF_GSTREAMER_INSTALL_LAUNCH
	@$(call install_copy, gstreamer, 0, 0, 0755, -, \
		/usr/bin/gst-launch)
	@$(call install_copy, gstreamer, 0, 0, 0755, -, \
		/usr/bin/gst-launch-0.10)
endif

	@$(call install_lib, gstreamer, 0, 0, 0644, libgstbase-0.10)
	@$(call install_lib, gstreamer, 0, 0, 0644, libgstcontroller-0.10)
	@$(call install_lib, gstreamer, 0, 0, 0644, libgstdataprotocol-0.10)
ifdef PTXCONF_GSTREAMER_NETDIST
	@$(call install_lib, gstreamer, 0, 0, 0644, libgstnet-0.10)
endif
	@$(call install_lib, gstreamer, 0, 0, 0644, libgstreamer-0.10)

	@$(call install_lib, gstreamer, 0, 0, 0644, \
		gstreamer-0.10/libgstcoreelements)
	@$(call install_lib, gstreamer, 0, 0, 0644, \
		gstreamer-0.10/libgstcoreindexers)

	@$(call install_copy, gstreamer, 0, 0, 0755, -, \
		/usr/libexec/gstreamer-0.10/gst-plugin-scanner)

ifdef PTXCONF_PRELINK
	@$(call install_alternative, gstreamer, 0, 0, 0644, \
		/etc/prelink.conf.d/gstreamer)
endif

	@$(call install_finish, gstreamer)

	@$(call touch)

# vim: syntax=make