2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2016 Aurelien Larcher. All rights reserved.
16 include ..
/..
/..
/make-rules
/shared-macros.mk
18 COMPONENT_NAME
= gst-plugins-bad1
19 COMPONENT_VERSION
= 1.10.3
20 COMPONENT_SUMMARY
= GNOME streaming media framework plugins
21 COMPONENT_CLASSIFICATION
= System
/Multimedia Libraries
22 COMPONENT_FMRI
= library
/audio
/gstreamer1
/plugin
/bad
23 COMPONENT_SRC_NAME
= gst-plugins-bad
24 COMPONENT_SRC
= $(COMPONENT_SRC_NAME
)-$(COMPONENT_VERSION
)
25 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
26 COMPONENT_ARCHIVE_HASH
= \
27 sha256
:24099351fb6984c9e7560de06e072ff2e33d0b2db38b8fcc7afefb536e5094e7
28 COMPONENT_ARCHIVE_URL
= \
29 http
://gstreamer.freedesktop.org
/src
/$(COMPONENT_SRC_NAME
)/$(COMPONENT_ARCHIVE
)
30 COMPONENT_PROJECT_URL
= http
://gstreamer.freedesktop.org
/
31 COMPONENT_LICENSE
= LGPLv2
33 include $(WS_MAKE_RULES
)/encumbered.mk
34 include $(WS_MAKE_RULES
)/prep.mk
35 include $(WS_MAKE_RULES
)/configure.mk
36 include $(WS_MAKE_RULES
)/ips.mk
38 COMPONENT_PREP_ACTION
= ( cd
$(SOURCE_DIR
) && aclocal
-I .
/m4
-I.
/common
/m4
&&\
40 automake
-a
-f
-c
--gnu
&&\
44 PATH
= /usr
/gnu
/bin
:/usr
/bin
46 CFLAGS
+= -I
/usr
/X11
/include/mesa
47 CFLAGS
+= -I
/usr
/X11
/include
49 # build with the distribution preferred libjpeg implementation
50 CFLAGS
+= $(JPEG_CPPFLAGS
) $(JPEG_CFLAGS
)
51 CXXFLAGS
+= $(JPEG_CPPFLAGS
) $(JPEG_CXXFLAGS
)
52 LDFLAGS
+= $(JPEG_LDFLAGS
)
54 CONFIGURE_OPTIONS
+= --sysconfdir
=/etc
55 CONFIGURE_OPTIONS
.32 += --libexecdir
=/usr
/lib
56 CONFIGURE_OPTIONS
.64 += --libexecdir
=/usr
/lib
/$(MACH64
)
57 CONFIGURE_OPTIONS
+= --disable-examples
58 CONFIGURE_OPTIONS
+= --enable-external
59 CONFIGURE_OPTIONS
+= --enable-opengl
60 CONFIGURE_OPTIONS
+= --disable-gles2
61 CONFIGURE_OPTIONS
+= --disable-egl
62 CONFIGURE_OPTIONS
+= --with-default-audiosrc
=autoaudiosrc
63 CONFIGURE_OPTIONS
+= --with-default-audiosink
=autoaudiosink
64 CONFIGURE_OPTIONS
+= --with-default-videosink
=autovideosink
66 # CFLAGS are not passed to compiler when g-ir-scanner is used
67 COMPONENT_BUILD_ENV
+= CFLAGS
="$(CFLAGS)"
68 COMPONENT_BUILD_ENV
+= CXXFLAGS
="$(CXXFLAGS)"
69 COMPONENT_INSTALL_ENV
+= CFLAGS
="$(CFLAGS)"
70 COMPONENT_INSTALL_ENV
+= CXXFLAGS
="$(CXXFLAGS)"
72 COMPONENT_INSTALL_ENV
+= GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
=1
74 build
: $(BUILD_32_and_64
)
76 install: $(INSTALL_32_and_64
)
78 test: $(TEST_32_and_64
)
80 REQUIRED_PACKAGES
+= audio
/faac
81 REQUIRED_PACKAGES
+= audio
/faad2
82 REQUIRED_PACKAGES
+= compress
/bzip2
83 REQUIRED_PACKAGES
+= image
/library
/libjpeg8-turbo
84 REQUIRED_PACKAGES
+= image
/library
/libpng16
85 REQUIRED_PACKAGES
+= image
/library
/librsvg
86 REQUIRED_PACKAGES
+= image
/library
/openjpeg
87 REQUIRED_PACKAGES
+= library
/audio
/gstreamer1
88 REQUIRED_PACKAGES
+= library
/audio
/gstreamer1
/plugin
/base
89 REQUIRED_PACKAGES
+= library
/audio
/libdca
90 REQUIRED_PACKAGES
+= library
/audio
/libgsm
91 REQUIRED_PACKAGES
+= library
/audio
/libmpcdec
92 REQUIRED_PACKAGES
+= library
/audio
/openal
93 REQUIRED_PACKAGES
+= library
/desktop
/cairo
94 REQUIRED_PACKAGES
+= library
/desktop
/gtk3
95 REQUIRED_PACKAGES
+= library
/glib2
96 REQUIRED_PACKAGES
+= library
/graphics
/libvdpau
97 REQUIRED_PACKAGES
+= library
/libofa
98 REQUIRED_PACKAGES
+= library
/libsndfile
99 REQUIRED_PACKAGES
+= library
/libwebp
100 REQUIRED_PACKAGES
+= library
/libxml2
101 REQUIRED_PACKAGES
+= library
/neon
102 REQUIRED_PACKAGES
+= library
/nettle
103 REQUIRED_PACKAGES
+= library
/opus
104 REQUIRED_PACKAGES
+= library
/security
/openssl
105 REQUIRED_PACKAGES
+= library
/video
/libass
106 REQUIRED_PACKAGES
+= library
/video
/libdvdnav
107 REQUIRED_PACKAGES
+= library
/video
/libdvdread
108 REQUIRED_PACKAGES
+= library
/video
/libmms
109 REQUIRED_PACKAGES
+= library
/video
/libschroedinger
110 REQUIRED_PACKAGES
+= system
/library
111 REQUIRED_PACKAGES
+= system
/library
/math
112 REQUIRED_PACKAGES
+= system
/library
/orc
113 REQUIRED_PACKAGES
+= video
/rtmpdump
114 REQUIRED_PACKAGES
+= web
/curl
115 REQUIRED_PACKAGES
+= x11
/library
/libdrm
116 REQUIRED_PACKAGES
+= x11
/library
/libx11