Changeset View
Changeset View
Standalone View
Standalone View
graphics/piglit/Makefile
# Created by: Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | # Created by: Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= piglit | PORTNAME= piglit | ||||
PORTVERSION= 20180910 | PORTVERSION= 20200910 | ||||
PORTREVISION= 3 | |||||
CATEGORIES= graphics | CATEGORIES= graphics | ||||
MAINTAINER= x11@FreeBSD.org | MAINTAINER= x11@FreeBSD.org | ||||
COMMENT= Automated OpenGL and OpenCL testsuite | COMMENT= Automated OpenGL and OpenCL testsuite | ||||
LICENSE= MIT GPLv2 GPLv3 LGPL20 | LICENSE= MIT GPLv2 GPLv3 LGPL20 | ||||
LICENSE_COMB= multi | LICENSE_COMB= multi | ||||
LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
DEPRECATED= Uses deprecated version of python | BUILD_DEPENDS= ${PYNUMPY} \ | ||||
EXPIRATION_DATE= 2020-09-15 | |||||
BUILD_DEPENDS= ${LOCALBASE}/include/CL/opencl.h:devel/opencl \ | |||||
${PYNUMPY} \ | |||||
${PYTHON_PKGNAMEPREFIX}mako>0:textproc/py-mako@${PY_FLAVOR} \ | ${PYTHON_PKGNAMEPREFIX}mako>0:textproc/py-mako@${PY_FLAVOR} \ | ||||
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} | ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \ | ||||
LIB_DEPENDS= libcaca.so:graphics/libcaca \ | vulkan-headers>0:devel/vulkan-headers \ | ||||
libdrm.so:graphics/libdrm \ | wayland-protocols>=0:graphics/wayland-protocols | ||||
libOpenCL.so:devel/ocl-icd \ | LIB_DEPENDS= libdrm.so:graphics/libdrm \ | ||||
libpng.so:graphics/png \ | libpng.so:graphics/png \ | ||||
libwaffle-1.so:graphics/waffle | libvulkan.so:graphics/vulkan-loader \ | ||||
libwaffle-1.so:graphics/waffle \ | |||||
libwayland-egl.so:graphics/wayland \ | |||||
libxkbcommon.so:x11/libxkbcommon | |||||
RUN_DEPENDS= ${PYNUMPY} \ | RUN_DEPENDS= ${PYNUMPY} \ | ||||
${PYTHON_PKGNAMEPREFIX}mako>0:textproc/py-mako@${PY_FLAVOR} \ | ${PYTHON_PKGNAMEPREFIX}mako>0:textproc/py-mako@${PY_FLAVOR} \ | ||||
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} | ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} | ||||
USE_GITHUB= yes | USE_GITLAB= yes | ||||
GH_ACCOUNT= dumbbell | GL_SITE= https://gitlab.freedesktop.org | ||||
GH_PROJECT= piglit | GL_ACCOUNT= mesa | ||||
GH_TAGNAME= a0db4427446ab50882a721ae3084fa26cc9e751a | GL_PROJECT= piglit | ||||
GL_COMMIT= 136a7f5fa0703603be1ffb338abe4865e76a8058 | |||||
USES= cmake compiler:c11 gl pkgconfig python:2.7 shebangfix xorg | PATCH_SITES= https://gitlab.freedesktop.org/mesa/piglit/-/commit/ | ||||
PATCH_DIST_STRIP= -p1 | |||||
PATCHFILES+= 7f1916da04fc.patch # https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/383 | |||||
PATCHFILES+= c6a4d8aa8e68.patch # https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/383 | |||||
PATCHFILES+= 0443b6a18648.patch # https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/383 | |||||
PATCHFILES+= 96d8ddd0a658.patch # https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/383 | |||||
PATCHFILES+= d5f4cfd3b0da.patch # https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/383 | |||||
PATCHFILES+= 64c468c6c7e3.patch # https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/383 | |||||
PATCHFILES+= 681e86f53c2e.patch # https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/383 | |||||
USES= cmake compiler:c11 gl pkgconfig python:3.5+ shebangfix xorg | |||||
USE_GL= egl gbm gl glu | USE_GL= egl gbm gl glu | ||||
USE_XORG= x11 xcb xext xrender | USE_XORG= x11 xcb xext xrender | ||||
SHEBANG_FILES= piglit | SHEBANG_FILES= piglit | ||||
CMAKE_ARGS+= -DPIGLIT_BUILD_CL_TESTS:BOOL=ON | CMAKE_ON= PIGLIT_BUILD_GLES2_TESTS PIGLIT_BUILD_GLES3_TESTS | ||||
tcberner: ^ a bit nicer in my opinion would be
```
CMAKE_ON= PIGLIT_BUILD_GLES2_TESTS… | |||||
Done Inline ActionsThanks, fixed. manu: Thanks, fixed. | |||||
CMAKE_ARGS+= -DCMAKE_POLICY_DEFAULT_CMP0056:STRING=NEW | |||||
LDFLAGS+= -L${LOCALBASE}/lib | LDFLAGS+= -L${LOCALBASE}/lib | ||||
SUB_FILES= pkg-message | SUB_FILES= pkg-message | ||||
DATADIR= ${PREFIX}/lib/piglit | DATADIR= ${PREFIX}/lib/piglit | ||||
PORTDATA= * | PORTDATA= * | ||||
OPTIONS_DEFINE= DOCS WAYLAND | OPTIONS_DEFINE= DOCS | ||||
OPTIONS_DEFAULT=WAYLAND | |||||
WAYLAND_LIB_DEPENDS= libwayland-egl.so:graphics/wayland \ | |||||
libxkbcommon.so:x11/libxkbcommon | |||||
post-patch-WAYLAND-off: | |||||
@${REINPLACE_CMD} -e '/pkg_check_modules.*wayland/d' \ | |||||
${WRKSRC}/CMakeLists.txt | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
^ a bit nicer in my opinion would be