1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

This library is designed to make it easy to write games that run on UNIX,

Win32, MacOS X and other platforms using the various native high-performance
media interfaces (for video, audio, etc) and presenting a single source-code
level API to your application. This is a fairly low level API, but using this,
completely portable applications can be written with a great deal of
flexibility.

WWW: http://www.libsdl.org/
This commit is contained in:
Marcus von Appen 2013-03-16 21:07:18 +00:00
parent ef11029d12
commit e2ac16fc9f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=314384
5 changed files with 346 additions and 0 deletions

View File

@ -4175,6 +4175,7 @@
SUBDIR += scons
SUBDIR += scsh-install-lib
SUBDIR += sdl12
SUBDIR += sdl20
SUBDIR += sdl_console
SUBDIR += sdl_sge
SUBDIR += sdlmm

255
devel/sdl20/Makefile Normal file
View File

@ -0,0 +1,255 @@
# $FreeBSD$
PORTNAME= sdl2
PORTVERSION= 2.0.p6940
CATEGORIES= devel
MASTER_SITES= http://www.libsdl.org/tmp/
DISTNAME= SDL-2.0.0-6940
MAINTAINER= mva@FreeBSD.org
COMMENT= Cross-platform multimedia development API
USE_CMAKE= yes
CMAKE_OUTSOURCE=yes
USES= pathfix
USE_ICONV= yes
USE_LDCONFIG= yes
MAKE_JOBS_SAFE= yes
CMAKE_ARGS+= -DVIDEO_X11_XINPUT:BOOL=OFF -DVIDEO_OPENGLES:BOOL=OFF \
-DPTHREADS_SEM:BOOL=OFF -DALTIVEC:BOOL=OFF
CMAKE_ENV+= CFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
OPTIONS_DEFINE= ALSA ARTS ASM DLOPEN ESOUND MMX NAS OSS \
PULSEAUDIO PTHREADS SSE SDL_ATOMIC SDL_AUDIO \
SDL_CPUINFO SDL_EVENTS SDL_FILE SDL_HAPTIC \
SDL_JOYSTICK SDL_LOADSO SDL_POWER SDL_RENDER \
SDL_THREADS SDL_TIMERS SDL_VIDEO VIDEO_OPENGL VIDEO_X11
OPTIONS_DEFAULT= ASM DLOPEN OSS PTHREADS SDL_ATOMIC SDL_AUDIO \
SDL_CPUINFO SDL_EVENTS SDL_FILE SDL_HAPTIC \
SDL_JOYSTICK SDL_LOADSO SDL_POWER SDL_RENDER \
SDL_THREADS SDL_TIMERS SDL_VIDEO VIDEO_OPENGL VIDEO_X11
OPTIONS_DEFAULT_i386= MMX SSE
OPTIONS_DEFAULT_amd64= MMX SSE
ALSA_DESC= Audio output via the ALSA audio architecture
ARTS_DESC= Audio output via the aRts audio system
DLOPEN_DESC= Use dlopen for loading 3rd party libraries
ESOUND_DESC= Audio output via the EsounD sound server
NAS_DESC= Audio output via the Network Audio System
OSS_DESC= Audio output via the Open Sound System
PULSEAUDIO_DESC= Audio output via the PulseAudio sound server
PTHREADS_DESC= Use POSIX threads for multi-threading
SDL_ATOMIC_DESC= Enable the SDL Atomic subsystem
SDL_AUDIO_DESC= Enable the SDL Audio subsystem
SDL_CPUINFO_DESC= Enable the SDL CPUinfo subsystem
SDL_EVENTS_DESC= Enable the SDL Events subsystem
SDL_FILE_DESC= Enable the SDL File subsystem
SDL_HAPTIC_DESC= Enable the SDL Haptic subsystem
SDL_JOYSTICK_DESC= Enable the SDL Joystick subsystem
SDL_LOADSO_DESC= Enable the SDL Loadso subsystem
SDL_POWER_DESC= Enable the SDL Power subsystem
SDL_RENDER_DESC= Enable the SDL Render subsystem
SDL_THREADS_DESC= Enable the SDL Threads subsystem
SDL_TIMERS_DESC= Enable the SDL Timers subsystem
SDL_VIDEO_DESC= Eanble the SDL Video subsystem
VIDEO_OPENGL_DESC= OpenGL rendering support
VIDEO_X11_DESC= X11 rendering support
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MALSA}
.if !${PORT_OPTIONS:MSDL_AUDIO}
IGNORE= option ALSA requires SDL_AUDIO
.endif
CMAKE_ARGS+= -DALSA:BOOL=ON -DALSA_SHARED:BOOL=ON
LIB_DEPENDS+= asound:${PORTSDIR}/audio/alsa-lib
.else
CMAKE_ARGS+= -DALSA:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MARTS}
.if !${PORT_OPTIONS:MSDL_AUDIO}
IGNORE= option ARTS requires SDL_AUDIO
.endif
CMAKE_ARGS+= -DARTS:BOOL=ON -DARTS_SHARED:BOOL=ON
LIB_DEPENDS+= artsc:${PORTSDIR}/audio/arts
.else
CMAKE_ARGS+= -DARTS:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MASM}
CMAKE_ARGS+= -DASSEMBLY:BOOL=ON
.else
CMAKE_ARGS+= -DASSEMBLY:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MDLOPEN}
CMAKE_ARGS+= -DSDL_DLOPEN:BOOL=ON
.else
CMAKE_ARGS+= -DSDL_DLOPEN:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MESOUND}
.if !${PORT_OPTIONS:MSDL_AUDIO}
IGNORE= option ESOUND requires SDL_AUDIO
.endif
CMAKE_ARGS+= -DESD:BOOL=ON -DESD_SHARED:BOOL=ON
USE_GNOME+= esound
.else
CMAKE_ARGS+= -DESD:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MMMX}
CMAKE_ARGS+= -DMMX:BOOL=ON -D3DNOW:BOOL=ON
.else
CMAKE_ARGS+= -DMMX:BOOL=OFF -D3DNOW:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MNAS}
.if !${PORT_OPTIONS:MSDL_AUDIO}
IGNORE= option NAS requires SDL_AUDIO
.endif
CMAKE_ARGS+= -DNAS:BOOL=ON
LIB_DEPENDS+= audio:${PORTSDIR}/audio/nas
.else
CMAKE_ARGS+= -DNAS:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MOSS}
.if !${PORT_OPTIONS:MSDL_AUDIO}
IGNORE= option OSS requires SDL_AUDIO
.endif
CMAKE_ARGS+= -DOSS:BOOL=ON
.else
CMAKE_ARGS+= -DOSS:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MPULSEAUDIO}
.if !${PORT_OPTIONS:MSDL_AUDIO}
IGNORE= option PULSEAUDIO requires SDL_AUDIO
.endif
CMAKE_ARGS+= -DPULSEAUDIO:BOOL=ON -DPULSEAUDIO_SHARED:BOOL=ON
.else
CMAKE_ARGS+= -DPULSEAUDIO:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MPTHREADS}
CMAKE_ARGS+= -DPTHREADS:BOOL=ON
.else
CMAKE_ARGS+= -DPTHREADS:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MSDL_ATOMIC}
CMAKE_ARGS+= -DSDL_ATOMIC:BOOL=ON
.else
CMAKE_ARGS+= -DSDL_ATOMIC:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MSDL_AUDIO}
CMAKE_ARGS+= -DSDL_AUDIO:BOOL=ON
.else
CMAKE_ARGS+= -DSDL_AUDIO:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MSDL_CPUINFO}
CMAKE_ARGS+= -DSDL_CPUINFO:BOOL=ON
.else
CMAKE_ARGS+= -DSDL_CPUINFO:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MSDL_EVENTS}
CMAKE_ARGS+= -DSDL_EVENTS:BOOL=ON
.else
CMAKE_ARGS+= -DSDL_EVENTS:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MSDL_FILE}
CMAKE_ARGS+= -DSDL_FILE:BOOL=ON
.else
CMAKE_ARGS+= -DSDL_FILE:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MSDL_HAPTIC}
CMAKE_ARGS+= -DSDL_HAPTIC:BOOL=ON
.else
CMAKE_ARGS+= -DSDL_HAPTIC:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MSDL_JOYSTICK}
CMAKE_ARGS+= -DSDL_JOYSTICK:BOOL=ON
.else
CMAKE_ARGS+= -DSDL_JOYSTICK:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MSDL_LOADSO}
CMAKE_ARGS+= -DSDL_LOADSO:BOOL=ON
.else
CMAKE_ARGS+= -DSDL_LOADSO:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MSDL_POWER}
CMAKE_ARGS+= -DSDL_POWER:BOOL=ON
.else
CMAKE_ARGS+= -DSDL_POWER:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MSDL_RENDER}
CMAKE_ARGS+= -DSDL_RENDER:BOOL=ON
.else
CMAKE_ARGS+= -DSDL_RENDER:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MSDL_THREADS}
CMAKE_ARGS+= -DSDL_THREADS:BOOL=ON
.else
CMAKE_ARGS+= -DSDL_THREADS:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MSDL_TIMERS}
CMAKE_ARGS+= -DSDL_TIMERS:BOOL=ON
.else
CMAKE_ARGS+= -DSDL_TIMERS:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MSDL_VIDEO}
CMAKE_ARGS+= -DSDL_VIDEO:BOOL=ON
.else
CMAKE_ARGS+= -DSDL_VIDEO:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MSSE}
CMAKE_ARGS+= -DSSE:BOOL=ON -DSSE2:BOOL=ON -DSSEMATH:BOOL=ON
.else
CMAKE_ARGS+= -DSSE:BOOL=OFF -DSSE2:BOOL=OFF -DSSEMATH:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MVIDEO_OPENGL}
.if !${PORT_OPTIONS:MSDL_VIDEO}
IGNORE= option VIDEO_OPENGL requires SDL_VIDEO
.endif
CMAKE_ARGS+= -DVIDEO_OPENGL:BOOL=ON
USE_GL= gl
.else
CMAKE_ARGS+= -DVIDEO_OPENGL:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MVIDEO_X11}
.if !${PORT_OPTIONS:MSDL_VIDEO}
IGNORE= option VIDEO_X11 requires SDL_VIDEO
.endif
CMAKE_ARGS+= -DVIDEO_X11:BOOL=ON -DVIDEO_X11_XCURSOR:BOOL=ON \
-DVIDEO_X11_XINERAMA:BOOL=ON -DVIDEO_X11_XINPUT:BOOL=ON \
-DVIDEO_X11_XRANDR:BOOL=ON -DVIDEO_X11_XSCRNSAVER:BOOL=ON \
-DVIDEO_X11_XSHAPE:BOOL=ON -DVIDEO_X11_XVM:BOOL=ON \
-DX11_SHARED:BOOL=ON
USE_XORG+= xinerama xcursor xi xrandr xscrnsaver xxf86vm xext
.else
CMAKE_ARGS+= -DVIDEO_X11:BOOL=OFF -DVIDEO_X11_XCURSOR:BOOL=OFF \
-DVIDEO_X11_XINERAMA:BOOL=OFF -DVIDEO_X11_XINPUT:BOOL=OFF \
-DVIDEO_X11_XRANDR:BOOL=OFF -DVIDEO_X11_XSCRNSAVER:BOOL=OFF \
-DVIDEO_X11_XSHAPE:BOOL=OFF -DVIDEO_X11_XVM:BOOL=OFF \
-DX11_SHARED:BOOL=OFF
.endif
.include <bsd.port.mk>

