From owner-freebsd-ports Mon Feb 17 0: 1:10 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 4B74837B401; Mon, 17 Feb 2003 00:01:08 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-63-207-60-52.dsl.lsan03.pacbell.net [63.207.60.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id A388743F75; Mon, 17 Feb 2003 00:01:06 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 1266267C8C; Mon, 17 Feb 2003 00:01:05 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id A20F51117; Mon, 17 Feb 2003 00:01:05 -0800 (PST) Date: Mon, 17 Feb 2003 00:01:05 -0800 From: Kris Kennaway To: David Yeske Cc: ports@freebsd.org, sobomax@FreeBSD.org, Mario Subject: Re: USE_SDL Message-ID: <20030217080104.GB70689@rot13.obsecurity.org> References: <20030217060343.16587.qmail@web13505.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="f2QGlHpHGjS2mn6Y" Content-Disposition: inline In-Reply-To: <20030217060343.16587.qmail@web13505.mail.yahoo.com> User-Agent: Mutt/1.4i 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 --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