pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/gst-plugins Update to 0.8.0nb2:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5c4451032e71
branches:  trunk
changeset: 472187:5c4451032e71
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Tue Apr 06 09:36:28 2004 +0000

description:
Update to 0.8.0nb2:
- Do not install nor build any plugins that require external libraries.
  This keeps this package small, makes it modular and will avoid the need
  of "fee-based-commercial-use" licenses while building GNOME.
- Split the Makefile and make it easy to create packages for individual
  plugins by using Makefile.common.
- Use gstreamer/plugins.mk to automatically register installed plugins in
  the plugins database.
- Fix the regex used to export symbols to something that matches better
  the original one.
- As a result of the update of gstreamer to 0.8.0nb1 (which requires a
  glib2 with the RTLD_GLOBAL fix), plugins work fine now.

diffstat:

 multimedia/gst-plugins/DESCR            |   12 ++-
 multimedia/gst-plugins/Makefile         |   61 +-----------
 multimedia/gst-plugins/Makefile.common  |  149 ++++++++++++++++++++++++++++++++
 multimedia/gst-plugins/PLIST            |  101 +---------------------
 multimedia/gst-plugins/buildlink3.mk    |   10 +-
 multimedia/gst-plugins/distinfo         |    4 +-
 multimedia/gst-plugins/patches/patch-aa |    4 +-
 7 files changed, 179 insertions(+), 162 deletions(-)

diffs (truncated from 547 to 300 lines):

diff -r 2436877f891f -r 5c4451032e71 multimedia/gst-plugins/DESCR
--- a/multimedia/gst-plugins/DESCR      Tue Apr 06 09:30:01 2004 +0000
+++ b/multimedia/gst-plugins/DESCR      Tue Apr 06 09:36:28 2004 +0000
@@ -1,2 +1,10 @@
-  This package contains a set of multimedia plugins for gstreamer, a
-framework for streaming media.
+GStreamer is a library that allows the construction of graphs of
+media-handling components, ranging from simple mp3 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.
+
+This package is part of gst-plugins, which contains a set of multimedia
+plugins for GStreamer.
diff -r 2436877f891f -r 5c4451032e71 multimedia/gst-plugins/Makefile
--- a/multimedia/gst-plugins/Makefile   Tue Apr 06 09:30:01 2004 +0000
+++ b/multimedia/gst-plugins/Makefile   Tue Apr 06 09:36:28 2004 +0000
@@ -1,72 +1,23 @@
-# $NetBSD: Makefile,v 1.16 2004/04/03 21:36:23 jmmv Exp $
+# $NetBSD: Makefile,v 1.17 2004/04/06 09:36:28 jmmv Exp $
 #
 
-DISTNAME=              gst-plugins-0.8.0
-PKGREVISION=           1
-CATEGORIES=            multimedia gnome
-MASTER_SITES=          ${MASTER_SITE_GNOME:=sources/gst-plugins/0.8/}
-EXTRACT_SUFX=          .tar.bz2
+.include "Makefile.common"
 
-MAINTAINER=            rh%NetBSD.org@localhost
-HOMEPAGE=              http://www.gstreamer.net/
-COMMENT=               gstreamer plugins
+PKGREVISION=           2
 
-BUILD_DEPENDS+=                nasm>=0.98:../../devel/nasm
-BUILDLINK_DEPENDS.png+=png>=1.2.5nb3   # requires libpng12.pc in 1.2.5nb3+
+COMMENT+=              base plugins
 
-USE_BUILDLINK3=                yes
-USE_PKGLOCALEDIR=      yes
-USE_GNU_TOOLS+=                make
-USE_X11=               yes
-USE_LIBTOOL=           yes
 PKGCONFIG_OVERRIDE+=   pkgconfig/gstreamer-gconf.pc.in
 PKGCONFIG_OVERRIDE+=   pkgconfig/gstreamer-interfaces.pc.in
 PKGCONFIG_OVERRIDE+=   pkgconfig/gstreamer-media-info.pc.in
 PKGCONFIG_OVERRIDE+=   pkgconfig/gstreamer-libs.pc.in
 PKGCONFIG_OVERRIDE+=   pkgconfig/gstreamer-play.pc.in
 PKGCONFIG_OVERRIDE+=   pkgconfig/gstreamer-plugins.pc.in
