mxe/src/gstreamer.mk

38 lines
1.3 KiB
Makefile
Raw 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 :=
2017-02-19 15:16:32 +00:00
$(PKG)_VERSION := 1.12.2
$(PKG)_CHECKSUM := 9fde3f39a2ea984f9e07ce09250285ce91f6e3619d186889f75b5154ecf994ba
$(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 := gcc 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-02-19 15:16:32 +00:00
$(SED) -n "s,.*<a href='[^']*/tag/?id=[^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
--mandir='$(BUILD_DIR)/sink' \
--docdir='$(BUILD_DIR)/sink' \
--with-html-dir='$(BUILD_DIR)/sink'
$(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),
mv -vf '$(PREFIX)/$(TARGET)/lib/gstreamer-1.0/'*.dll '$(PREFIX)/$(TARGET)/bin/'
)
endef