From 84c834ee8fcd257e31c450ea1ffd53f11140b612 Mon Sep 17 00:00:00 2001
From: Edwin Groothuis <edwin@FreeBSD.org>
Date: Sun, 7 Mar 2004 23:39:10 +0000
Subject: Let ports use the USE_SDL macro

PR:		ports/61807
Submitted by:	Edwin Groothuis <edwin@mavetju.org>
Approved by:	maintainer timeout
---
 graphics/synaesthesia/Makefile    | 6 +-----
 graphics/xmms-infinity/Makefile   | 8 ++------
 graphics/xmms-jess/Makefile       | 5 +----
 graphics/xmms-nebulus/Makefile    | 6 +-----
 graphics/xmms-paranormal/Makefile | 7 +++----
 5 files changed, 8 insertions(+), 24 deletions(-)

(limited to 'graphics')

diff --git a/graphics/synaesthesia/Makefile b/graphics/synaesthesia/Makefile
index 92381c9ab7a8..27e832814a89 100644
--- a/graphics/synaesthesia/Makefile
+++ b/graphics/synaesthesia/Makefile
@@ -14,17 +14,13 @@ MASTER_SITES=	http://www.logarithmic.net/pfh/Synaesthesia/
 MAINTAINER=	petef@FreeBSD.org
 COMMENT=	Graphically represents sound in real time
 
-LIB_DEPENDS=	SDL-1.1.5:${PORTSDIR}/devel/sdl12
-
-SDL_CONFIG=	${LOCALBASE}/bin/sdl11-config
-
+USE_SDL=	sdl
 USE_GMAKE=	Yes
 USE_REINPLACE=	Yes
 USE_X_PREFIX=	Yes
 
 GNU_CONFIGURE=	Yes
 CONFIGURE_ARGS=	--with-sdl-prefix=${LOCALBASE}
-CONFIGURE_ENV=	SDL_CONFIG="${SDL_CONFIG}"
 
 post-patch:
 	@${REINPLACE_CMD} -e 's,stdint.h,inttypes.h,' `${FIND} ${WRKSRC} -name \*.cc -or -name \*.c`
diff --git a/graphics/xmms-infinity/Makefile b/graphics/xmms-infinity/Makefile
index 3c82e99bfa37..c8e529ecfeba 100644
--- a/graphics/xmms-infinity/Makefile
+++ b/graphics/xmms-infinity/Makefile
@@ -15,16 +15,12 @@ DISTNAME=	infinity-${PORTVERSION}
 MAINTAINER=	dyeske@yahoo.com
 COMMENT=	A XMMS plug-in which generate full-screen interactive light effects
 
-LIB_DEPENDS=	xmms.4:${PORTSDIR}/multimedia/xmms \
-		SDL-1.1.5:${PORTSDIR}/devel/sdl12
+LIB_DEPENDS=	xmms.4:${PORTSDIR}/multimedia/xmms
 RUN_DEPENDS=	xmms:${PORTSDIR}/multimedia/xmms
 
-SDL_CONFIG?=	${LOCALBASE}/bin/sdl11-config
-
-CONFIGURE_ENV=	SDL_CONFIG="${SDL_CONFIG}"
-
 PLIST_FILES=	lib/xmms/Visualization/libinfinite.so
 GNU_CONFIGURE=	yes
+USE_SDL=	sdl
 USE_REINPLACE=	yes
 USE_GMAKE=	yes
 USE_GNOME=	gtk12
diff --git a/graphics/xmms-jess/Makefile b/graphics/xmms-jess/Makefile
index aa7c5883e1b8..4abc75f587b3 100644
--- a/graphics/xmms-jess/Makefile
+++ b/graphics/xmms-jess/Makefile
@@ -16,12 +16,9 @@ MAINTAINER=	dyeske@yahoo.com
 COMMENT=	A XMMS visualization plugin that uses SDL
 
 BUILD_DEPENDS=	xmms-config:${PORTSDIR}/multimedia/xmms
-LIB_DEPENDS=	SDL-1.1.5:${PORTSDIR}/devel/sdl12
 RUN_DEPENDS=	xmms:${PORTSDIR}/multimedia/xmms
 
-SDL_CONFIG?=	${LOCALBASE}/bin/sdl11-config
-
-CONFIGURE_ENV=	SDL_CONFIG="${SDL_CONFIG}"
+USE_SDL=	sdl
 GNU_CONFIGURE=	yes
 PLIST_FILES=	lib/xmms/Visualization/libjess.so
 USE_GNOME=	glib12
diff --git a/graphics/xmms-nebulus/Makefile b/graphics/xmms-nebulus/Makefile
index 5da6f20ae89b..a18c49c3a867 100644
--- a/graphics/xmms-nebulus/Makefile
+++ b/graphics/xmms-nebulus/Makefile
@@ -15,10 +15,10 @@ MAINTAINER=	dyeske@yahoo.com
 COMMENT=	A XMMS visualization plugin that uses SDL and OpenGL
 
 BUILD_DEPENDS=	xmms-config:${PORTSDIR}/multimedia/xmms
-LIB_DEPENDS=	SDL-1.1.5:${PORTSDIR}/devel/sdl12
 RUN_DEPENDS=	xmms:${PORTSDIR}/multimedia/xmms
 
 PLIST_FILES=	lib/xmms/Visualization/libnebulus.so
+USE_SDL=	sdl
 USE_X_PREFIX=	yes
 USE_MESA=	yes
 USE_GNOME=	gtk12
@@ -28,10 +28,6 @@ USE_REINPLACE=	yes
 
 CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include"
 
-SDL_CONFIG?=	${LOCALBASE}/bin/sdl11-config
-CONFIGURE_ENV+=	SDL_CONFIG=${SDL_CONFIG}
-MAKE_ENV+=	SDL_CONFIG=${SDL_CONFIG}
-
 post-patch:
 	@${REINPLACE_CMD} -E -e \
 		's|SDL/SDL.h|SDL11/SDL.h|; \
diff --git a/graphics/xmms-paranormal/Makefile b/graphics/xmms-paranormal/Makefile
index 442a5823a8d6..29e68d1cb3a3 100644
--- a/graphics/xmms-paranormal/Makefile
+++ b/graphics/xmms-paranormal/Makefile
@@ -16,15 +16,14 @@ DISTNAME=	paranormal-${PORTVERSION:S/.p/pre/}
 MAINTAINER=	dyeske@yahoo.com
 COMMENT=	An adaptation of the "OpenGL Spectrum Analyzer" from XMMS
 
-LIB_DEPENDS=	xml2:${PORTSDIR}/textproc/libxml2 \
-		SDL-1.1.5:${PORTSDIR}/devel/sdl12
+LIB_DEPENDS=	xml2:${PORTSDIR}/textproc/libxml2
 BUILD_DEPENDS=	xmms-config:${PORTSDIR}/multimedia/xmms
 RUN_DEPENDS=	xmms:${PORTSDIR}/multimedia/xmms
 
-SDL_CONFIG?=	${LOCALBASE}/bin/sdl11-config
-CONFIGURE_ENV+=	CFLAGS="-I${LOCALBASE}/include/libxml2/libxml" SDL_CONFIG="${SDL_CONFIG}"
+CONFIGURE_ENV+=	CFLAGS="-I${LOCALBASE}/include/libxml2/libxml"
 
 GNU_CONFIGURE=	yes
+USE_SDL=	sdl
 INSTALLS_SHLIB=	yes
 USE_GNOME=	gtk12
 USE_GMAKE=	yes
-- 
cgit v1.2.3