2018-10-16 00:00:46 +00:00
|
|
|
PORTNAME= vkd3d
|
2018-07-02 10:40:46 +00:00
|
|
|
PORTVERSION= 1.11
|
2018-10-16 00:00:46 +00:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= https://dl.winehq.org/${PORTNAME}/source/
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
|
2024-05-30 13:54:17 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2018-10-16 00:00:46 +00:00
|
|
|
COMMENT= Direct3D 12 to Vulkan translation
|
2022-09-07 21:06:12 +00:00
|
|
|
WWW= https://www.winehq.org/
|
2018-10-16 00:00:46 +00:00
|
|
|
|
|
|
|
LICENSE= LGPL21+
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
2020-12-26 00:23:49 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/spirv-tools/libspirv.h:graphics/spirv-tools \
|
2020-12-23 20:12:14 +00:00
|
|
|
${LOCALBASE}/include/vulkan/vulkan.h:graphics/vulkan-headers
|
2020-12-26 00:23:49 +00:00
|
|
|
LIB_DEPENDS= libSPIRV-Tools-shared.so:graphics/spirv-tools \
|
2018-10-16 00:00:46 +00:00
|
|
|
libvulkan.so:graphics/vulkan-loader
|
2020-12-23 20:12:14 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/include/vulkan/vulkan.h:graphics/vulkan-headers
|
2018-10-16 00:00:46 +00:00
|
|
|
|
2022-03-02 18:54:02 +00:00
|
|
|
USES= bison gmake libtool localbase ncurses pkgconfig tar:xz
|
2018-10-16 00:00:46 +00:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2021-09-29 13:21:39 +00:00
|
|
|
CONFIGURE_ARGS= --disable-doxygen-doc --with-spirv-tools
|
2022-03-03 16:21:49 +00:00
|
|
|
INSTALL_TARGET= install-strip
|
2018-10-16 00:00:46 +00:00
|
|
|
TEST_TARGET= check
|
|
|
|
|
2022-03-02 18:54:02 +00:00
|
|
|
# Override pkg-config support before https://cgit.freebsd.org/src/commit/?id=396851c20aeb
|
|
|
|
# but only if devel/ncurses isn't installed
|
|
|
|
.if !exists(/usr/libdata/pkgconfig/ncurses.pc)
|
2018-07-02 10:40:46 +00:00
|
|
|
CONFIGURE_ENV+= NCURSES_CFLAGS=" " NCURSES_LIBS="-lncurses" NCURSES_VERSION=unused
|
2022-03-02 18:54:02 +00:00
|
|
|
.endif
|
|
|
|
|
2020-12-23 20:12:14 +00:00
|
|
|
# XXX Move to a separate port (a la graphics/vulkan-headers) and maybe make
|
2020-12-26 00:23:49 +00:00
|
|
|
# graphics/spirv-tools depend on it as well
|
2018-10-16 00:00:46 +00:00
|
|
|
USE_GITHUB= nodefault
|
2018-07-02 10:40:46 +00:00
|
|
|
GH_TUPLE= KhronosGroup:SPIRV-Headers:1.5.4.raytracing.fixed-350-gb73e168:headers/external/spirv-headers
|
2018-10-16 00:00:46 +00:00
|
|
|
CPPFLAGS+= -isystem${WRKSRC}/external/spirv-headers/include
|
|
|
|
|
2022-12-08 08:07:05 +00:00
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
|
|
|
EXAMPLES_BUILD_DEPENDS= x11/xcb-util-wm>0:x11/xcb-util-wm
|
|
|
|
EXAMPLES_LIB_DEPENDS= libxcb-keysyms.so:x11/xcb-util-keysyms
|
|
|
|
EXAMPLES_USES= xorg
|
|
|
|
EXAMPLES_USE= XORG=xcb
|
|
|
|
EXAMPLES_CONFIGURE_ENABLE= demos
|
|
|
|
EXAMPLES_LDFLAGS= -Wl,--as-needed # xcb-util, xcb-util-wm
|
|
|
|
|
2018-10-16 00:00:46 +00:00
|
|
|
.include <bsd.port.mk>
|