From owner-freebsd-ports Sun Feb 16 22: 3:45 2003 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF57D37B405 for ; Sun, 16 Feb 2003 22:03:44 -0800 (PST) Received: from web13505.mail.yahoo.com (web13505.mail.yahoo.com [216.136.175.84]) by mx1.FreeBSD.org (Postfix) with SMTP id F3EB343FB1 for ; Sun, 16 Feb 2003 22:03:43 -0800 (PST) (envelope-from dyeske@yahoo.com) Message-ID: <20030217060343.16587.qmail@web13505.mail.yahoo.com> Received: from [24.196.239.120] by web13505.mail.yahoo.com via HTTP; Sun, 16 Feb 2003 22:03:43 PST Date: Sun, 16 Feb 2003 22:03:43 -0800 (PST) From: David Yeske Subject: USE_SDL To: ports@freebsd.org Cc: sobomax@FreeBSD.org, Mario MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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