Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Mar 2009 04:03:16 -0800
From:      Timothy Beyer <beyert@cs.ucr.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org
Cc:        Timothy Beyer <beyert@cs.ucr.edu>
Subject:   Re: ports/132280: audio/snd: Fix guile support, add motif support
Message-ID:  <87ljrmg6ez.wl%beyert@cs.ucr.edu>
In-Reply-To: <200903031120.n23BK4d0087981@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi again,

Use this patch instead of my initial one, this keeps GTK as the default (since most people would probably prefer GTK over Motif) and adds USE_MOTIF when motif is enabled, which should prevent build errors if certain Motif ports are not yet installed.

This still doesn't fix the S7 support, though.

--- Makefile-improved.diff begins here ---
--- Makefile.orig	2009-02-27 15:30:14.000000000 -0800
+++ Makefile	2009-03-03 03:52:00.000000000 -0800
@@ -22,7 +22,9 @@
 		LADSPA	"Include support for LADSPA plugins"	on  \
 		NLS	"Native Language Support"		on  \
 		RUBY	"Use Ruby as the extension language"	off \
-		X11	"Make Snd with Gtk+ graphics support"	on
+		MOTIF	"Make Snd with Motif graphics support"	off \
+		GTK	"Make Snd with Gtk+ graphics support"	on \
+		X11	"Make Snd with GUI support"	on
 
 USE_GNOME=	gnometarget
 GNU_CONFIGURE=	yes
@@ -61,6 +63,7 @@
 .endif
 
 .if !defined(WITHOUT_GUILE)
+CONFIGURE_ARGS+=	--with-guile
 LIB_DEPENDS+=	guile.20:${PORTSDIR}/lang/guile
 PLIST_SUB+=	SCHEME=""
 .else
@@ -96,14 +99,21 @@
 PLIST_SUB+=	SCHEME="@comment "
 .endif
 
-.if defined(WITHOUT_X11)
-CONFIGURE_ARGS+=	--with-no-gui
-PLIST_SUB+=	X11="@comment "
-.else
+.if defined(WITH_GTK)
 USE_GNOME+=	gtk20
 CONFIGURE_ARGS+=	--with-gtk
 PLIST_SUB+=	X11=""
 .endif
+.if defined(WITH_MOTIF)
+USE_MOTIF=	yes
+CONFIGURE_ARGS+=	--with-motif
+PLIST_SUB+=	X11=""
+.endif
+
+.if defined(WITHOUT_X11)
+CONFIGURE_ARGS+=	--with-no-gui
+PLIST_SUB+=	X11="@comment "
+.endif
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|^ _Complex| Vaiolate _Complex|g ; \
--- Makefile-improved.diff ends here ---



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87ljrmg6ez.wl%beyert>