Author: qboosh                       Date: Sun Dec 18 15:55:03 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- added lash bcond, note GPL license if built with ladcca/lash or readline
- added midishare patch and bcond (off by default as midishare is unfinished in 
PLD)

---- Files affected:
packages/fluidsynth:
   fluidsynth.spec (1.45 -> 1.46) , fluidsynth-midishare.patch (NONE -> 1.1)  
(NEW)

---- Diffs:

================================================================
Index: packages/fluidsynth/fluidsynth.spec
diff -u packages/fluidsynth/fluidsynth.spec:1.45 
packages/fluidsynth/fluidsynth.spec:1.46
--- packages/fluidsynth/fluidsynth.spec:1.45    Sat Dec 17 21:04:41 2011
+++ packages/fluidsynth/fluidsynth.spec Sun Dec 18 16:54:58 2011
@@ -1,8 +1,10 @@
 # $Revision$, $Date$
 #
 # Conditional build:
-%bcond_with    ladcca          # enable ladcca sesion management support 
(deprecated)
-%bcond_without readline        # build with readline lib line editing
+%bcond_with    ladcca          # ladcca sesion management support (deprecated) 
(GPL)
+%bcond_without lash            # LASH support (GPL)
+%bcond_with    midishare       # MidiShare support
+%bcond_without readline        # readline line editing (GPL)
 %bcond_with    sse             # use the SSE instructions of Pentium3+ or 
Athlon XP
 %bcond_without static_libs     # don't build static library
 #
@@ -15,10 +17,15 @@
 Name:          fluidsynth
 Version:       1.1.5
 Release:       1
+%if %{with ladcca} || %{with lash} || %{with readline}
+License:       GPL v2+ (enforced by ladcca/lash/readline), LGPL v2+ 
(fluidsynth itself)
+%else
 License:       LGPL v2+
+%endif
 Group:         Applications/Sound
 Source0:       
http://downloads.sourceforge.net/fluidsynth/%{name}-%{version}.tar.bz2
 # Source0-md5: 835b98b0ddedbb9cc24b53d66cf900c3
+Patch0:                %{name}-midishare.patch
 URL:           http://www.fluidsynth.org/
 BuildRequires: alsa-lib-devel >= 0.9.1
 BuildRequires: autoconf >= 2.52
@@ -30,9 +37,10 @@
 %{?with_ladcca:BuildRequires:  ladcca-devel < 0.4.0}
 %{?with_ladcca:BuildRequires:  ladcca-devel >= 0.3.1}
 BuildRequires: ladspa-devel
-BuildRequires: lash-devel >= 0.3
+%{?with_lash:BuildRequires:    lash-devel >= 0.3}
 BuildRequires: libsndfile-devel >= 1.0.18
 BuildRequires: libtool
+%{?with_midishare:BuildRequires:       midishare-devel}
 BuildRequires: pkgconfig
 BuildRequires: portaudio-devel >= 19
 BuildRequires: pulseaudio-devel >= 0.9.8
@@ -61,8 +69,9 @@
 Requires:      dbus-devel >= 1.0.0
 Requires:      glib2-devel >= 1:2.6.5
 Requires:      jack-audio-connection-kit-devel
-Requires:      lash-devel >= 0.3
+%{?with_lash:Requires: lash-devel >= 0.3}
 Requires:      libsndfile-devel >= 1.0.18
+%{?with_midishare:Requires:    midishare-devel}
 Requires:      portaudio-devel >= 19
 Requires:      pulseaudio-devel >= 0.9.8
 %{?with_readline:Requires:     readline-devel}
@@ -89,6 +98,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
@@ -99,6 +109,8 @@
 
 %configure \
        %{!?with_ladcca:--disable-ladcca} \
+       %{!?with_lash:--disable-lash} \
+       %{!?with_midishare:--disable-midishare} \
        %{!?with_static_libs:--disable-static} \
        %{?with_sse:--enable-SSE} \
        --enable-jack-support \
@@ -110,7 +122,6 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
@@ -150,6 +161,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.46  2011/12/18 15:54:58  qboosh
+- added lash bcond, note GPL license if built with ladcca/lash or readline
+- added midishare patch and bcond (off by default as midishare is unfinished 
in PLD)
+
 Revision 1.45  2011/12/17 20:04:41  qboosh
 - updated dependencies (added glib2, dbus; updated versions)
 - dropped bogus --enable-coreaudio (CoreAudio is Mac specific)

================================================================
Index: packages/fluidsynth/fluidsynth-midishare.patch
diff -u /dev/null packages/fluidsynth/fluidsynth-midishare.patch:1.1
--- /dev/null   Sun Dec 18 16:55:03 2011
+++ packages/fluidsynth/fluidsynth-midishare.patch      Sun Dec 18 16:54:58 2011
@@ -0,0 +1,31 @@
+--- fluidsynth-1.1.5/src/Makefile.am.orig      2011-09-04 09:38:58.000000000 
+0200
++++ fluidsynth-1.1.5/src/Makefile.am   2011-12-18 16:12:19.962675709 +0100
+@@ -40,6 +40,9 @@ if OSS_SUPPORT
+ fluid_oss = drivers/fluid_oss.c
+ endif
+ 
++if MIDISHARE_SUPPORT
++fluid_midishare = drivers/fluid_midishare.c
++endif
+ 
+ # if LASH_SUPPORT || LADCCA_SUPPORT (Makefile supports OR?)
+ if LASH_SUPPORT
+@@ -90,6 +93,7 @@ libfluidsynth_la_SOURCES = \
+       $(fluid_jack) \
+       $(fluid_ladspa) \
+       $(fluid_lash) \
++      $(fluid_midishare) \
+       $(fluid_oss) \
+       $(fluid_portaudio) \
+       $(fluid_pulse) \
+--- fluidsynth-1.1.5/acinclude.m4.orig 2011-09-04 09:38:58.000000000 +0200
++++ fluidsynth-1.1.5/acinclude.m4      2011-12-18 16:10:42.556005782 +0100
+@@ -32,6 +32,8 @@ AC_DEFUN([AC_MIDISHARE],
+          AC_MSG_WARN([ *** Could not find MidiShare.h, disabling MidiShare 
driver])
+      fi       dnl  midishare.h header test
+    fi dnl  enable_midishare != no?
++
++   AM_CONDITIONAL([MIDISHARE_SUPPORT], [test $MIDISHARE_SUPPORT = 1])
+ ])
+ 
+ AC_DEFUN([AC_OSS_AUDIO],
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/fluidsynth/fluidsynth.spec?r1=1.45&r2=1.46&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to