2
devel/sdl20/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (SDL-2.0.0-6940.tar.gz) = d7bc2ce8e1abde2c86e9b1771e0a745e31b7745d7d16a0a173adfd460adff5f8
SIZE (SDL-2.0.0-6940.tar.gz) = 4788072

8
devel/sdl20/pkg-descr Normal file
View File

@ -0,0 +1,8 @@
This library is designed to make it easy to write games that run on UNIX,
Win32, MacOS X and other platforms using the various native high-performance
media interfaces (for video, audio, etc) and presenting a single source-code
level API to your application. This is a fairly low level API, but using this,
completely portable applications can be written with a great deal of
flexibility.
WWW: http://www.libsdl.org/

80
devel/sdl20/pkg-plist Normal file
View File

@ -0,0 +1,80 @@
bin/sdl2-config
include/SDL2/SDL.h
include/SDL2/SDL_assert.h
include/SDL2/SDL_atomic.h
include/SDL2/SDL_audio.h
include/SDL2/SDL_bits.h
include/SDL2/SDL_blendmode.h
include/SDL2/SDL_clipboard.h
include/SDL2/SDL_config.h
include/SDL2/SDL_config_android.h
include/SDL2/SDL_config_iphoneos.h
include/SDL2/SDL_config_macosx.h
include/SDL2/SDL_config_minimal.h
include/SDL2/SDL_config_nintendods.h
include/SDL2/SDL_config_pandora.h
include/SDL2/SDL_config_windows.h
include/SDL2/SDL_config_wiz.h
include/SDL2/SDL_copying.h
include/SDL2/SDL_cpuinfo.h
include/SDL2/SDL_endian.h
include/SDL2/SDL_error.h
include/SDL2/SDL_events.h
include/SDL2/SDL_gamecontroller.h
include/SDL2/SDL_gesture.h
include/SDL2/SDL_haptic.h
include/SDL2/SDL_hints.h
include/SDL2/SDL_joystick.h
include/SDL2/SDL_keyboard.h
include/SDL2/SDL_keycode.h
include/SDL2/SDL_loadso.h
include/SDL2/SDL_log.h
include/SDL2/SDL_main.h
include/SDL2/SDL_messagebox.h
include/SDL2/SDL_mouse.h
include/SDL2/SDL_mutex.h
include/SDL2/SDL_name.h
include/SDL2/SDL_opengl.h
include/SDL2/SDL_opengles.h
include/SDL2/SDL_opengles2.h
include/SDL2/SDL_pixels.h
include/SDL2/SDL_platform.h
include/SDL2/SDL_power.h
include/SDL2/SDL_quit.h
include/SDL2/SDL_rect.h
include/SDL2/SDL_render.h
include/SDL2/SDL_revision.h
include/SDL2/SDL_rwops.h
include/SDL2/SDL_scancode.h
include/SDL2/SDL_shape.h
include/SDL2/SDL_stdinc.h
include/SDL2/SDL_surface.h
include/SDL2/SDL_system.h
include/SDL2/SDL_syswm.h
include/SDL2/SDL_test.h
include/SDL2/SDL_test_assert.h
include/SDL2/SDL_test_common.h
include/SDL2/SDL_test_compare.h
include/SDL2/SDL_test_crc32.h
include/SDL2/SDL_test_font.h
include/SDL2/SDL_test_fuzzer.h
include/SDL2/SDL_test_harness.h
include/SDL2/SDL_test_images.h
include/SDL2/SDL_test_log.h
include/SDL2/SDL_test_md5.h
include/SDL2/SDL_test_random.h
include/SDL2/SDL_thread.h
include/SDL2/SDL_timer.h
include/SDL2/SDL_touch.h
include/SDL2/SDL_types.h
include/SDL2/SDL_version.h
include/SDL2/SDL_video.h
include/SDL2/begin_code.h
include/SDL2/close_code.h
lib/libSDL2.a
lib/libSDL2.so
lib/libSDL2.so.0
lib/libSDL2.so.2.0.0
lib/libSDL2main.a
libdata/pkgconfig/sdl2.pc
@dirrm include/SDL2