caead1276f
GStreamer is a library that allows the construction of graphs of media-handling components, ranging from simple Ogg/Vorbis playback to complex audio (mixing) and video (non-linear editing) processing. Applications can take advantage of advances in codec and filter technology transparently. Developers can add new codecs and filters by writing a simple plugin with a clean, generic interface. GStreamer is released under the LGPL. This package is part of the 'base' plugins for GStreamer. It provides a set of must-have plugins.
84 lines
3.1 KiB
Makefile
84 lines
3.1 KiB
Makefile
# $NetBSD: plugins.mk,v 1.1 2012/11/29 08:22:29 ryoon Exp $
|
|
#
|
|
# This file is shared across the gst-plugins-{base,good} packages to
|
|
# simplify their code. It provides a framework to write simple packages
|
|
# providing individual plugins; note that these packages must not include
|
|
# this file, but use the correct Makefile.common instead.
|
|
#
|
|
|
|
DISTNAME= gst-plugins-${GST_PLUGINS1_TYPE}-${GST_PLUGINS1_VER}
|
|
PKGNAME= ${DISTNAME:S/plugins/plugins1/}
|
|
CATEGORIES= multimedia gnome
|
|
MASTER_SITES= http://gstreamer.freedesktop.org/src/gst-plugins-${GST_PLUGINS1_TYPE}/
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://gstreamer.freedesktop.org/
|
|
COMMENT= Open source multimedia framework -
|
|
|
|
DISTINFO_FILE= ${.CURDIR}/../../multimedia/gst-plugins1-${GST_PLUGINS1_TYPE}/distinfo
|
|
FILESDIR= ${.CURDIR}/../../multimedia/gst-plugins1-${GST_PLUGINS1_TYPE}/files
|
|
PATCHDIR= ${.CURDIR}/../../multimedia/gst-plugins1-${GST_PLUGINS1_TYPE}/patches
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_TOOLS+= gmake pkg-config
|
|
USE_LIBTOOL= yes
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
CONFIGURE_ARGS+= --disable-examples
|
|
CONFIGURE_ARGS+= --disable-experimental
|
|
CONFIGURE_ARGS+= --disable-debug
|
|
CONFIGURE_ARGS+= --disable-valgrind
|
|
CONFIGURE_ARGS+= --enable-external
|
|
CONFIGURE_ARGS+= --enable-nls
|
|
CONFIGURE_ARGS+= --enable-rpath
|
|
CONFIGURE_ARGS+= --with-html-dir=${PREFIX}/share/doc/gst-plugins-0.10
|
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
.if !empty(PKGSRC_COMPILER:Msunpro)
|
|
# SunPro cc understands __func__ but CC does not, so disable explicitly.
|
|
CONFIGURE_ENV+= have_func=no
|
|
.endif
|
|
|
|
# A package building a single plugin of gst-plugins1 has to include this
|
|
# file and define the following variables:
|
|
# GST_PLUGINS1_NAME - The name of the plugin, to be added to the package
|
|
# name and the comment.
|
|
# GST_PLUGINS1_DIRS - The directory where the plugin resides; a relative
|
|
# path from WRKSRC.
|
|
# GST_PLUGINS1_FLAGS - The name of the flag used to enable the plugin.
|
|
# Defaults to GST_PLUGINS1_NAME.
|
|
.if defined(GST_PLUGINS1_NAME) && !empty(GST_PLUGINS1_NAME)
|
|
PKGNAME:= ${PKGNAME:S/${GST_PLUGINS1_TYPE}/${GST_PLUGINS1_NAME}/}
|
|
COMMENT+= ${GST_PLUGINS1_NAME} plugin
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
GST_PLUGINS1_FLAGS?= ${GST_PLUGINS1_NAME}
|
|
GST_PLUGINS1_DIRS?= non-existent
|
|
|
|
. for _f_ in ${GST_PLUGINS1_FLAGS}
|
|
CONFIGURE_ARGS:= ${CONFIGURE_ARGS:S/--disable-${_f_}/--enable-${_f_}/}
|
|
. endfor
|
|
|
|
BUILD_DIRS= ${GST_PLUGINS1_DIRS}
|
|
INSTALL_DIRS= ${GST_PLUGINS1_DIRS}
|
|
|
|
# Fix paths to already installed libraries (by the gst-plugins package).
|
|
SUBST_CLASSES+= libs
|
|
SUBST_MESSAGE.libs= Fixing path to dependent libraries.
|
|
SUBST_STAGE.libs= pre-configure
|
|
SUBST_FILES.libs=
|
|
. for _d_ in ${GST_PLUGINS1_DIRS}
|
|
SUBST_FILES.libs+= ${_d_}/Makefile.in
|
|
. endfor
|
|
SUBST_SED.libs= -e 's|$$(top_builddir)/gst-libs/gst/.*/libgst|${BUILDLINK_PREFIX.gst-plugins1-${GST_PLUGINS1_TYPE}}/lib/libgst|g'
|
|
|
|
.include "../../multimedia/gst-plugins1-${GST_PLUGINS1_TYPE}/buildlink3.mk"
|
|
.endif
|
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
.include "../../devel/glib2/buildlink3.mk"
|
|
.include "../../multimedia/gstreamer1/buildlink3.mk"
|