Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Feb 2003 00:01:05 -0800
From:      Kris Kennaway <kris@obsecurity.org>
To:        David Yeske <dyeske@yahoo.com>
Cc:        ports@freebsd.org, sobomax@FreeBSD.org, Mario <lioux@freebsd.org>
Subject:   Re: USE_SDL
Message-ID:  <20030217080104.GB70689@rot13.obsecurity.org>
In-Reply-To: <20030217060343.16587.qmail@web13505.mail.yahoo.com>
References:  <20030217060343.16587.qmail@web13505.mail.yahoo.com>

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

--f2QGlHpHGjS2mn6Y
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Feb 16, 2003 at 10:03:43PM -0800, David Yeske wrote:
> I wanted to get feedback on USE_SDL.  Most sdl ports have to redefine thi=
ngs like sdl-config,
> -lSDL, or SDL/SDL.h.  Maybe USE_SDL in bsd.port.mk would save time, add c=
onsistency, and reduce
> duplication.  This is only an example, and it has not been tested well.=
=20
>=20
> .if defined(USE_SDL)
> LIB_DEPENDS+=3D   SDL-1.1.5:${PORTSDIR}/devel/sdl12
> SDL_CONFIG?=3D    ${LOCALBASE}/bin/sdl11-config
> CONFIGURE_ENV+=3D SDL_CONFIG=3D"${SDL_CONFIG}"
> MAKE_ENV+=3D              SDL_CONFIG=3D"${SDL_CONFIG}"
> SDL_LIBS!=3D              ${SDL_CONFIG} --libs | ${SED} -e 's/.*\(-lSDL-[=
0-9].[0-9]\).*/\1/'
> .endif

That all looks fine except for the SDL_LIBS!=3D, which will not work on
systems that do not have the SDL port already installed.

Kris

--f2QGlHpHGjS2mn6Y
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+UJa+Wry0BWjoQKURApsLAKCeALw9AkihCABhf/wJlYCJKV8myQCfVdB0
XBvu2BVpQlFCeIxIs170zBc=
=2C5r
-----END PGP SIGNATURE-----

--f2QGlHpHGjS2mn6Y--

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?20030217080104.GB70689>