ports/132280: audio/snd: Fix guile support, add motif support

Timothy Beyer beyert at cs.ucr.edu
Tue Mar 3 12:03:09 UTC 2009


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 ---



More information about the freebsd-ports-bugs mailing list