mxe/src/gstreamer.mk

36 lines
1.3 KiB
Makefile
Raw Permalink Normal View History

# This file is part of MXE. See LICENSE.md for licensing information.
PKG := gstreamer
2017-02-19 15:16:32 +00:00
$(PKG)_WEBSITE := https://gstreamer.freedesktop.org/modules/gstreamer.html
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.16.2
$(PKG)_CHECKSUM := e3f044246783fd685439647373fa13ba14f7ab0b346eadd06437092f8419e94e
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(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)
$(PKG)_DEPS := cc glib libxml2 pthreads
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" | \
$(SORT) -Vr | \
head -1
endef
define $(PKG)_BUILD
2017-02-19 15:16:32 +00:00
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
$(MXE_CONFIGURE_OPTS) \
--disable-debug \
--disable-check \
--disable-tests \
--disable-examples
2017-02-19 15:16:32 +00:00
$(MAKE) -C '$(BUILD_DIR)' -j $(JOBS)
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
# some .dlls are installed to lib - no obvious way to change
2017-01-02 15:44:45 +00:00
$(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/'
2017-01-02 15:44:45 +00:00
)
endef