summaryrefslogtreecommitdiffstats
path: root/rules/gst-plugins-bad.make
blob: dbe84abd9c39b37f9dbd7f3f1f75feaa0c30394e (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
# -*-makefile-*-
# $Id: template-make 8785 2008-08-26 07:48:06Z wsa $
#
# Copyright (C) 2008 by Sascha Hauer
#
# 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_GST_PLUGINS_BAD) += gst-plugins-bad

#
# Paths and names
#
GST_PLUGINS_BAD_VERSION	:= 0.10.10
GST_PLUGINS_BAD		:= gst-plugins-bad-$(GST_PLUGINS_BAD_VERSION)
GST_PLUGINS_BAD_SUFFIX	:= tar.bz2
GST_PLUGINS_BAD_URL	:= http://gstreamer.freedesktop.org/src/gst-plugins-bad/$(GST_PLUGINS_BAD).$(GST_PLUGINS_BAD_SUFFIX)
GST_PLUGINS_BAD_SOURCE	:= $(SRCDIR)/$(GST_PLUGINS_BAD).$(GST_PLUGINS_BAD_SUFFIX)
GST_PLUGINS_BAD_DIR	:= $(BUILDDIR)/$(GST_PLUGINS_BAD)

# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------

$(GST_PLUGINS_BAD_SOURCE):
	@$(call targetinfo)
	@$(call get, GST_PLUGINS_BAD)

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

GST_PLUGINS_BAD_PATH	:= PATH=$(CROSS_PATH)
GST_PLUGINS_BAD_ENV 	:= $(CROSS_ENV)

#
# autoconf
#
GST_PLUGINS_BAD_AUTOCONF := $(CROSS_AUTOCONF_USR) \
	--disable-examples \
	--disable-quicktime \
	--disable-vcd \
	--disable-alsa \
	--disable-amrwb \
	--disable-bz2 \
	--disable-cdaudio \
	--disable-dc1394 \
	--disable-directfb \
	--disable-dirac \
	--disable-dts \
	--disable-divx \
	--disable-dvdnav \
	--disable-metadata \
	--disable-faac \
	--disable-faad \
	--disable-gsm \
	--disable-ivorbis \
	--disable-jack \
	--disable-ladspa \
	--disable-libmms \
	--disable-mpeg2enc \
	--disable-mplex \
	--disable-musepack \
	--disable-musicbrainz \
	--disable-mythtv \
	--disable-nas \
	--disable-neon \
	--disable-ofa \
	--disable-timidity \
	--disable-wildmidi \
	--disable-sdl \
	--disable-sdltest \
	--disable-sndfile \
	--disable-soundtouch \
	--disable-spc \
	--disable-swfdec \
	--disable-theoradec \
	--disable-x264 \
	--disable-xvid \
	--disable-dvb \
	--disable-oss4 \
	--disable-wininet

ifdef PTXCONF_GST_PLUGINS_BAD__FBDEVSINK
GST_PLUGINS_BAD_AUTOCONF += --enable-fbdev
GST_PLUGINS_BAD_INSTALL  += /usr/lib/gstreamer-0.10/libgstfbdevsink.so
else
GST_PLUGINS_BADD_AUTOCONF += --disable-fbdev
endif

ifdef PTXCONF_GST_PLUGINS_BAD__BAYER
GST_PLUGINS_BAD_AUTOCONF += --enable-bayer
GST_PLUGINS_BAD_INSTALL  += /usr/lib/gstreamer-0.10/libgstbayer.so
else
GST_PLUGINS_BADD_AUTOCONF += --disable-bayer
endif


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

$(STATEDIR)/gst-plugins-bad.targetinstall:
	@$(call targetinfo)

	@$(call install_init, gst-plugins-bad)
	@$(call install_fixup, gst-plugins-bad,PACKAGE,gst-plugins-bad)
	@$(call install_fixup, gst-plugins-bad,PRIORITY,optional)
	@$(call install_fixup, gst-plugins-bad,VERSION,$(GST_PLUGINS_BAD_VERSION))
	@$(call install_fixup, gst-plugins-bad,SECTION,base)
	@$(call install_fixup, gst-plugins-bad,AUTHOR,"Sascha Hauer")
	@$(call install_fixup, gst-plugins-bad,DEPENDS,)
	@$(call install_fixup, gst-plugins-bad,DESCRIPTION,missing)

	# install all activated plugins
	@for i in $(GST_PLUGINS_BAD_INSTALL); do \
		$(call install_copy, gst-plugins-bad, 0, 0, 644, \
			$(PKGDIR)/$(GST_PLUGINS_BAD)$$i, $$i) \
	done

	@$(call install_finish, gst-plugins-bad)

	@$(call touch)

# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------

gst-plugins-bad_clean:
	rm -rf $(STATEDIR)/gst-plugins-bad.*
	rm -rf $(PKGDIR)/gst-plugins-bad_*
	rm -rf $(GST_PLUGINS_BAD_DIR)

# vim: syntax=make