blob: c464131826a28a30e40f53b331d038dde814f2c3 (
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
|
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := gst-plugins-good
$(PKG)_WEBSITE := https://gstreamer.freedesktop.org/modules/gst-plugins-good.html
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.12.2
$(PKG)_CHECKSUM := 5591ee7208ab30289a30658a82b76bf87169c927572d9b794f3a41ed48e1ee96
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz
$(PKG)_URL := https://gstreamer.freedesktop.org/src/$(PKG)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc cairo flac gdk-pixbuf glib gst-plugins-base gstreamer jpeg libcaca \
liboil libpng libshout libsoup libvpx libxml2 speex taglib wavpack
$(PKG)_UPDATE = $(subst gstreamer/refs,gst-plugins-good/refs,$(gstreamer_UPDATE))
define $(PKG)_BUILD
# The value for WAVE_FORMAT_DOLBY_AC3_SPDIF comes from vlc and mplayer:
# https://www.videolan.org/developers/vlc/doc/doxygen/html/vlc__codecs_8h-source.html
# https://lists.mplayerhq.hu/pipermail/mplayer-cvslog/2004-August/019283.html
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
$(MXE_CONFIGURE_OPTS) \
--disable-debug \
--disable-examples \
--disable-aalib \
$(if $(BUILD_SHARED), --disable-shout2) \
--disable-x
$(MAKE) -C '$(BUILD_DIR)' -j $(JOBS) CFLAGS='-DWAVE_FORMAT_DOLBY_AC3_SPDIF=0x0092'
$(MAKE) -C '$(BUILD_DIR)' -j 1 install CFLAGS='-DWAVE_FORMAT_DOLBY_AC3_SPDIF=0x0092'
# some .dlls are installed to lib - no obvious way to change
$(if $(BUILD_SHARED),
$(INSTALL) -d '$(PREFIX)/$(TARGET)/bin/gstreamer-1.0'
mv -vf '$(PREFIX)/$(TARGET)/lib/gstreamer-1.0/'*.dll '$(PREFIX)/$(TARGET)/bin/gstreamer-1.0/'
)
endef
|