mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
90496c6c4d
(cherry picked from commit 4fd99112b7
)
50 lines
1.7 KiB
Makefile
50 lines
1.7 KiB
Makefile
PORTNAME= vkd3d
|
|
PORTVERSION= 1.11
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= https://dl.winehq.org/${PORTNAME}/source/
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Direct3D 12 to Vulkan translation
|
|
WWW= https://www.winehq.org/
|
|
|
|
LICENSE= LGPL21+
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/spirv-tools/libspirv.h:graphics/spirv-tools \
|
|
${LOCALBASE}/include/vulkan/vulkan.h:graphics/vulkan-headers
|
|
LIB_DEPENDS= libSPIRV-Tools-shared.so:graphics/spirv-tools \
|
|
libvulkan.so:graphics/vulkan-loader
|
|
RUN_DEPENDS= ${LOCALBASE}/include/vulkan/vulkan.h:graphics/vulkan-headers
|
|
|
|
USES= bison gmake libtool localbase ncurses pkgconfig tar:xz
|
|
USE_LDCONFIG= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --disable-doxygen-doc --with-spirv-tools
|
|
INSTALL_TARGET= install-strip
|
|
TEST_TARGET= check
|
|
|
|
# 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)
|
|
CONFIGURE_ENV+= NCURSES_CFLAGS=" " NCURSES_LIBS="-lncurses" NCURSES_VERSION=unused
|
|
.endif
|
|
|
|
# XXX Move to a separate port (a la graphics/vulkan-headers) and maybe make
|
|
# graphics/spirv-tools depend on it as well
|
|
USE_GITHUB= nodefault
|
|
GH_TUPLE= KhronosGroup:SPIRV-Headers:1.5.4.raytracing.fixed-350-gb73e168:headers/external/spirv-headers
|
|
CPPFLAGS+= -isystem${WRKSRC}/external/spirv-headers/include
|
|
|
|
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
|
|
|
|
.include <bsd.port.mk>
|