blob: 407ce6f1e389c0674b7204d3db9675a95ea5546d (
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
|
# $NetBSD: Makefile.common,v 1.4 2004/04/15 21:24:28 jmmv Exp $
#
DISTNAME= gst-plugins-0.8.1
CATEGORIES= multimedia gnome
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gst-plugins/0.8/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= rh@NetBSD.org
HOMEPAGE= http://www.gstreamer.net/
COMMENT= GStreamer -
DISTINFO_FILE= ${.CURDIR}/../../multimedia/gst-plugins/distinfo
FILESDIR= ${.CURDIR}/../../multimedia/gst-plugins/files
PATCHDIR= ${.CURDIR}/../../multimedia/gst-plugins/patches
BUILD_DEPENDS+= nasm>=0.98.38:../../devel/nasm
GNU_CONFIGURE= yes
USE_BUILDLINK3= yes
USE_GNU_TOOLS+= make
USE_LIBTOOL= yes
USE_PKGLOCALEDIR= yes
CONFIGURE_ARGS+= --disable-gconf
CONFIGURE_ARGS+= --disable-gconftool
CONFIGURE_ARGS+= --disable-x
CONFIGURE_ARGS+= --disable-xshm
CONFIGURE_ARGS+= --disable-xvideo
CONFIGURE_ARGS+= --disable-examples
CONFIGURE_ARGS+= --disable-tests
# Disable all drivers by default.
.for driver in a52dec \
aalib \
aalibtest \
alsa \
arts \
artsc \
artstest \
audiofile \
cdparanoia \
cdrom \
divx \
dvdnav \
dvdread \
dxr3 \
esd \
esdtest \
faac \
faad \
flac \
freetypetest \
gdk_pixbuf \
gnome_vfs \
gsm \
hermes \
ivorbis \
jack \
jpeg \
ladspa \
lame \
lcs \
libcaca \
libdv \
libfame \
libfametest \
libmikmodtest \
libpng \
libpng \
librfb \
mad \
mikmod \
mpeg2dec \
mpeg2enc \
mplex \
musicbrainz \
nas \
ogg \
oggtest \
oss \
pango \
qcam \
raw1394 \
sdl \
sdltest \
shout \
shout2 \
shout2test \
sidplay \
smoothwave \
sndfile \
speex \
swfdec \
tarkin \
theora \
v4l \
v4l2 \
vcd \
vorbis \
vorbistest \
xvid
CONFIGURE_ARGS+= --disable-${driver}
.endfor
.undef driver
# A package building a single plugin of gst-plugins has to include this
# file and define the following variables:
# GST_PLUGINS_NAME - The name of the plugin, to be added to the package
# name and the comment.
# GST_PLUGINS_DIR - The directory where the plugin resides; a relative
# path from WRKSRC.
# GST_PLUGINS_FLAG - The name of the flag used to enable the plugin.
# Defaults to GST_PLUGINS_NAME.
.if defined(GST_PLUGINS_NAME) && !empty(GST_PLUGINS_NAME)
PKGNAME= ${DISTNAME:S/plugins/plugins-${GST_PLUGINS_NAME}/}
COMMENT+= ${GST_PLUGINS_NAME} plugin
GST_PLUGINS_FLAG?= ${GST_PLUGINS_NAME}
GST_PLUGINS_DIR?= non-existent
CONFIGURE_ARGS:= ${CONFIGURE_ARGS:S/--disable-${GST_PLUGINS_FLAG}/--enable-${GST_PLUGINS_FLAG}/}
BUILD_DIRS= ${WRKSRC}/${GST_PLUGINS_DIR}
INSTALL_DIRS= ${WRKSRC}/${GST_PLUGINS_DIR}
# Generate a description automatically.
DESCR_SRC= ${.CURDIR}/../../multimedia/gst-plugins/DESCR
DESCR_SRC+= ${.CURDIR}/../../multimedia/gst-plugins/DESCR.blank
DESCR_SRC+= ${.CURDIR}/DESCR
# Fix paths to already installed libraries (by the gst-plugins package).
SUBST_CLASSES+= libs
SUBST_MESSAGE.libs= "Fixing path to dependent libraries."
SUBST_STAGE.libs= pre-configure
SUBST_FILES.libs= ${GST_PLUGINS_DIR}/Makefile.in
SUBST_SED.libs= -e 's|$$(top_builddir)/gst-libs/gst/libgst|${BUILDLINK_PREFIX.gst-plugins}/lib/libgst|g'
.include "../../multimedia/gst-plugins/buildlink3.mk"
.endif
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/pkgconfig/buildlink3.mk"
.include "../../multimedia/gstreamer/plugins.mk"
|