#
|
# This file and its contents are supplied under the terms of the
|
# Common Development and Distribution License ("CDDL"), version 1.0.
|
# You may only use this file in accordance with the terms of version
|
# 1.0 of the CDDL.
|
#
|
# A full copy of the text of the CDDL should have accompanied this
|
# source. A copy of the CDDL is also available via the Internet at
|
# http://www.illumos.org/license/CDDL.
|
#
|
|
#
|
# Copyright 2016-2018 Aurelien Larcher. All rights reserved.
|
# Copyright 2019 Michal Nowak
|
# Copyright 2021 Tim Mooney. All rights reserved.
|
# Copyright 2022-2023 Niklas Poslovski
|
#
|
|
BUILD_BITS= 64
|
BUILD_STYLE= meson
|
include ../../../make-rules/shared-macros.mk
|
|
COMPONENT_NAME= gstreamer1
|
COMPONENT_VERSION= 1.22.7
|
COMPONENT_SUMMARY= GNOME streaming media framework
|
COMPONENT_PROJECT_URL= https://gstreamer.freedesktop.org/
|
COMPONENT_SRC_NAME= gstreamer
|
COMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
|
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
|
COMPONENT_ARCHIVE_HASH= sha256:01e42c6352a06bdfa4456e64b06ab7d98c5c487a25557c761554631cbda64217
|
COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/src/$(COMPONENT_SRC_NAME)/$(COMPONENT_ARCHIVE)
|
COMPONENT_FMRI= library/audio/$(COMPONENT_NAME)
|
COMPONENT_CLASSIFICATION= System/Multimedia Libraries
|
COMPONENT_LICENSE= LGPLv2.1
|
COMPONENT_LICENSE_FILE= COPYING
|
|
include $(WS_MAKE_RULES)/common.mk
|
|
PATH = $(PATH.gnu)
|
|
CFLAGS += -I/usr/X11/include
|
|
CONFIGURE_OPTIONS += --sysconfdir=/etc
|
CONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR.$(BITS))
|
CONFIGURE_OPTIONS += -Dexamples=disabled
|
CONFIGURE_OPTIONS.32 += -Dintrospection=disabled
|
CONFIGURE_OPTIONS.64 += -Dintrospection=enabled
|
CONFIGURE_OPTIONS += -Dpackage-origin="https://github.com/OpenIndiana/oi-userland"
|
|
# CFLAGS are not passed to compiler when g-ir-scanner is used
|
COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
|
COMPONENT_BUILD_ENV += CC="$(CC)"
|
COMPONENT_INSTALL_ENV += CFLAGS="$(CFLAGS)"
|
COMPONENT_INSTALL_ENV += CC="$(CC)"
|
|
unexport SHELLOPTS
|
|
# As test results keep only everything betweeni the lines containing Ok: and Timeout:
|
COMPONENT_TEST_TRANSFORMS += \
|
'-n ' \
|
'-e "/^Ok:/,/^Timeout:/p" '
|
|
# not picked up by REQUIRED_PACKAGES but probably still needed
|
# for the 64 bit build to do introspection
|
REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
|
|
# gmp & gsl needed only for the test suite
|
TEST_REQUIRED_PACKAGES += library/gmp
|
TEST_REQUIRED_PACKAGES += developer/gsl
|
|
# Auto-generated dependencies
|
REQUIRED_PACKAGES += library/glib2
|
REQUIRED_PACKAGES += system/library
|
REQUIRED_PACKAGES += system/library/math
|