mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
multimedia/mpv: expose Vulkan support after r469515
PR: 227994 (tracking) Obtained from: Greg V <greg@unrelenting.technology> (via GitHub)
This commit is contained in:
parent
540f58a8fb
commit
13d1f941f5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=492060
@ -993,6 +993,7 @@
|
||||
SUBDIR += seom
|
||||
SUBDIR += separate
|
||||
SUBDIR += seq2gif
|
||||
SUBDIR += shaderc
|
||||
SUBDIR += shared-color-profiles
|
||||
SUBDIR += sharpconstruct
|
||||
SUBDIR += shotwell
|
||||
|
@ -3,6 +3,7 @@
|
||||
PORTNAME= libplacebo
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 1.7.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= graphics
|
||||
|
||||
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
|
||||
@ -24,11 +25,6 @@ OPTIONS_DEFAULT=LCMS2 SHADERC
|
||||
OPTIONS_SINGLE= VULKAN
|
||||
OPTIONS_SINGLE_VULKAN= GLSLANG SHADERC
|
||||
|
||||
.if !exists(${.CURDIR:H:H}/graphics/shaderc)
|
||||
OPTIONS_DEFAULT:= ${OPTIONS_DEFAULT:S/SHADERC/GLSLANG/}
|
||||
OPTIONS_EXCLUDE+= SHADERC
|
||||
.endif
|
||||
|
||||
GLSLANG_DESC= glslang SPIR-V compiler
|
||||
GLSLANG_BUILD_DEPENDS= glslang>0:devel/glslang
|
||||
GLSLANG_MESON_ON= -Dglslang=enabled
|
||||
|
37
graphics/shaderc/Makefile
Normal file
37
graphics/shaderc/Makefile
Normal file
@ -0,0 +1,37 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= shaderc
|
||||
DISTVERSIONPREFIX=v
|
||||
DISTVERSION= 2018.0
|
||||
CATEGORIES= graphics devel
|
||||
|
||||
PATCH_SITES= https://github.com/haasn/${GH_PROJECT}/commit/
|
||||
PATCHFILES= 21c8be385b3f.patch:-p1
|
||||
|
||||
MAINTAINER= greg@unrelenting.technology
|
||||
COMMENT= GLSL/HLSL to SPIR-V shader compiler
|
||||
|
||||
LICENSE= APACHE20
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/lib/libSPIRV-Tools-opt.a:devel/spirv-tools \
|
||||
${LOCALBASE}/lib/libHLSL.a:devel/glslang
|
||||
|
||||
USES= cmake compiler:c++11-lib pkgconfig localbase:ldflags python:build
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= google
|
||||
|
||||
CMAKE_ON+= SHADERC_SKIP_TESTS
|
||||
CMAKE_OFF+= SHADERC_ENABLE_NV_EXTENSIONS
|
||||
CMAKE_ARGS+= -DPYTHON_EXE:STRING="${PYTHON_CMD}"
|
||||
CFLAGS+= -Wno-ignored-attributes -Wno-c++11-narrowing
|
||||
|
||||
# https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/shaderc
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} '/examples/d;/third_party/d' ${WRKSRC}/CMakeLists.txt
|
||||
${REINPLACE_CMD} '/build-version/d' ${WRKSRC}/glslc/CMakeLists.txt
|
||||
${ECHO} "\"${DISTVERSIONFULL}\"" > ${WRKSRC}/glslc/src/build-version.inc
|
||||
|
||||
.include <bsd.port.mk>
|
5
graphics/shaderc/distinfo
Normal file
5
graphics/shaderc/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
TIMESTAMP = 1538421668
|
||||
SHA256 (google-shaderc-v2018.0_GH0.tar.gz) = b96f27e7375a6df08732ebd47c18febf82bd0a87e541fd7814fd8c3aa6c8913a
|
||||
SIZE (google-shaderc-v2018.0_GH0.tar.gz) = 206013
|
||||
SHA256 (21c8be385b3f.patch) = 986a972d8b8fbfa750e92b750673108c4ae77af47acdc4dbb684358e2600a4ea
|
||||
SIZE (21c8be385b3f.patch) = 1744
|
8
graphics/shaderc/pkg-descr
Normal file
8
graphics/shaderc/pkg-descr
Normal file
@ -0,0 +1,8 @@
|
||||
A library and command line tool for compiling GLSL/HLSL to SPIR-V,
|
||||
Vulkan's shader language.
|
||||
|
||||
Based on the reference glslang compiler, Shaderc aims to provide a more
|
||||
convenient command-line compiler with GCC/clang-like usage and a library
|
||||
with a more stable API.
|
||||
|
||||
WWW: https://github.com/google/shaderc
|
8
graphics/shaderc/pkg-plist
Normal file
8
graphics/shaderc/pkg-plist
Normal file
@ -0,0 +1,8 @@
|
||||
bin/glslc
|
||||
include/shaderc/shaderc.h
|
||||
include/shaderc/shaderc.hpp
|
||||
lib/libshaderc.a
|
||||
lib/libshaderc_combined.a
|
||||
lib/libshaderc_shared.so
|
||||
lib/libshaderc_shared.so.1
|
||||
lib/libshaderc_util.a
|
@ -47,7 +47,7 @@ OPTIONS_DEFAULT= ARCHIVE ASS DVDREAD DVDNAV MANPAGES OPENGL UCHARDET \
|
||||
V4L VAAPI VDPAU WAYLAND X11 YTDL
|
||||
OPTIONS_GROUP= IN VO AO
|
||||
OPTIONS_GROUP_IN= CDIO DVDREAD DVDNAV LIBBLURAY V4L YTDL SMB
|
||||
OPTIONS_GROUP_VO= CACA OPENGL VAAPI VDPAU WAYLAND X11
|
||||
OPTIONS_GROUP_VO= CACA OPENGL VAAPI VDPAU VULKAN WAYLAND X11
|
||||
OPTIONS_GROUP_AO= ALSA JACK OPENAL PULSEAUDIO SDL SNDIO
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
@ -56,6 +56,7 @@ DVDREAD_DESC= DVD Playback support
|
||||
DVDNAV_DESC= DVD menu navigation
|
||||
LUAJIT_DESC= Use LuaJIT instead of Lua scripting language support
|
||||
UCHARDET_DESC= Guess subtitle encoding via uchardet
|
||||
VULKAN_DESC= Vulkan output support
|
||||
WAYLAND_DESC= Wayland (graphics) support
|
||||
YTDL_DESC= Install youtube-dl
|
||||
IN_DESC= Input
|
||||
@ -143,6 +144,12 @@ VAAPI_CONFIGURE_OFF= --disable-vaapi
|
||||
VDPAU_LIB_DEPENDS= libvdpau.so:multimedia/libvdpau
|
||||
VDPAU_CONFIGURE_OFF= --disable-vdpau
|
||||
|
||||
VULKAN_BUILD_DEPENDS= ${LOCALBASE}/include/vulkan/vulkan.h:devel/vulkan-headers
|
||||
VULKAN_LIB_DEPENDS= libvulkan.so:graphics/vulkan-loader \
|
||||
libshaderc_shared.so:graphics/shaderc
|
||||
VULKAN_CONFIGURE_OFF= --disable-vulkan --disable-shaderc
|
||||
VULKAN_IMPLIES= X11
|
||||
|
||||
WAYLAND_BUILD_DEPENDS= wayland-protocols>=1.14:graphics/wayland-protocols \
|
||||
${LOCALBASE}/include/linux/input.h:devel/evdev-proto
|
||||
WAYLAND_LIB_DEPENDS= libwayland-client.so:graphics/wayland \
|
||||
|
Loading…
Reference in New Issue
Block a user