Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Feb 2003 22:03:43 -0800 (PST)
From:      David Yeske <dyeske@yahoo.com>
To:        ports@freebsd.org
Cc:        sobomax@FreeBSD.org, Mario <lioux@freebsd.org>
Subject:   USE_SDL
Message-ID:  <20030217060343.16587.qmail@web13505.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
I wanted to get feedback on USE_SDL.  Most sdl ports have to redefine things like sdl-config,
-lSDL, or SDL/SDL.h.  Maybe USE_SDL in bsd.port.mk would save time, add consistency, and reduce
duplication.  This is only an example, and it has not been tested well. 

.if defined(USE_SDL)
LIB_DEPENDS+=   SDL-1.1.5:${PORTSDIR}/devel/sdl12
SDL_CONFIG?=    ${LOCALBASE}/bin/sdl11-config
CONFIGURE_ENV+= SDL_CONFIG="${SDL_CONFIG}"
MAKE_ENV+=              SDL_CONFIG="${SDL_CONFIG}"
SDL_LIBS!=              ${SDL_CONFIG} --libs | ${SED} -e 's/.*\(-lSDL-[0-9].[0-9]\).*/\1/'
.endif

Regards,
David Yeske

__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030217060343.16587.qmail>