diff options
Diffstat (limited to 'media-sound/amsynth')
-rw-r--r-- | media-sound/amsynth/amsynth-1.12.2.ebuild | 10 | ||||
-rw-r--r-- | media-sound/amsynth/files/amsynth-1.12.2-x11.patch | 22 |
2 files changed, 31 insertions, 1 deletions
diff --git a/media-sound/amsynth/amsynth-1.12.2.ebuild b/media-sound/amsynth/amsynth-1.12.2.ebuild index 6afc53191fed..872703207acb 100644 --- a/media-sound/amsynth/amsynth-1.12.2.ebuild +++ b/media-sound/amsynth/amsynth-1.12.2.ebuild @@ -28,7 +28,10 @@ RDEPEND=" media-libs/dssi:= media-libs/liblo:= ) - gtk? ( x11-libs/gtk+:2 ) + gtk? ( + x11-libs/gtk+:2 + x11-libs/libX11 + ) jack? ( virtual/jack ) lash? ( media-sound/lash ) lv2? ( media-libs/lv2 ) @@ -41,6 +44,11 @@ PATCHES=( "${FILESDIR}/${P}-metadata.patch" ) +src_prepare() { + default + ! use gtk && eapply "${FILESDIR}/${P}-x11.patch" +} + src_configure() { econf \ $(use_with alsa) \ diff --git a/media-sound/amsynth/files/amsynth-1.12.2-x11.patch b/media-sound/amsynth/files/amsynth-1.12.2-x11.patch new file mode 100644 index 000000000000..2222fc1eb355 --- /dev/null +++ b/media-sound/amsynth/files/amsynth-1.12.2-x11.patch @@ -0,0 +1,22 @@ +diff --git a/Makefile.in b/Makefile.in +index e0dd2a6..4449599 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -1297,7 +1297,7 @@ amsynth_SOURCES = $(libcore_sources) $(libdsp_sources) \ + $(am__append_1) $(am__append_3) $(am__append_4) + amsynth_CPPFLAGS = $(AM_CPPFLAGS) @ALSA_CFLAGS@ @JACK_CFLAGS@ @LASH_CFLAGS@ @LIBLO_CFLAGS@ @GTK_CFLAGS@ + amsynth_LDADD = @ALSA_LIBS@ @JACK_LIBS@ @LASH_LIBS@ @LIBLO_LIBS@ \ +- @LIBS@ -lX11 $(am__append_2) ++ @LIBS@ $(am__append_2) + @DARWIN_TRUE@amsynth_LDFLAGS = $(AM_LDFLAGS) -framework CoreFoundation -framework CoreAudio -framework CoreMIDI + + # +@@ -1317,7 +1317,7 @@ noinst_LTLIBRARIES = $(am__append_5) $(am__append_6) $(am__append_7) + @BUILD_DSSI_TRUE@amsynth_dssi_la_LDFLAGS = -rpath $(dssidir) -avoid-version -module -export-symbols-regex "dssi_descriptor" -disable-static + @BUILD_DSSI_GUI_TRUE@amsynth_dssi_gtk_SOURCES = src/amsynth_dssi_gtk.cpp $(libcore_sources) $(libgui_sources) + @BUILD_DSSI_GUI_TRUE@amsynth_dssi_gtk_CPPFLAGS = $(AM_CPPFLAGS) @DSSI_CFLAGS@ @GTK_CFLAGS@ @LIBLO_CFLAGS@ +-@BUILD_DSSI_GUI_TRUE@amsynth_dssi_gtk_LDADD = @DSSI_LIBS@ @GTK_LIBS@ @LIBLO_LIBS@ -lstdc++ -lX11 ++@BUILD_DSSI_GUI_TRUE@amsynth_dssi_gtk_LDADD = @DSSI_LIBS@ @GTK_LIBS@ @LIBLO_LIBS@ -lstdc++ + + # + # LV2 |