-GNU_CONFIGURE=         yes
 
-CPPFLAGS+=             -I${PREFIX}/include/cdparanoia
-CONFIGURE_ARGS+=       --disable-arts
-CONFIGURE_ARGS+=       --disable-artsc
-CONFIGURE_ARGS+=       --disable-ffmpeg
-CONFIGURE_ARGS+=       --disable-mpeg2dec
-CONFIGURE_ARGS+=       --disable-qcam
-CONFIGURE_ENV+=                GCONF_SCHEMA_FILE_DIR="${PREFIX}/share/gconf/schemas/"
-MAKE_ENV+=             GCONF_SCHEMA_FILE_DIR="${PREFIX}/share/gconf/schemas/"
+CONFIGURE_ARGS:=       ${CONFIGURE_ARGS:S/--disable-gconf/--enable-gconf/}
+CONFIGURE_ARGS:=       ${CONFIGURE_ARGS:S/--disable-gconftool/--enable-gconftool/}
 
 GCONF2_SCHEMAS=                gstreamer-0.8.schemas
 
-SUBST_CLASSES+=                devoss
-SUBST_MESSAGE.devoss=  "Fixing path to OSS audio device."
-SUBST_STAGE.devoss=    pre-configure
-SUBST_FILES.devoss=    sys/oss/*.c
-SUBST_SED.devoss=      -e 's|/dev/dsp|${DEVOSSAUDIO}|g'
-
-.include "../../audio/cdparanoia/buildlink3.mk"
-.include "../../audio/flac/buildlink3.mk"
-.include "../../audio/gsm/buildlink3.mk"
-.include "../../audio/libid3tag/buildlink3.mk"
-.include "../../audio/lame/buildlink3.mk"
-.include "../../audio/liba52/buildlink3.mk"
-.include "../../audio/libmikmod/buildlink3.mk"
-.include "../../audio/libsidplay/buildlink3.mk"
-.include "../../audio/libsndfile/buildlink3.mk"
-.include "../../audio/libvorbis/buildlink3.mk"
-.include "../../audio/libmad/buildlink3.mk"
 .include "../../devel/GConf2/schemas.mk"
-.include "../../devel/SDL/buildlink3.mk"
-.include "../../devel/pkgconfig/buildlink3.mk"
-.include "../../graphics/aalib/buildlink3.mk"
-.include "../../graphics/freetype2/buildlink3.mk"
-.include "../../graphics/hermes/buildlink3.mk"
-.include "../../graphics/png/buildlink3.mk"
-.include "../../graphics/swfdec/buildlink3.mk"
-.include "../../multimedia/libdvdread/buildlink3.mk"
-.include "../../multimedia/gstreamer/buildlink3.mk"
-.include "../../multimedia/mjpegtools/buildlink3.mk"
-.include "../../multimedia/openquicktime/buildlink3.mk"
-.include "../../www/libghttp/buildlink3.mk"
-.include "../../mk/ossaudio.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 2436877f891f -r 5c4451032e71 multimedia/gst-plugins/Makefile.common
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/gst-plugins/Makefile.common    Tue Apr 06 09:36:28 2004 +0000
@@ -0,0 +1,149 @@
+# $NetBSD: Makefile.common,v 1.1 2004/04/06 09:36:28 jmmv Exp $
+#
+
+DISTNAME=              gst-plugins-0.8.0
+CATEGORIES=            multimedia gnome
+MASTER_SITES=          ${MASTER_SITE_GNOME:=sources/gst-plugins/0.8/}
+EXTRACT_SUFX=          .tar.bz2
+
+MAINTAINER=            rh%NetBSD.org@localhost
+HOMEPAGE=              http://www.gstreamer.net/
+COMMENT=               GStreamer -
+
+DISTINFO_FILE=         ${.CURDIR}/../../multimedia/gst-plugins/distinfo
+FILESDIR=              ${.CURDIR}/../../multimedia/gst-plugins/files
+PATCHDIR=              ${.CURDIR}/../../multimedia/gst-plugins/patches
+
+BUILD_DEPENDS+=                nasm>=0.98.38:../../devel/nasm
+
+GNU_CONFIGURE=         yes
+USE_BUILDLINK3=                yes
+USE_GNU_TOOLS+=                make
+USE_LIBTOOL=           yes
+USE_PKGLOCALEDIR=      yes
+
+CONFIGURE_ARGS+=       --disable-gconf
+CONFIGURE_ARGS+=       --disable-gconftool
+CONFIGURE_ARGS+=       --disable-examples
+CONFIGURE_ARGS+=       --disable-tests
+
+# Disable all drivers by default.
+.for driver in a52dec \
+               aalib \
+               aalibtest \
+               alsa \
+               arts \
+               artsc \
+               artstest \
+               audiofile \
+               cdparanoia \
+               cdrom \
+               divx \
+               dvdnav \
+               dvdread \
+               dxr3 \
+               esd \
+               esdtest \
+               faac \
+               faad \
+               flac \
+               freetypetest \
+               gdk_pixbuf \
+               gnome_vfs \
+               gsm \
+               hermes \
+               ivorbis \
+               jack \
+               jpeg \
+               ladspa \
+               lame \
+               lcs \
+               libcaca \
+               libdv \
+               libfame \
+               libfametest \
+               libmikmodtest \
+               libpng \
+               libpng \
+               librfb \
+               mad \
+               mikmod \
+               mpeg2dec \
+               mpeg2enc \
+               mplex \
+               musicbrainz \
+               nas \
+               ogg \
+               oggtest \
+               oss \
+               pango \
+               qcam \
+               raw1394 \
+               sdl \
+               sdltest \
+               shout \
+               shout2 \
+               shout2test \
+               sidplay \
+               smoothwave \
+               sndfile \
+               speex \
+               swfdec \
+               tarkin \
+               theora \
+               v4l \
+               v4l2 \
+               vcd \
+               vorbis \
+               vorbistest \
+               x \
+               xshm \
+               xvid \
+               xvideo
+CONFIGURE_ARGS+=       --disable-${driver}
+.endfor
+.undef driver
+
+# A package building a single plugin of gst-plugins has to include this
+# file and define the following variables:
+#    GST_PLUGINS_NAME - The name of the plugin, to be added to the package
+#                       name and the comment.
+#    GST_PLUGINS_DIR  - The directory where the plugin resides; a relative
+#                       path from WRKSRC.
+#    GST_PLUGINS_FLAG - The name of the flag used to enable the plugin.
+#                       Defaults to GST_PLUGINS_NAME.
+.if defined(GST_PLUGINS_NAME) && !empty(GST_PLUGINS_NAME)
+PKGNAME=               ${DISTNAME:S/plugins/plugins-${GST_PLUGINS_NAME}/}
+COMMENT+=              ${GST_PLUGINS_NAME} plugin
+
+GST_PLUGINS_FLAG?=     ${GST_PLUGINS_NAME}
+GST_PLUGINS_DIR?=      non-existent
+
+CONFIGURE_ARGS:=       ${CONFIGURE_ARGS:S/--disable-${GST_PLUGINS_FLAG}/--enable-${GST_PLUGINS_FLAG}/}
+
+BUILD_DIRS=            ${WRKSRC}/${GST_PLUGINS_DIR}
+INSTALL_DIRS=          ${WRKSRC}/${GST_PLUGINS_DIR}
+
+# Generate a description automatically.
+DESCR_SRC=             ${.CURDIR}/../../multimedia/gst-plugins/DESCR
+DESCR_SRC+=            ${WRKDIR}/.gen_descr
+
+# 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=      ${GST_PLUGINS_DIR}/Makefile.in
+SUBST_SED.libs=                -e 's|$$(top_builddir)/gst-libs/gst/libgst|${BUILDLINK_PREFIX.gst-plugins}/lib/libgst|g'
+
+post-build:
+       @${ECHO} "" >${WRKDIR}/.gen_descr
+       @${ECHO} "This package provides the ${GST_PLUGINS_NAME} plugin for GStreamer." >>${WRKDIR}/.gen_descr
+
+.include "../../multimedia/gst-plugins/buildlink3.mk"
+.endif
+
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../devel/pkgconfig/buildlink3.mk"
+.include "../../multimedia/gstreamer/plugins.mk"
diff -r 2436877f891f -r 5c4451032e71 multimedia/gst-plugins/PLIST
--- a/multimedia/gst-plugins/PLIST      Tue Apr 06 09:30:01 2004 +0000
+++ b/multimedia/gst-plugins/PLIST      Tue Apr 06 09:36:28 2004 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2004/04/03 11:53:33 jmmv Exp $
+@comment $NetBSD: PLIST,v 1.4 2004/04/06 09:36:28 jmmv Exp $
 bin/gst-launch-ext-0.8
 bin/gst-visualise-0.8
 include/gstreamer-0.8/gst/audio/audio.h
@@ -29,14 +29,6 @@
 include/gstreamer-0.8/gst/tuner/tunernorm.h
 include/gstreamer-0.8/gst/video/video.h
 include/gstreamer-0.8/gst/video/videosink.h
-include/gstreamer-0.8/gst/xoverlay/xoverlay.h
-include/gstreamer-0.8/gst/xwindowlistener/xwindowlistener.h
-lib/gstreamer-0.8/libgsta52dec.a
-lib/gstreamer-0.8/libgsta52dec.la
-lib/gstreamer-0.8/libgsta52dec.so
-lib/gstreamer-0.8/libgstaasink.a
-lib/gstreamer-0.8/libgstaasink.la
-lib/gstreamer-0.8/libgstaasink.so
 lib/gstreamer-0.8/libgstac3parse.a
 lib/gstreamer-0.8/libgstac3parse.la
 lib/gstreamer-0.8/libgstac3parse.so
@@ -55,9 +47,6 @@
 lib/gstreamer-0.8/libgstaudioconvert.a
 lib/gstreamer-0.8/libgstaudioconvert.la
 lib/gstreamer-0.8/libgstaudioconvert.so
-lib/gstreamer-0.8/libgstaudiofile.a
-lib/gstreamer-0.8/libgstaudiofile.la
-lib/gstreamer-0.8/libgstaudiofile.so
 lib/gstreamer-0.8/libgstaudiofilter.a
 lib/gstreamer-0.8/libgstaudiofilter.la
 lib/gstreamer-0.8/libgstaudiofilter.so
@@ -70,12 +59,6 @@
 lib/gstreamer-0.8/libgstavi.a
 lib/gstreamer-0.8/libgstavi.la
 lib/gstreamer-0.8/libgstavi.so
-lib/gstreamer-0.8/libgstcdparanoia.a
-lib/gstreamer-0.8/libgstcdparanoia.la
-lib/gstreamer-0.8/libgstcdparanoia.so
-lib/gstreamer-0.8/libgstcdplayer.a
-lib/gstreamer-0.8/libgstcdplayer.la
-lib/gstreamer-0.8/libgstcdplayer.so
 lib/gstreamer-0.8/libgstcdxaparse.a
 lib/gstreamer-0.8/libgstcdxaparse.la
 lib/gstreamer-0.8/libgstcdxaparse.so
@@ -91,18 +74,12 @@
 lib/gstreamer-0.8/libgstdeinterlace.a



Home | Main Index | Thread Index | Old Index