You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.3 KiB
36 lines
1.3 KiB
# This file is part of MXE. See LICENSE.md for licensing information.
|
|
|
|
PKG := gstreamer
|
|
$(PKG)_WEBSITE := https://gstreamer.freedesktop.org/modules/gstreamer.html
|
|
$(PKG)_IGNORE :=
|
|
$(PKG)_VERSION := 1.16.0
|
|
$(PKG)_CHECKSUM := 0e8e2f7118be437cba879353970cf83c2acced825ecb9275ba05d9186ef07c00
|
|
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
|
|
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz
|
|
$(PKG)_URL := https://gstreamer.freedesktop.org/src/$(PKG)/$($(PKG)_FILE)
|
|
$(PKG)_DEPS := cc glib libxml2 pthreads
|
|
|
|
define $(PKG)_UPDATE
|
|
$(WGET) -q -O- 'https://cgit.freedesktop.org/gstreamer/gstreamer/refs/tags' | \
|
|
$(SED) -n "s,.*<a href='[^']*/tag/?h=[^0-9]*\\([0-9]\..[02468]\.[0-9][^']*\\)'.*,\\1,p" | \
|
|
$(SORT) -Vr | \
|
|
head -1
|
|
endef
|
|
|
|
define $(PKG)_BUILD
|
|
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
|
|
$(MXE_CONFIGURE_OPTS) \
|
|
--disable-debug \
|
|
--disable-check \
|
|
--disable-tests \
|
|
--disable-examples
|
|
$(MAKE) -C '$(BUILD_DIR)' -j $(JOBS)
|
|
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
|
|
|
|
# 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
|