Index: head/graphics/Makefile =================================================================== --- head/graphics/Makefile +++ head/graphics/Makefile @@ -777,6 +777,7 @@ SUBDIR += phplot SUBDIR += picpuz SUBDIR += piddle + SUBDIR += piglit SUBDIR += pikopixel SUBDIR += pinpoint SUBDIR += pixelize Index: head/graphics/piglit/Makefile =================================================================== --- head/graphics/piglit/Makefile +++ head/graphics/piglit/Makefile @@ -0,0 +1,46 @@ +# Created by: Jean-Sébastien Pédron +# $FreeBSD$ + +PORTNAME= piglit +PORTVERSION= 20160809 +CATEGORIES= graphics + +MAINTAINER= x11@FreeBSD.org +COMMENT= Automated OpenGL and OpenCL testsuite + +LICENSE= MIT GPLv2 GPLv3 LGPL20 +LICENSE_COMB= multi + +BUILD_DEPENDS= ${LOCALBASE}/include/CL/opencl.h:devel/opencl \ + ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}mako>0:textproc/py-mako \ + ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six +LIB_DEPENDS= libcaca.so:graphics/libcaca \ + libdrm.so:graphics/libdrm \ + libOpenCL.so:devel/ocl-icd \ + libpng.so:graphics/png \ + libwaffle-1.so:graphics/waffle +RUN_DEPENDS= ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}mako>0:textproc/py-mako \ + ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six + +USE_GITHUB= yes +GH_ACCOUNT= dumbbell +GH_PROJECT= piglit +GH_TAGNAME= ca5350b4056ae63a93c4c207087b7634873b2ce2 + +USES= cmake:outsource pkgconfig python:2 +USE_GL= egl gbm gl glu +USE_XORG= x11 xcb xext xrender + +CMAKE_ARGS+= -DPIGLIT_BUILD_CL_TESTS:BOOL=ON + +CMAKE_ARGS+= -DCMAKE_POLICY_DEFAULT_CMP0056:STRING=NEW +LDFLAGS+= -L${LOCALBASE}/lib + +SUB_FILES= pkg-message + +DATADIR= ${PREFIX}/lib/piglit +PORTDATA= * + +.include Index: head/graphics/piglit/distinfo =================================================================== --- head/graphics/piglit/distinfo +++ head/graphics/piglit/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1470774588 +SHA256 (dumbbell-piglit-20160809-ca5350b4056ae63a93c4c207087b7634873b2ce2_GH0.tar.gz) = f45922b9a6c5a400c3cfc0107eb49b7d9f6076e49bec49b22557284c1a3a6141 +SIZE (dumbbell-piglit-20160809-ca5350b4056ae63a93c4c207087b7634873b2ce2_GH0.tar.gz) = 23789615 Index: head/graphics/piglit/files/patch-CMakeLists.txt =================================================================== --- head/graphics/piglit/files/patch-CMakeLists.txt +++ head/graphics/piglit/files/patch-CMakeLists.txt @@ -0,0 +1,20 @@ +--- CMakeLists.txt.orig 2016-08-09 20:28:45 UTC ++++ CMakeLists.txt +@@ -201,8 +201,6 @@ IF(PIGLIT_BUILD_GLX_TESTS) + pkg_check_modules(GLPROTO REQUIRED glproto) + ENDIF() + +-set(Python_ADDITIONAL_VERSIONS +- 3.5 3.4 3.3 2.7) + find_package(PythonInterp REQUIRED) + find_package(PythonSix 1.5.2 REQUIRED) + find_package(PythonNumpy 1.7.0 REQUIRED) +@@ -361,7 +359,7 @@ endif() + + check_c_source_compiles( + " +- #define _POSIX_C_SOURCE 199309L ++ #define _POSIX_C_SOURCE 200112L + #include + int main() { return clock_gettime(CLOCK_MONOTONIC, NULL); } + " Index: head/graphics/piglit/files/patch-piglit =================================================================== --- head/graphics/piglit/files/patch-piglit +++ head/graphics/piglit/files/patch-piglit @@ -0,0 +1,8 @@ +--- piglit.orig 2016-08-09 20:28:45 UTC ++++ piglit +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python3 ++#!/usr/bin/env python2 + + # Copyright (c) 2014 Intel Corporation + Index: head/graphics/piglit/files/patch-tests_spec_oes__geometry__shader_sso__validation_user-defined-gs-input-in-block.shader__test =================================================================== --- head/graphics/piglit/files/patch-tests_spec_oes__geometry__shader_sso__validation_user-defined-gs-input-in-block.shader__test +++ head/graphics/piglit/files/patch-tests_spec_oes__geometry__shader_sso__validation_user-defined-gs-input-in-block.shader__test @@ -0,0 +1,16 @@ +--- tests/spec/oes_geometry_shader/sso_validation/user-defined-gs-input-in-block.shader_test.orig 2016-08-09 20:28:45 UTC ++++ tests/spec/oes_geometry_shader/sso_validation/user-defined-gs-input-in-block.shader_test +@@ -1,5 +1,5 @@ + [require] +-GL ES >= 3.1 ++GL ES >= 3.0 + GLSL ES >= 3.10 + GL_OES_geometry_shader + SSO ENABLED +@@ -67,4 +67,4 @@ void main() + + [test] + draw rect -1 -1 2 2 +-probe all rgba 0.0 1.0 0.0 1.0 +\ No newline at end of file ++probe all rgba 0.0 1.0 0.0 1.0 Index: head/graphics/piglit/files/patch-tests_spec_oes__geometry__shader_sso__validation_user-defined-gs-input-not-in-block.shader__test =================================================================== --- head/graphics/piglit/files/patch-tests_spec_oes__geometry__shader_sso__validation_user-defined-gs-input-not-in-block.shader__test +++ head/graphics/piglit/files/patch-tests_spec_oes__geometry__shader_sso__validation_user-defined-gs-input-not-in-block.shader__test @@ -0,0 +1,16 @@ +--- tests/spec/oes_geometry_shader/sso_validation/user-defined-gs-input-not-in-block.shader_test.orig 2016-08-09 20:28:45 UTC ++++ tests/spec/oes_geometry_shader/sso_validation/user-defined-gs-input-not-in-block.shader_test +@@ -1,5 +1,5 @@ + [require] +-GL ES >= 3.1 ++GL ES >= 3.0 + GLSL ES >= 3.10 + GL_OES_geometry_shader + SSO ENABLED +@@ -62,4 +62,4 @@ void main() + + [test] + draw rect -1 -1 2 2 +-probe all rgba 0.0 1.0 0.0 1.0 +\ No newline at end of file ++probe all rgba 0.0 1.0 0.0 1.0 Index: head/graphics/piglit/files/pkg-message.in =================================================================== --- head/graphics/piglit/files/pkg-message.in +++ head/graphics/piglit/files/pkg-message.in @@ -0,0 +1,10 @@ +Piglit opens and closes a lot of files during a run, putting pressure +on FreeBSD's VFS. To keep Piglit smooth, you will have to increase the +default maxvnodes: + sysctl kern.maxvnodes=$(($(sysctl -n kern.maxvnodes) * 2)) + +Instructions to use Piglit are available in: + %%DOCSDIR%%/README + +The same documentation is also available online: + http://cgit.freedesktop.org/piglit/tree/README Index: head/graphics/piglit/pkg-descr =================================================================== --- head/graphics/piglit/pkg-descr +++ head/graphics/piglit/pkg-descr @@ -0,0 +1,12 @@ +Piglit is a collection of automated tests for OpenGL and OpenCL +implementations. + +The goal of Piglit is to help improve the quality of open source +OpenGL and OpenCL drivers by providing developers with a simple means to +perform regression tests. + +The original tests have been taken from +- Glean ( http://glean.sf.net/ ) and +- Mesa ( http://www.mesa3d.org/ ) + +WWW: http://piglit.freedesktop.org/ Index: head/graphics/piglit/pkg-plist =================================================================== --- head/graphics/piglit/pkg-plist +++ head/graphics/piglit/pkg-plist @@ -0,0 +1,165 @@ +bin/piglit +%%PORTDOCS%%%%DOCSDIR%%/COPYING +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/RELEASE +@dir %%DATADIR%%/generated_tests/modules +@dir %%DATADIR%%/generated_tests/templates/gen_builtin_packing_tests +@dir %%DATADIR%%/generated_tests/templates/gen_const_builtin_equal_tests +@dir %%DATADIR%%/generated_tests/templates/gen_conversion_fp64 +@dir %%DATADIR%%/generated_tests/templates/gen_extensions_defined +@dir %%DATADIR%%/generated_tests/templates/gen_flat_interpolation_qualifier +@dir %%DATADIR%%/generated_tests/templates/gen_inout_fp64 +@dir %%DATADIR%%/generated_tests/templates/gen_interpolation_tests +@dir %%DATADIR%%/generated_tests/templates/gen_non-lvalue_tests +@dir %%DATADIR%%/generated_tests/templates/gen_outerproduct_invalid_params +@dir %%DATADIR%%/generated_tests/templates/gen_outerproduct_tests +@dir %%DATADIR%%/generated_tests/templates/gen_shader_bit_encoding_tests +@dir %%DATADIR%%/generated_tests/templates/gen_shader_precision_tests +@dir %%DATADIR%%/generated_tests/templates/gen_texture_lod_tests +@dir %%DATADIR%%/generated_tests/templates/gen_texture_query_lod_tests +@dir %%DATADIR%%/generated_tests/templates/gen_uniform_initializer_tests +@dir %%DATADIR%%/generated_tests/templates/gen_variable_index_read_tests +@dir %%DATADIR%%/generated_tests/templates/gen_variable_index_write_tests +@dir %%DATADIR%%/generated_tests/templates/gen_vp_tex +@dir %%DATADIR%%/generated_tests/templates/gen_vs_in_fp64 +@dir %%DATADIR%%/generated_tests/templates/interpolation-qualifier-built-in-variable +@dir %%DATADIR%%/tests/bugs +@dir %%DATADIR%%/tests/cl/api +@dir %%DATADIR%%/tests/cl/custom +@dir %%DATADIR%%/tests/cl/interop +@dir %%DATADIR%%/tests/egl/spec/egl-1.4 +@dir %%DATADIR%%/tests/egl/spec/egl_chromium_sync_control +@dir %%DATADIR%%/tests/egl/spec/egl_ext_client_extensions +@dir %%DATADIR%%/tests/egl/spec/egl_khr_create_context +@dir %%DATADIR%%/tests/egl/spec/egl_khr_fence_sync +@dir %%DATADIR%%/tests/egl/spec/egl_khr_get_all_proc_addresses +@dir %%DATADIR%%/tests/egl/spec/egl_khr_surfaceless_context +@dir %%DATADIR%%/tests/fbo +@dir %%DATADIR%%/tests/general +@dir %%DATADIR%%/tests/glean +@dir %%DATADIR%%/tests/glx +@dir %%DATADIR%%/tests/hiz +@dir %%DATADIR%%/tests/security +@dir %%DATADIR%%/tests/spec/amd_performance_monitor +@dir %%DATADIR%%/tests/spec/amd_pinned_memory +@dir %%DATADIR%%/tests/spec/amd_seamless_cubemap_per_texture +@dir %%DATADIR%%/tests/spec/amd_vertex_shader_layer +@dir %%DATADIR%%/tests/spec/amd_vertex_shader_viewport_index +@dir %%DATADIR%%/tests/spec/arb_base_instance +@dir %%DATADIR%%/tests/spec/arb_blend_func_extended/api +@dir %%DATADIR%%/tests/spec/arb_blend_func_extended/execution +@dir %%DATADIR%%/tests/spec/arb_buffer_storage +@dir %%DATADIR%%/tests/spec/arb_clear_buffer_object +@dir %%DATADIR%%/tests/spec/arb_clear_texture +@dir %%DATADIR%%/tests/spec/arb_clip_control +@dir %%DATADIR%%/tests/spec/arb_color_buffer_float +@dir %%DATADIR%%/tests/spec/arb_compute_shader/compiler +@dir %%DATADIR%%/tests/spec/arb_copy_buffer +@dir %%DATADIR%%/tests/spec/arb_copy_image +@dir %%DATADIR%%/tests/spec/arb_debug_output +@dir %%DATADIR%%/tests/spec/arb_depth_clamp +@dir %%DATADIR%%/tests/spec/arb_direct_state_access +@dir %%DATADIR%%/tests/spec/arb_draw_buffers +@dir %%DATADIR%%/tests/spec/arb_draw_buffers_blend +@dir %%DATADIR%%/tests/spec/arb_draw_elements_base_vertex +@dir %%DATADIR%%/tests/spec/arb_draw_indirect +@dir %%DATADIR%%/tests/spec/arb_es2_compatibility +@dir %%DATADIR%%/tests/spec/arb_es3_compatibility +@dir %%DATADIR%%/tests/spec/arb_framebuffer_no_attachments +@dir %%DATADIR%%/tests/spec/arb_framebuffer_object +@dir %%DATADIR%%/tests/spec/arb_framebuffer_srgb +@dir %%DATADIR%%/tests/spec/arb_geometry_shader4/execution/program-parameter +@dir %%DATADIR%%/tests/spec/arb_get_program_binary +@dir %%DATADIR%%/tests/spec/arb_get_texture_sub_image +@dir %%DATADIR%%/tests/spec/arb_gpu_shader_fp64/shader_storage +@dir %%DATADIR%%/tests/spec/arb_indirect_parameters +@dir %%DATADIR%%/tests/spec/arb_instanced_arrays +@dir %%DATADIR%%/tests/spec/arb_internalformat_query +@dir %%DATADIR%%/tests/spec/arb_internalformat_query2 +@dir %%DATADIR%%/tests/spec/arb_invalidate_subdata +@dir %%DATADIR%%/tests/spec/arb_map_buffer_alignment +@dir %%DATADIR%%/tests/spec/arb_map_buffer_range +@dir %%DATADIR%%/tests/spec/arb_multisample +@dir %%DATADIR%%/tests/spec/arb_occlusion_query +@dir %%DATADIR%%/tests/spec/arb_occlusion_query2 +@dir %%DATADIR%%/tests/spec/arb_pipeline_statistics_query +@dir %%DATADIR%%/tests/spec/arb_program_interface_query +@dir %%DATADIR%%/tests/spec/arb_provoking_vertex +@dir %%DATADIR%%/tests/spec/arb_query_buffer_object +@dir %%DATADIR%%/tests/spec/arb_robustness +@dir %%DATADIR%%/tests/spec/arb_sample_shading/execution +@dir %%DATADIR%%/tests/spec/arb_sampler_objects +@dir %%DATADIR%%/tests/spec/arb_seamless_cube_map +@dir %%DATADIR%%/tests/spec/arb_shader_draw_parameters +@dir %%DATADIR%%/tests/spec/arb_shader_image_size +@dir %%DATADIR%%/tests/spec/arb_shader_objects +@dir %%DATADIR%%/tests/spec/arb_stencil_texturing +@dir %%DATADIR%%/tests/spec/arb_sync +@dir %%DATADIR%%/tests/spec/arb_texture_barrier +@dir %%DATADIR%%/tests/spec/arb_texture_buffer_object +@dir %%DATADIR%%/tests/spec/arb_texture_buffer_range +@dir %%DATADIR%%/tests/spec/arb_texture_compression +@dir %%DATADIR%%/tests/spec/arb_texture_float +@dir %%DATADIR%%/tests/spec/arb_texture_multisample +@dir %%DATADIR%%/tests/spec/arb_texture_stencil8 +@dir %%DATADIR%%/tests/spec/arb_texture_storage +@dir %%DATADIR%%/tests/spec/arb_texture_storage_multisample +@dir %%DATADIR%%/tests/spec/arb_texture_view +@dir %%DATADIR%%/tests/spec/arb_timer_query +@dir %%DATADIR%%/tests/spec/arb_transform_feedback2 +@dir %%DATADIR%%/tests/spec/arb_transform_feedback3 +@dir %%DATADIR%%/tests/spec/arb_vertex_array_bgra +@dir %%DATADIR%%/tests/spec/arb_vertex_array_object +@dir %%DATADIR%%/tests/spec/arb_vertex_buffer_object +@dir %%DATADIR%%/tests/spec/arb_vertex_type_10f_11f_11f_rev +@dir %%DATADIR%%/tests/spec/arb_vertex_type_2_10_10_10_rev +@dir %%DATADIR%%/tests/spec/arb_viewport_array +@dir %%DATADIR%%/tests/spec/ati_draw_buffers +@dir %%DATADIR%%/tests/spec/ati_envmap_bumpmap +@dir %%DATADIR%%/tests/spec/ext_depth_bounds_test +@dir %%DATADIR%%/tests/spec/ext_fog_coord +@dir %%DATADIR%%/tests/spec/ext_framebuffer_blit +@dir %%DATADIR%%/tests/spec/ext_framebuffer_multisample +@dir %%DATADIR%%/tests/spec/ext_framebuffer_multisample_blit_scaled +@dir %%DATADIR%%/tests/spec/ext_image_dma_buf_import +@dir %%DATADIR%%/tests/spec/ext_packed_depth_stencil +@dir %%DATADIR%%/tests/spec/ext_packed_float +@dir %%DATADIR%%/tests/spec/ext_polygon_offset_clamp +@dir %%DATADIR%%/tests/spec/ext_texture_format_bgra8888 +@dir %%DATADIR%%/tests/spec/ext_texture_integer +@dir %%DATADIR%%/tests/spec/ext_texture_swizzle +@dir %%DATADIR%%/tests/spec/ext_timer_query +@dir %%DATADIR%%/tests/spec/ext_transform_feedback +@dir %%DATADIR%%/tests/spec/ext_unpack_subimage +@dir %%DATADIR%%/tests/spec/ext_window_rectangles +@dir %%DATADIR%%/tests/spec/gl-1.0 +@dir %%DATADIR%%/tests/spec/gl-1.1 +@dir %%DATADIR%%/tests/spec/gl-1.2 +@dir %%DATADIR%%/tests/spec/gl-1.4 +@dir %%DATADIR%%/tests/spec/gl-1.5 +@dir %%DATADIR%%/tests/spec/gl-2.0/api +@dir %%DATADIR%%/tests/spec/gl-2.1 +@dir %%DATADIR%%/tests/spec/gl-3.0/api +@dir %%DATADIR%%/tests/spec/gl-3.2/layered-rendering +@dir %%DATADIR%%/tests/spec/gl-3.3 +@dir %%DATADIR%%/tests/spec/gl-4.4 +@dir %%DATADIR%%/tests/spec/gles-2.0 +@dir %%DATADIR%%/tests/spec/glsl-1.10/execution/clipping +@dir %%DATADIR%%/tests/spec/glsl-1.10/execution/varying-packing +@dir %%DATADIR%%/tests/spec/glsl-1.20/recursion +@dir %%DATADIR%%/tests/spec/glsl-1.30/linker/clipping +@dir %%DATADIR%%/tests/spec/glx_arb_create_context +@dir %%DATADIR%%/tests/spec/glx_ext_import_context +@dir %%DATADIR%%/tests/spec/glx_mesa_query_renderer +@dir %%DATADIR%%/tests/spec/glx_oml_sync_control +@dir %%DATADIR%%/tests/spec/khr_debug +@dir %%DATADIR%%/tests/spec/mesa_pack_invert +@dir %%DATADIR%%/tests/spec/nv_conditional_render +@dir %%DATADIR%%/tests/spec/nv_texture_barrier +@dir %%DATADIR%%/tests/spec/oes_compressed_paletted_texture +@dir %%DATADIR%%/tests/spec/oes_draw_elements_base_vertex +@dir %%DATADIR%%/tests/spec/oes_draw_texture +@dir %%DATADIR%%/tests/spec/oes_fixed_point +@dir %%DATADIR%%/tests/spec/oes_matrix_get +@dir %%DATADIR%%/tests/spec/oes_texture_float +@dir %%DATADIR%%/tests/texturing/shaders