Back port r551487 | gerald | 2020-10-05 from emulators/wine-devel:

Add an option SDL that uses SDL 2, a cross-platform multimedia development
  API which can be useful particularly when it comes to supporting games.
  This is off by default for now in alignment with the status quo.

Submitted by:	Alex S <iwtcex@gmail.com>
PR:		249869
This commit is contained in:
Gerald Pfeifer
2020-12-01 21:38:06 +00:00
parent 7d1d2fd5b0
commit 2c6717a777

View File

@@ -40,7 +40,6 @@ CONFIGURE_ARGS+=--verbose \
--with-oss \
--without-pulse \
--without-sane \
--without-sdl \
--without-tiff \
--without-udev \
--without-unwind \
@@ -57,12 +56,13 @@ SUB_FILES= pkg-message
PORTDATA= l_intl.nls wine.inf
OPTIONS_DEFINE= CUPS DOCS DOSBOX GCC GNUTLS HAL LDAP LIBXSLT MPG123 OPENAL V4L VKD3D VULKAN WINEMAKER X11 GECKO MONO
OPTIONS_DEFINE= CUPS DOCS DOSBOX GCC GNUTLS HAL LDAP LIBXSLT MPG123 OPENAL SDL V4L VKD3D VULKAN WINEMAKER X11 GECKO MONO
OPTIONS_DEFAULT=GCC GNUTLS X11
OPTIONS_SUB= yes
DOSBOX_DESC= Use DOSBox to run MS-DOS programs
LIBXSLT_DESC= Use libxslt (only used by msxml3.dll)
SDL_DESC= Use SDL for gamepad support (XInput only)
VKD3D_DESC= Direct3D 12 support via Vulkan
VULKAN_DESC= Vulkan API support
WINEMAKER_DESC= Fully support winemaker (requires Perl)
@@ -101,6 +101,10 @@ MPG123_LIB_DEPENDS= libmpg123.so:audio/mpg123
OPENAL_CONFIGURE_WITH= openal
OPENAL_USES= openal
SDL_CONFIGURE_WITH= sdl
SDL_USES= sdl
SDL_USE= SDL=sdl2
V4L_CONFIGURE_WITH= v4l2
V4L_BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat
V4L_LIB_DEPENDS= libv4l2.so:multimedia/libv4l