Import devel/sdl2, SDL2-2.0.1, the latest release of SDL.
Most of the porting work done by jsg@. ok jsg@ (who was also ok with me taking maintainer) bentley@ landry@
This commit is contained in:
parent
8a37551002
commit
172b2e38c8
42
devel/sdl2/Makefile
Normal file
42
devel/sdl2/Makefile
Normal file
@ -0,0 +1,42 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2013/10/30 18:11:11 bcallah Exp $
|
||||
|
||||
COMMENT= cross-platform multimedia library
|
||||
|
||||
V= 2.0.1
|
||||
DISTNAME= SDL2-${V}
|
||||
PKGNAME= sdl2-${V}
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://www.libsdl.org/release/
|
||||
|
||||
SHARED_LIBS= SDL2 0.0
|
||||
|
||||
HOMEPAGE= http://www.libsdl.org/
|
||||
MAINTAINER= Brian Callahan <bcallah@openbsd.org>
|
||||
|
||||
# zlib
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
||||
USE_GMAKE= Yes
|
||||
SEPARATE_BUILD= Yes
|
||||
CONFIGURE_STYLE= gnu
|
||||
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/build-scripts
|
||||
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib"
|
||||
|
||||
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
|
||||
--disable-alsa \
|
||||
--disable-arts \
|
||||
--disable-esd \
|
||||
--disable-oss \
|
||||
--disable-pulseaudio
|
||||
# in case devel/usb is installed, don't pick it up.
|
||||
CONFIGURE_ENV+= ac_cv_lib_usb_hid_init=no \
|
||||
ac_cv_header_usb_h=no
|
||||
|
||||
WANTLIB= m pthread sndio usbhid
|
||||
# GL/X11/Xext/Xrender/Xrandr are dlopen'd by SDL
|
||||
WANTLIB+= GL X11 Xau Xdmcp Xext Xrandr Xrender pthread-stubs xcb
|
||||
|
||||
NO_TEST= Yes
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/sdl2/distinfo
Normal file
2
devel/sdl2/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (SDL2-2.0.1.tar.gz) = CufpAqJnd2FKAR/nBTyn6LFIQ9s8QsoRdWTSCM9nMvA=
|
||||
SIZE (SDL2-2.0.1.tar.gz) = 3660224
|
12
devel/sdl2/patches/patch-Makefile_in
Normal file
12
devel/sdl2/patches/patch-Makefile_in
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2013/10/30 18:11:11 bcallah Exp $
|
||||
--- Makefile.in.orig Thu Oct 24 00:05:29 2013
|
||||
+++ Makefile.in Tue Oct 29 23:06:17 2013
|
||||
@@ -100,7 +100,7 @@ LT_AGE = @LT_AGE@
|
||||
LT_CURRENT = @LT_CURRENT@
|
||||
LT_RELEASE = @LT_RELEASE@
|
||||
LT_REVISION = @LT_REVISION@
|
||||
-LT_LDFLAGS = -no-undefined -rpath $(DESTDIR)$(libdir) -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
|
||||
+LT_LDFLAGS = -no-undefined -rpath $(DESTDIR)$(libdir) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
|
||||
|
||||
all: $(srcdir)/configure Makefile $(objects) $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET) $(objects)/$(SDLTEST_TARGET)
|
||||
|
16
devel/sdl2/patches/patch-sdl2-config_in
Normal file
16
devel/sdl2/patches/patch-sdl2-config_in
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-sdl2-config_in,v 1.1.1.1 2013/10/30 18:11:11 bcallah Exp $
|
||||
--- sdl2-config.in.orig Sat Aug 10 15:37:09 2013
|
||||
+++ sdl2-config.in Sat Aug 10 15:38:41 2013
|
||||
@@ -42,10 +42,10 @@ while test $# -gt 0; do
|
||||
echo @SDL_VERSION@
|
||||
;;
|
||||
--cflags)
|
||||
- echo -I@includedir@/SDL2 @SDL_CFLAGS@
|
||||
+ echo -I@includedir@ -I@includedir@/SDL2 @SDL_CFLAGS@ @X_CFLAGS@
|
||||
;;
|
||||
@ENABLE_SHARED_TRUE@ --libs)
|
||||
-@ENABLE_SHARED_TRUE@ echo -L@libdir@ @SDL_RLD_FLAGS@ @SDL_LIBS@
|
||||
+@ENABLE_SHARED_TRUE@ echo -L@libdir@ @SDL_RLD_FLAGS@ @SDL_LIBS@ @X_LIBS@
|
||||
@ENABLE_SHARED_TRUE@ ;;
|
||||
@ENABLE_STATIC_TRUE@@ENABLE_SHARED_TRUE@ --static-libs)
|
||||
@ENABLE_STATIC_TRUE@@ENABLE_SHARED_FALSE@ --libs|--static-libs)
|
12
devel/sdl2/patches/patch-sdl2_pc_in
Normal file
12
devel/sdl2/patches/patch-sdl2_pc_in
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-sdl2_pc_in,v 1.1.1.1 2013/10/30 18:11:11 bcallah Exp $
|
||||
--- sdl2.pc.in.orig Sat Aug 10 15:39:01 2013
|
||||
+++ sdl2.pc.in Sat Aug 10 15:40:09 2013
|
||||
@@ -10,6 +10,5 @@ Description: Simple DirectMedia Layer is a cross-platf
|
||||
Version: @SDL_VERSION@
|
||||
Requires:
|
||||
Conflicts:
|
||||
-Libs: -L${libdir} @SDL_RLD_FLAGS@ @SDL_LIBS@
|
||||
-Libs.private: @SDL_STATIC_LIBS@
|
||||
-Cflags: -I${includedir}/SDL2 @SDL_CFLAGS@
|
||||
+Libs: -L${libdir} @SDL_RLD_FLAGS@ @SDL_LIBS@ @X_LIBS@
|
||||
+Cflags: -I${includedir}/SDL2 @SDL_CFLAGS@ @X_CFLAGS@
|
12
devel/sdl2/patches/patch-src_video_x11_SDL_x11opengl_c
Normal file
12
devel/sdl2/patches/patch-src_video_x11_SDL_x11opengl_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_video_x11_SDL_x11opengl_c,v 1.1.1.1 2013/10/30 18:11:11 bcallah Exp $
|
||||
--- src/video/x11/SDL_x11opengl.c.orig Fri Sep 20 16:47:56 2013
|
||||
+++ src/video/x11/SDL_x11opengl.c Fri Sep 20 16:48:19 2013
|
||||
@@ -31,7 +31,7 @@
|
||||
#include "SDL_loadso.h"
|
||||
#include "SDL_x11opengles.h"
|
||||
|
||||
-#if defined(__IRIX__)
|
||||
+#if defined(__IRIX__) || defined(__OpenBSD__)
|
||||
/* IRIX doesn't have a GL library versioning system */
|
||||
#define DEFAULT_OPENGL "libGL.so"
|
||||
#elif defined(__MACOSX__)
|
4
devel/sdl2/pkg/DESCR
Normal file
4
devel/sdl2/pkg/DESCR
Normal file
@ -0,0 +1,4 @@
|
||||
Simple DirectMedia Layer is a cross-platform multimedia
|
||||
library designed to provide fast access to the graphics
|
||||
framebuffer and audio device. It is used by MPEG playback
|
||||
software, emulators, and many popular games.
|
76
devel/sdl2/pkg/PLIST
Normal file
76
devel/sdl2/pkg/PLIST
Normal file
@ -0,0 +1,76 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/10/30 18:11:11 bcallah Exp $
|
||||
bin/sdl2-config
|
||||
include/SDL2/
|
||||
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_cpuinfo.h
|
||||
include/SDL2/SDL_endian.h
|
||||
include/SDL2/SDL_error.h
|
||||
include/SDL2/SDL_events.h
|
||||
include/SDL2/SDL_filesystem.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.la
|
||||
@lib lib/libSDL2.so.${LIBSDL2_VERSION}
|
||||
lib/libSDL2_test.a
|
||||
lib/libSDL2main.a
|
||||
lib/pkgconfig/
|
||||
lib/pkgconfig/sdl2.pc
|
||||
share/aclocal/
|
||||
share/aclocal/sdl2.m4
|
Loading…
x
Reference in New Issue
Block a user