2006-07-01 20:18:17 +02:00
|
|
|
# $NetBSD: Makefile,v 1.66 2006/07/01 18:18:17 jmmv Exp $
|
2000-06-26 03:09:08 +02: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
|
|
|
DISTNAME= SDL-1.2.10
|
2006-07-01 20:18:17 +02:00
|
|
|
PKGREVISION= 1
|
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
|
|
|
CATEGORIES= devel games
|
|
|
|
MASTER_SITES= http://www.libsdl.org/release/
|
|
|
|
|
|
|
|
MAINTAINER= wiz@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.libsdl.org/
|
|
|
|
COMMENT= Simple DirectMedia Layer, a cross-platform multimedia library
|
|
|
|
|
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
USE_LIBTOOL= yes
|
|
|
|
USE_TOOLS+= gmake
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
PTHREAD_OPTS+= require
|
2004-01-05 23:44:04 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2006-07-01 20:18:17 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-sdl-dlopen
|
|
|
|
|
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
|
|
|
.include "options.mk"
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
. include "../../devel/binutils/buildlink3.mk"
|
|
|
|
BUILD_DEPENDS+= nasm>=0.98:../../devel/nasm
|
|
|
|
NASMFLAGS_ELF= -f elf
|
|
|
|
NASMFLAGS_a.out= -f aoutb
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --enable-dlopen
|
|
|
|
CONFIGURE_ENV+= NASMFLAGS="${NASMFLAGS_${OBJECT_FMT}}"
|
|
|
|
MAKE_ENV+= NASMFLAGS="${NASMFLAGS_${OBJECT_FMT}}"
|
|
|
|
|
|
|
|
# Pass in LDFLAGS via SYSTEM_LIBS as it's used as the linker options for
|
|
|
|
# finding various libraries. This ensure that any unusual -Wl,-R options
|
|
|
|
# are noted correctly in the generated sdl-config.
|
|
|
|
#
|
|
|
|
CONFIGURE_ENV+= SYSTEM_LIBS=${LDFLAGS:M*:Q}
|
|
|
|
|
|
|
|
# buildlink passthru the directories required for the Cocoa framework
|
|
|
|
# on Darwin if they exist.
|
|
|
|
.if ${OPSYS} == "Darwin"
|
|
|
|
COCOA_DIRS+= /System /Library /Developer
|
|
|
|
. for dir in ${COCOA_DIRS}
|
|
|
|
. if exists(${dir})
|
|
|
|
BUILDLINK_PASSTHRU_DIRS+= ${dir}
|
|
|
|
. endif
|
|
|
|
. endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include "../../mk/oss.buildlink3.mk"
|
|
|
|
|
|
|
|
AM_CFLAGS= -D_PATH_DEV_DSP="\"${DEVOSSAUDIO}\""
|
|
|
|
MAKE_ENV+= AM_CFLAGS=${AM_CFLAGS:Q}
|
|
|
|
|
|
|
|
# Irix comes with GL, which works fine for SDL
|
|
|
|
.if ${OPSYS} != "IRIX"
|
|
|
|
.include "../../graphics/MesaLib/buildlink3.mk"
|
|
|
|
.include "../../graphics/glu/buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
|
|
|
|
.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "pth"
|
|
|
|
# Let SDL know that we do not have native pthreads and are using GNU pth.
|
2006-06-15 11:45:05 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-pthreads
|
|
|
|
CONFIGURE_ARGS+= --enable-pth
|
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
|
|
|
.endif
|
|
|
|
|
2006-06-15 11:45:05 +02:00
|
|
|
.include "../../mk/x11.buildlink3.mk"
|
2000-06-26 03:09:08 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|