2015-09-05 13:21:53 +02:00
|
|
|
# $NetBSD: buildlink3.mk,v 1.33 2015/09/05 11:21:53 jperkin Exp $
|
2004-01-04 00:06:43 +01:00
|
|
|
|
2009-03-20 20:23:50 +01:00
|
|
|
BUILDLINK_TREE+= SDL
|
2004-01-04 00:06:43 +01:00
|
|
|
|
2009-03-20 20:23:50 +01:00
|
|
|
.if !defined(SDL_BUILDLINK3_MK)
|
|
|
|
SDL_BUILDLINK3_MK:=
|
2004-03-05 20:25:06 +01:00
|
|
|
|
Update to 1.2.10.
Package changes:
Merge SDL-arts, SDL-esound, and SDL-nas packages back as options,
all defaulting to on (add "-arts -esound -nas" to PKG_OPTIONS.SDL
to get the previous behaviour of this package). Reason: trying to
get and stay in sync with upstream, who decided not to take back
the relevant changes. Ok jmmv@
Also follow upstream w.r.t. library version numbers; bump
BUILDLINK_API_DEPENDS for that (no real reason to diverge here).
Most patches have been integrated upstream.
Changes in 1.2.10:
1.2.10:
If SDL_OpenAudio() is passed zero for the desired format
fields, the following environment variables will be used
to fill them in:
SDL_AUDIO_FREQUENCY
SDL_AUDIO_FORMAT
SDL_AUDIO_CHANNELS
SDL_AUDIO_SAMPLES
If an environment variable is not specified, it will be set
to a reasonable default value.
Added support for the SDL_VIDEO_FULLSCREEN_HEAD environment
variable, currently supported on X11 Xinerama configurations.
Added SDL_GL_SWAP_CONTROL to wait for vsync in OpenGL applications.
Added SDL_GL_ACCELERATED_VISUAL to guarantee hardware acceleration.
Added current_w and current_h to the SDL_VideoInfo structure,
which is set to the desktop resolution during video intialization,
and then set to the current resolution when a video mode is set.
SDL_SetVideoMode() now accepts 0 for width or height and will use
the current video mode (or the desktop mode if no mode has been set.)
Added SDL_GetKeyRepeat()
Added SDL_config.h, with defaults for various build environments.
2006-06-12 18:20:44 +02:00
|
|
|
BUILDLINK_API_DEPENDS.SDL+= SDL>=1.2.5nb5
|
2015-04-25 16:20:17 +02:00
|
|
|
BUILDLINK_ABI_DEPENDS.SDL+= SDL>=1.2.15nb17
|
2004-01-05 00:34:04 +01:00
|
|
|
BUILDLINK_PKGSRCDIR.SDL?= ../../devel/SDL
|
2004-01-04 00:06:43 +01:00
|
|
|
|
2004-03-18 10:12:08 +01:00
|
|
|
PTHREAD_OPTS+= require
|
2004-01-04 00:06:43 +01:00
|
|
|
|
2006-12-12 22:52:34 +01:00
|
|
|
.include "../../mk/bsd.fast.prefs.mk"
|
2004-08-24 01:57:20 +02:00
|
|
|
|
2006-07-04 08:00:35 +02:00
|
|
|
.if ${OPSYS} != "IRIX" && ${OPSYS} != "Darwin"
|
2005-03-27 16:43:47 +02:00
|
|
|
.include "../../graphics/MesaLib/buildlink3.mk"
|
|
|
|
.include "../../graphics/glu/buildlink3.mk"
|
2009-10-23 08:05:07 +02:00
|
|
|
.include "../../x11/libXrandr/buildlink3.mk"
|
|
|
|
.include "../../x11/libXt/buildlink3.mk"
|
|
|
|
.include "../../x11/libXext/buildlink3.mk"
|
2004-08-24 01:57:20 +02:00
|
|
|
.endif
|
2004-03-05 20:25:06 +01:00
|
|
|
|
2006-07-07 17:06:04 +02:00
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
2004-03-05 20:25:06 +01:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
|
2015-09-05 13:21:53 +02:00
|
|
|
# SDL tests on OSX only work for the user logged in on the console, otherwise
|
|
|
|
# they hang or crash.
|
|
|
|
.if ${OPSYS} == "Darwin" && defined(GNU_CONFIGURE)
|
|
|
|
CONFIGURE_ARGS+= --disable-sdltest
|
|
|
|
.endif
|
|
|
|
|
2007-05-30 10:54:28 +02:00
|
|
|
pkgbase := SDL
|
|
|
|
.include "../../mk/pkg-build-options.mk"
|
2006-06-13 17:02:58 +02:00
|
|
|
|
2006-06-15 11:45:05 +02:00
|
|
|
.if !empty(PKG_BUILD_OPTIONS.SDL:Maalib)
|
|
|
|
.include "../../graphics/aalib/buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
2006-06-13 17:02:58 +02:00
|
|
|
.if !empty(PKG_BUILD_OPTIONS.SDL:Mnas)
|
2006-06-15 11:45:05 +02:00
|
|
|
.include "../../audio/nas/buildlink3.mk"
|
2006-06-13 17:02:58 +02:00
|
|
|
.endif
|
|
|
|
|
2009-03-20 20:23:50 +01:00
|
|
|
.endif # SDL_BUILDLINK3_MK
|
2006-09-19 21:31:50 +02:00
|
|
|
|
2009-03-20 20:23:50 +01:00
|
|
|
BUILDLINK_TREE+= -SDL
|