2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2010-02-21 20:52:21 +00:00
|
|
|
|
|
|
|
PKG := gstreamer
|
2017-02-19 15:16:32 +00:00
|
|
|
$(PKG)_WEBSITE := https://gstreamer.freedesktop.org/modules/gstreamer.html
|
2010-02-21 20:52:21 +00:00
|
|
|
$(PKG)_IGNORE :=
|
2020-06-21 14:43:09 +01:00
|
|
|
$(PKG)_VERSION := 1.16.2
|
|
|
|
$(PKG)_CHECKSUM := e3f044246783fd685439647373fa13ba14f7ab0b346eadd06437092f8419e94e
|
2010-02-21 20:52:21 +00:00
|
|
|
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
|
2012-06-18 21:05:59 +01:00
|
|
|
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz
|
2017-03-05 03:41:39 +00:00
|
|
|
$(PKG)_URL := https://gstreamer.freedesktop.org/src/$(PKG)/$($(PKG)_FILE)
|
2017-11-25 13:36:07 +00:00
|
|
|
$(PKG)_DEPS := cc glib libxml2 pthreads
|
2010-02-21 20:52:21 +00:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2017-03-05 03:41:39 +00:00
|
|
|
$(WGET) -q -O- 'https://cgit.freedesktop.org/gstreamer/gstreamer/refs/tags' | \
|
2017-12-16 11:52:14 +00:00
|
|
|
$(SED) -n "s,.*<a href='[^']*/tag/?h=[^0-9]*\\([0-9]\..[02468]\.[0-9][^']*\\)'.*,\\1,p" | \
|
2014-05-11 12:03:02 +01:00
|
|
|
$(SORT) -Vr | \
|
2010-02-23 13:08:36 +00:00
|
|
|
head -1
|
2010-02-21 20:52:21 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
2017-02-19 15:16:32 +00:00
|
|
|
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
|
2016-01-09 03:46:22 +00:00
|
|
|
$(MXE_CONFIGURE_OPTS) \
|
2010-02-21 20:52:21 +00:00
|
|
|
--disable-debug \
|
|
|
|
--disable-check \
|
|
|
|
--disable-tests \
|
2017-07-20 11:31:36 +01:00
|
|
|
--disable-examples
|
2017-02-19 15:16:32 +00:00
|
|
|
$(MAKE) -C '$(BUILD_DIR)' -j $(JOBS)
|
|
|
|
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
|
2014-04-06 14:18:15 +01:00
|
|
|
|
2016-01-09 03:46:22 +00:00
|
|
|
# some .dlls are installed to lib - no obvious way to change
|
2017-01-02 15:44:45 +00:00
|
|
|
$(if $(BUILD_SHARED),
|
2017-03-05 11:05:22 +00:00
|
|
|
$(INSTALL) -d '$(PREFIX)/$(TARGET)/bin/gstreamer-1.0'
|
|
|
|
mv -vf '$(PREFIX)/$(TARGET)/lib/gstreamer-1.0/'*.dll '$(PREFIX)/$(TARGET)/bin/gstreamer-1.0/'
|
2017-01-02 15:44:45 +00:00
|
|
|
)
|
2016-01-09 03:46:22 +00:00
|
|
|
endef
|