lol

merge #7299: gstreamer: Darwin fixes

Solved trivial merge conflicts.

+122 -54
+13 -2
pkgs/applications/audio/cdparanoia/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "cdparanoia-III-10.2"; 5 - 5 + 6 6 src = fetchurl { 7 7 url = "http://downloads.xiph.org/releases/cdparanoia/${name}.src.tgz"; 8 8 sha256 = "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80"; 9 9 }; 10 10 11 11 preConfigure = "unset CC"; 12 - 12 + 13 + patches = stdenv.lib.optionals stdenv.isDarwin [ 14 + (fetchurl { 15 + url = "https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/osx_interface.patch"; 16 + sha1 = "c86e573f51e6d58d5f349b22802a7a7eeece9fcd"; 17 + }) 18 + (fetchurl { 19 + url = "https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/patch-paranoia_paranoia.c.10.4.diff"; 20 + sha1 = "d7dc121374df3b82e82adf544df7bf1eec377bdb"; 21 + }) 22 + ]; 23 + 13 24 meta = { 14 25 homepage = http://xiph.org/paranoia; 15 26 description = "A tool and library for reading digital audio from CDs";
+15 -4
pkgs/development/libraries/gstreamer/bad/default.nix
··· 5 5 , openjpeg, libopus, librsvg 6 6 , wildmidi, fluidsynth, libvdpau, wayland 7 7 , libwebp, xvidcore, gnutls 8 - , mesa 8 + , mesa, libintlOrEmpty 9 9 }: 10 10 11 11 assert faacSupport -> faac != null; 12 12 13 + let 14 + inherit (stdenv.lib) optional optionalString; 15 + in 13 16 stdenv.mkDerivation rec { 14 17 name = "gst-plugins-bad-1.4.5"; 15 18 ··· 23 26 a real live maintainer, or some actual wide use. 24 27 ''; 25 28 license = licenses.lgpl2Plus; 26 - platforms = platforms.linux; 29 + platforms = platforms.unix; 27 30 maintainers = with maintainers; [ iyzsong ]; 28 31 }; 29 32 ··· 39 42 faad2 libass libkate libmms 40 43 libmodplug mpeg2dec mpg123 41 44 openjpeg libopus librsvg 42 - wildmidi fluidsynth libvdpau wayland 45 + fluidsynth libvdpau 43 46 libwebp xvidcore gnutls mesa 44 - ] ++ stdenv.lib.optional faacSupport faac; 47 + ] 48 + ++ libintlOrEmpty 49 + ++ optional faacSupport faac 50 + ++ optional stdenv.isLinux wayland 51 + # wildmidi requires apple's OpenAL 52 + # TODO: package apple's OpenAL, fix wildmidi, include on Darwin 53 + ++ optional (!stdenv.isDarwin) wildmidi; 54 + 55 + LDFLAGS = optionalString stdenv.isDarwin "-lintl"; 45 56 }
+16 -5
pkgs/development/libraries/gstreamer/base/default.nix
··· 1 1 { stdenv, fetchurl, pkgconfig, python, gstreamer, gobjectIntrospection 2 2 , orc, alsaLib, libXv, pango, libtheora 3 - , cdparanoia, libvisual 3 + , cdparanoia, libvisual, libintlOrEmpty 4 4 }: 5 5 6 6 stdenv.mkDerivation rec { ··· 10 10 description = "Base plugins and helper libraries"; 11 11 homepage = "http://gstreamer.freedesktop.org"; 12 12 license = stdenv.lib.licenses.lgpl2Plus; 13 - platforms = stdenv.lib.platforms.linux; 13 + platforms = stdenv.lib.platforms.unix; 14 14 maintainers = with stdenv.lib.maintainers; [ iyzsong ]; 15 15 }; 16 16 ··· 24 24 ]; 25 25 26 26 buildInputs = [ 27 - orc alsaLib libXv pango libtheora 28 - cdparanoia libvisual 29 - ]; 27 + orc libXv pango libtheora cdparanoia 28 + ] 29 + ++ libintlOrEmpty 30 + ++ stdenv.lib.optional stdenv.isLinux alsaLib 31 + ++ stdenv.lib.optional (!stdenv.isDarwin) libvisual; 30 32 31 33 propagatedBuildInputs = [ gstreamer ]; 34 + 35 + configureFlags = if stdenv.isDarwin then [ 36 + # Does not currently build on Darwin 37 + "--disable-libvisual" 38 + # Undefined symbols _cdda_identify and _cdda_identify_scsi in cdparanoia 39 + "--disable-cdparanoia" 40 + ] else null; 41 + 42 + NIX_LDFLAGS = if stdenv.isDarwin then "-lintl" else null; 32 43 33 44 enableParallelBuilding = true; 34 45 }
+1 -1
pkgs/development/libraries/gstreamer/core/default.nix
··· 9 9 description = "Open source multimedia framework"; 10 10 homepage = "http://gstreamer.freedesktop.org"; 11 11 license = stdenv.lib.licenses.lgpl2Plus; 12 - platforms = stdenv.lib.platforms.linux; 12 + platforms = stdenv.lib.platforms.unix; 13 13 maintainers = with stdenv.lib.maintainers; [ iyzsong ]; 14 14 }; 15 15
+1 -1
pkgs/development/libraries/gstreamer/ges/default.nix
··· 9 9 description = "Library for creation of audio/video non-linear editors"; 10 10 homepage = "http://gstreamer.freedesktop.org"; 11 11 license = licenses.lgpl2Plus; 12 - platforms = platforms.linux; 12 + platforms = platforms.unix; 13 13 maintainers = with maintainers; [ iyzsong ]; 14 14 }; 15 15
+1 -1
pkgs/development/libraries/gstreamer/gnonlin/default.nix
··· 14 14 applications. It introduces the concept of a timeline. 15 15 ''; 16 16 license = licenses.lgpl2Plus; 17 - platforms = platforms.linux; 17 + platforms = platforms.unix; 18 18 maintainers = with maintainers; [ iyzsong ]; 19 19 }; 20 20
+12 -6
pkgs/development/libraries/gstreamer/good/default.nix
··· 3 3 , libv4l, libdv, libavc1394, libiec61883 4 4 , libvpx, speex, flac, taglib 5 5 , cairo, gdk_pixbuf, aalib, libcaca 6 - , libsoup, pulseaudio 6 + , libsoup, pulseaudio, libintlOrEmpty 7 7 }: 8 8 9 + let 10 + inherit (stdenv.lib) optionals optionalString; 11 + in 9 12 stdenv.mkDerivation rec { 10 13 name = "gst-plugins-good-1.4.5"; 11 14 ··· 18 21 code, LGPL or LGPL-compatible for the supporting library). 19 22 ''; 20 23 license = licenses.lgpl2Plus; 21 - platforms = platforms.linux; 24 + platforms = platforms.unix; 22 25 maintainers = with maintainers; [ iyzsong ]; 23 26 }; 24 27 ··· 31 34 32 35 buildInputs = [ 33 36 gst-plugins-base orc bzip2 34 - libv4l libdv libavc1394 libiec61883 35 - libvpx speex flac taglib 37 + libdv libvpx speex flac taglib 36 38 cairo gdk_pixbuf aalib libcaca 37 - libsoup pulseaudio 38 - ]; 39 + libsoup 40 + ] 41 + ++ libintlOrEmpty 42 + ++ optionals stdenv.isLinux [ libv4l pulseaudio libavc1394 libiec61883 ]; 43 + 44 + LDFLAGS = optionalString stdenv.isDarwin "-lintl"; 39 45 }
+7 -3
pkgs/development/libraries/gstreamer/legacy/gst-plugins-good/default.nix
··· 1 1 { fetchurl, stdenv, pkgconfig, gst_plugins_base, aalib, cairo 2 2 , flac, libjpeg, zlib, speex, libpng, libdv, libcaca, libvpx 3 3 , libiec61883, libavc1394, taglib, pulseaudio, gdk_pixbuf, orc 4 - , glib, gstreamer, bzip2, libsoup 4 + , glib, gstreamer, bzip2, libsoup, libintlOrEmpty 5 5 , # Whether to build no plugins that have external dependencies 6 6 # (except the PulseAudio plugin). 7 7 minimalDeps ? false ··· 23 23 configureFlags = "--enable-experimental --disable-oss"; 24 24 25 25 buildInputs = 26 - [ pkgconfig glib gstreamer gst_plugins_base pulseaudio ] 26 + [ pkgconfig glib gstreamer gst_plugins_base ] 27 + ++ stdenv.lib.optional stdenv.isLinux [ pulseaudio ] 28 + ++ libintlOrEmpty 27 29 ++ stdenv.lib.optionals (!minimalDeps) 28 30 [ aalib libcaca cairo libdv flac libjpeg libpng speex 29 31 taglib bzip2 libvpx gdk_pixbuf orc libsoup ]; 32 + 33 + NIX_LDFLAGS = if stdenv.isDarwin then "-lintl" else null; 30 34 31 35 enableParallelBuilding = true; 32 36 ··· 36 40 description = "`Good' plug-ins for GStreamer"; 37 41 38 42 maintainers = [stdenv.lib.maintainers.raskin]; 39 - platforms = stdenv.lib.platforms.linux; 43 + platforms = stdenv.lib.platforms.unix; 40 44 41 45 license = stdenv.lib.licenses.lgpl2Plus; 42 46 };
+5 -3
pkgs/development/libraries/gstreamer/legacy/gst-plugins-ugly/default.nix
··· 1 1 { fetchurl, stdenv, pkgconfig, glib, gstreamer, gst_plugins_base 2 - , libmad, libdvdread, libmpeg2, libcdio, a52dec, x264, orc }: 2 + , libmad, libdvdread, libmpeg2, libcdio, a52dec, x264, orc, libintlOrEmpty }: 3 3 4 4 stdenv.mkDerivation rec { 5 5 name = "gst-plugins-ugly-0.10.19"; ··· 13 13 }; 14 14 15 15 buildInputs = 16 - [ pkgconfig glib gstreamer gst_plugins_base libmad libdvdread a52dec x264 orc ]; 16 + [ pkgconfig glib gstreamer gst_plugins_base libmad libdvdread a52dec x264 orc ] ++ libintlOrEmpty; 17 + 18 + NIX_LDFLAGS = if stdenv.isDarwin then "-lintl" else null; 17 19 18 20 enableParallelBuilding = true; 19 21 ··· 23 25 description = "‘Ugly’ (potentially patent-encumbered) plug-ins for GStreamer"; 24 26 25 27 maintainers = [stdenv.lib.maintainers.raskin]; 26 - platforms = stdenv.lib.platforms.linux; 28 + platforms = stdenv.lib.platforms.unix; 27 29 28 30 license = stdenv.lib.licenses.lgpl2Plus; 29 31 };
+14
pkgs/development/libraries/gstreamer/legacy/gstreamer/darwin.patch
··· 1 + diff --git a/gst/gstdatetime.c b/gst/gstdatetime.c 2 + index 60f709f..cdc7e75 100644 3 + --- a/gst/gstdatetime.c 4 + +++ b/gst/gstdatetime.c 5 + @@ -21,8 +21,8 @@ 6 + #include "config.h" 7 + #endif 8 + 9 + -#include "glib-compat-private.h" 10 + #include "gst_private.h" 11 + +#include "glib-compat-private.h" 12 + #include "gstdatetime.h" 13 + #include <glib.h> 14 + #include <math.h>
+5
pkgs/development/libraries/gstreamer/legacy/gstreamer/default.nix
··· 16 16 17 17 patchPhase = '' 18 18 sed -i -e 's/^ /\t/' docs/gst/Makefile.in docs/libs/Makefile.in docs/plugins/Makefile.in 19 + '' 20 + + stdenv.lib.optionalString stdenv.isDarwin '' 21 + # Applying this patch manually to avoid a rebuild on Linux. Feel free to refactor later 22 + # See https://trac.macports.org/ticket/40783 for explanation of patch 23 + patch -p1 < ${./darwin.patch} 19 24 ''; 20 25 21 26 configureFlags = ''
+1 -1
pkgs/development/libraries/gstreamer/legacy/gstreamermm/default.nix
··· 25 25 homepage = http://www.gtkmm.org/; 26 26 license = stdenv.lib.licenses.lgpl2Plus; 27 27 maintainers = "Philip Lykke Carlsen <plcplc@gmail.com>"; 28 - platforms = stdenv.lib.platforms.linux; 28 + platforms = stdenv.lib.platforms.unix; 29 29 }; 30 30 31 31 }
+5 -3
pkgs/development/libraries/gstreamer/ugly/default.nix
··· 1 1 { stdenv, fetchurl, pkgconfig, python 2 2 , gst-plugins-base, orc 3 3 , a52dec, libcdio, libdvdread 4 - , lame, libmad, libmpeg2, x264 4 + , lame, libmad, libmpeg2, x264, libintlOrEmpty 5 5 }: 6 6 7 7 stdenv.mkDerivation rec { ··· 17 17 like. The code might be widely known to present patent problems. 18 18 ''; 19 19 license = licenses.lgpl2Plus; 20 - platforms = platforms.linux; 20 + platforms = platforms.unix; 21 21 maintainers = with maintainers; [ iyzsong ]; 22 22 }; 23 23 ··· 32 32 gst-plugins-base orc 33 33 a52dec libcdio libdvdread 34 34 lame libmad libmpeg2 x264 35 - ]; 35 + ] ++ libintlOrEmpty; 36 + 37 + NIX_LDFLAGS = if stdenv.isDarwin then "-lintl" else null; 36 38 }
+2 -1
pkgs/development/libraries/libavc1394/default.nix
··· 14 14 meta = { 15 15 description = "Programming interface for the 1394 Trade Association AV/C (Audio/Video Control) Digital Interface Command Set"; 16 16 homepage = http://sourceforge.net/projects/libavc1394/; 17 - license = [ "GPL" "LGPL" ]; 17 + license = stdenv.lib.licenses.lgpl21Plus; 18 + platforms = stdenv.lib.platforms.linux; 18 19 }; 19 20 }
+20 -17
pkgs/development/libraries/libdv/default.nix
··· 1 - { composableDerivation, fetchurl }: 2 - 3 - let inherit (composableDerivation) edf; in 4 - 5 - composableDerivation.composableDerivation {} { 1 + { stdenv, fetchurl, popt }: 6 2 7 - flags = { } 8 - # TODO! implement flags 9 - # I want to get kino and cinelerra working. That's why I don't spend more time on this now 10 - // edf { name = "libtool_lock"; } #avoid locking (might break parallel builds) 11 - // edf { name ="asm"; } #disable use of architecture specific assembly code 12 - // edf { name ="sdl"; } #enable use of SDL for display 13 - // edf { name ="gtk"; } #disable use of gtk for display 14 - // edf { name ="xv"; } #disable use of XVideo extension for display 15 - // edf { name ="gprof"; }; #enable compiler options for gprof profiling 16 - 3 + stdenv.mkDerivation rec { 17 4 name = "libdv-1.0.0"; 18 5 19 6 src = fetchurl { 20 - url = mirror://sourceforge/libdv/libdv-1.0.0.tar.gz; 7 + url = "mirror://sourceforge/libdv/${name}.tar.gz"; 21 8 sha256 = "1fl96f2xh2slkv1i1ix7kqk576a0ak1d33cylm0mbhm96d0761d3"; 22 9 }; 23 10 24 - meta = { 11 + # This fixes an undefined symbol: _sched_setscheduler error on compile. 12 + # See the apple docs: http://cl.ly/2HeF bottom of the "Finding Imported Symbols" section 13 + LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-undefined dynamic_lookup"; 14 + 15 + configureFlags = [ 16 + "--disable-asm" 17 + "--disable-sdl" 18 + "--disable-gtk" 19 + "--disable-xv" 20 + "--disable-gprof" 21 + ]; 22 + 23 + buildInputs = [ popt ]; 24 + 25 + meta = with stdenv.lib; { 25 26 description = "Software decoder for DV format video, as defined by the IEC 61834 and SMPTE 314M standards"; 26 27 homepage = http://sourceforge.net/projects/libdv/; 28 + license = licenses.lgpl21Plus; 29 + platforms = platforms.unix; 27 30 }; 28 31 }
+2 -2
pkgs/development/libraries/libiec61883/default.nix
··· 11 11 }; 12 12 13 13 buildInputs = [ pkgconfig ]; 14 - 14 + 15 15 propagatedBuildInputs = [ libraw1394 ]; 16 16 17 17 meta = with stdenv.lib; { 18 18 homepage = http://www.linux1394.org; 19 - license = "LGPL"; 19 + license = licenses.lgpl21Plus; 20 20 platforms = platforms.linux; 21 21 maintainers = with maintainers; [ wkennington ]; 22 22 };
+1 -1
pkgs/development/libraries/libmodplug/default.nix
··· 9 9 description = "MOD playing library"; 10 10 homepage = "http://modplug-xmms.sourceforge.net/"; 11 11 license = licenses.publicDomain; 12 - platforms = platforms.linux; 12 + platforms = platforms.unix; 13 13 maintainers = with maintainers; [ raskin ]; 14 14 }; 15 15
+1 -1
pkgs/development/libraries/libraw1394/default.nix
··· 11 11 meta = with stdenv.lib; { 12 12 description = "Library providing direct access to the IEEE 1394 bus through the Linux 1394 subsystem's raw1394 user space interface"; 13 13 homepage = "https://ieee1394.wiki.kernel.org/index.php/Libraries#libraw1394"; 14 - license = ["GPL" "LGPL"]; 14 + license = licenses.lgpl21Plus; 15 15 platforms = platforms.linux; 16 16 maintainers = with maintainers; [ wkennington ]; 17 17 };
-2
pkgs/development/libraries/libvdpau/default.nix
··· 12 12 13 13 propagatedBuildInputs = [ xorg.libX11 ]; 14 14 15 - configureFlags = stdenv.lib.optional stdenv.isDarwin "--build=x86_64"; 16 - 17 15 meta = with stdenv.lib; { 18 16 homepage = http://people.freedesktop.org/~aplattner/vdpau/; 19 17 description = "Library to use the Video Decode and Presentation API for Unix (VDPAU)";