Index: Mk/bsd.port.mk =================================================================== --- Mk/bsd.port.mk (revision 371006) +++ Mk/bsd.port.mk (working copy) @@ -1773,6 +1773,7 @@ PKG_IGNORE_DEPENDS?= 'this_port_does_not_exist' +_GL_gbm_LIB_DEPENDS= libgbm.so:${PORTSDIR}/graphics/gbm _GL_glesv2_LIB_DEPENDS= libGLESv2.so:${PORTSDIR}/graphics/libglesv2 _GL_egl_LIB_DEPENDS= libEGL.so:${PORTSDIR}/graphics/libEGL _GL_gl_LIB_DEPENDS= libGL.so:${PORTSDIR}/graphics/libGL Index: graphics/Makefile =================================================================== --- graphics/Makefile (revision 371006) +++ graphics/Makefile (working copy) @@ -226,6 +226,7 @@ SUBDIR += fyre SUBDIR += g2 SUBDIR += gauche-gl + SUBDIR += gbm SUBDIR += gcolor SUBDIR += gcolor2 SUBDIR += gd Index: graphics/dri/Makefile =================================================================== --- graphics/dri/Makefile (revision 371006) +++ graphics/dri/Makefile (working copy) @@ -3,7 +3,7 @@ PORTNAME= dri PORTVERSION= ${MESAVERSION} -PORTREVISION= 5 +PORTREVISION= ${DRIREVISION} PORTEPOCH= 2 CATEGORIES= graphics @@ -12,17 +12,28 @@ LIB_DEPENDS= libdrm.so:${PORTSDIR}/graphics/libdrm \ libexpat.so:${PORTSDIR}/textproc/expat2 -USES+= gettext:build -USE_XORG= glproto x11 xext xxf86vm xdamage xfixes dri2proto +USE_XORG= glproto x11 xext xxf86vm xdamage xfixes dri2proto \ + presentproto xvmc xshmfence +OPTIONS_DEFINE= TEXTURE + +OPTIONS_DEFINE_i386= GALLIUM VDPAU +OPTIONS_DEFAULT_i386= GALLIUM VDPAU +OPTIONS_DEFINE_amd64= GALLIUM VDPAU +OPTIONS_DEFAULT_amd64= GALLIUM VDPAU + +GALLIUM_DESC= Gallium (llvm backed) dri drivers +TEXTURE_DESC= Enable texture-float support (patent encumbered) +VDPAU_DESC= VDPAU (GPU video acceleration) support (needs Gallium) + +PKGHELP= ${.CURDIR}/pkg-help + .include # gcc from base can't handle some code in mesa 9.1+ -# We only care for 9.x and 8.x, not for old pre-clang default current. +# We only care for 9.x and 8.x. clang in 10.x is new enough. # This is for 0b0000 binary which gcc 4.3+ understands and is in the i965 driver. -.if defined(WITH_NEW_XORG) -. if (${OSVERSION} >= 901500 && ${OSVERSION} < 1000000) \ - && ${ARCH} == amd64 +. if (${OSVERSION} >= 901500 && ${OSVERSION} < 1000000) CC=clang CXX=clang++ CPP=clang-cpp @@ -29,14 +40,9 @@ . elif ${OSVERSION} < 901500 USE_GCC=yes . endif -.endif ALL_DRI_DRIVERS=I915 I965 R200 RADEON SWRAST -.if !defined(WITH_NEW_XORG) -ALL_DRI_DRIVERS+=I810 MACH64 MGA R128 R300 R600 SAVAGE SIS TDFX UNICHROME -.endif - .include "${.CURDIR}/../../graphics/libGL/bsd.mesalib.mk" PLIST_SUB+= VERSION=${MESADISTVERSION} @@ -45,42 +51,63 @@ DRI_DRIVERS= ${ALL_DRI_DRIVERS} .endif -.if defined(WITH_NEW_XORG) -. if !defined(WITHOUT_GALLIUM) && (${ARCH} == i386 || ${ARCH} == amd64) -BUILD_DEPENDS+= llvm-config33:${PORTSDIR}/devel/llvm33 +.if defined(WITH_NEW_MESA) +DRIREVISION= 0 +PLIST= ${.CURDIR}/pkg-plist +.else +DRIREVISION= 6 +PLIST= ${.CURDIR}/pkg-plist-old +.endif + +.if ${PORT_OPTIONS:MGALLIUM} +. if defined(WITH_NEW_MESA) +# keep in sync with libopencl please +BUILD_DEPENDS+= llvm34>=0:${PORTSDIR}/devel/llvm34 +CONFIGURE_ENV+= LLVM_CONFIG=${LOCALBASE}/bin/llvm-config34 +. else +BUILD_DEPENDS+= llvm33>=0:${PORTSDIR}/devel/llvm33 CONFIGURE_ENV+= LLVM_CONFIG=${LOCALBASE}/bin/llvm-config33 +. endif -CONFIGURE_ARGS+=--enable-gallium-llvm --disable-gallium-egl - -CONFIGURE_ARGS+=--with-gallium-drivers=r300,r600,radeonsi,svga,swrast +CONFIGURE_ARGS+=--enable-gallium-llvm \ + --enable-xvmc \ + --with-gallium-drivers=r300,r600,radeonsi,svga,swrast PLIST_SUB+= GALLIUM="" -. else -CONFIGURE_ARGS+=--enable-gallium-llvm=no --without-gallium-drivers +.else +CONFIGURE_ARGS+=--enable-gallium-llvm=no --without-gallium-drivers \ + --disable-gallium-egl PLIST_SUB+= GALLIUM="@comment " -. endif -. if ${ARCH} == powerpc || ${ARCH} == powerpc64 +.endif + +.if ${PORT_OPTIONS:MTEXTURE} +CONFIGURE_ARGS+=--enable-texture-float +.endif + +.if ${PORT_OPTIONS:MVDPAU} +CONFIGURE_ARGS+=--enable-vdpau +LIB_DEPENDS+= libvdpau.so:${PORTSDIR}/multimedia/libvdpau +PLIST_SUB+= VDPAU="" +.else +CONFIGURE_ARGS+=--disable-vdpau +PLIST_SUB+= VDPAU="@comment " +.endif + +.if ${ARCH} == powerpc || ${ARCH} == powerpc64 DRI_DRIVERS= RADEON SWRAST -. endif -. if ${ARCH} == sparc64 || ${ARCH} == armv6 +.endif +.if ${ARCH} == sparc64 || ${ARCH} == armv6 DRI_DRIVERS= SWRAST -. endif -.else # !defined(WITH_NEW_XORG) -. if ${ARCH} == powerpc || ${ARCH} == powerpc64 -DRI_DRIVERS= MACH64 RADEON SWRAST TDFX -. elif ${ARCH} == sparc64 -DRI_DRIVERS= MACH64 RADEON SWRAST -. endif -.endif # defined(WITH_NEW_XORG) +.endif # empty for unsupported arches DRI_DRIVERS+= .for _d in ${ALL_DRI_DRIVERS} -.if ${DRI_DRIVERS:M${_d}} +. if ${DRI_DRIVERS:M${_d}} PLIST_SUB+= ${_d}_DRIVER="" -.else +. else PLIST_SUB+= ${_d}_DRIVER="@comment " -.endif +. endif .endfor .if !(${ARCH} == amd64 || ${ARCH} == i386) @@ -88,26 +115,4 @@ .endif CONFIGURE_ARGS+=--with-dri-drivers="${DRI_DRIVERS:tl}" -.if defined(WITH_NEW_XORG) && !defined(WITH_GALLIUM) \ - && (${ARCH} == i386 || ${ARCH} == amd64) -pre-everything:: - @${ECHO_MSG} "" - @${ECHO_MSG} "For r300, r600, radeonsi and swrast gallium based drivers." - @${ECHO_MSG} "Please define WITH_GALLIUM in /etc/make.conf" - @${ECHO_MSG} "Note that gallium support is highly experimental." - @${ECHO_MSG} "" -.endif - -post-install: -.if defined(WITH_NEW_XORG) - @${RM} -f ${STAGEDIR}${PREFIX}/include/GL/*.h - @${RM} ${STAGEDIR}${PREFIX}/lib/libGL.* - @${RM} ${STAGEDIR}${PREFIX}/lib/libglapi.* - @${RM} -f ${STAGEDIR}${PREFIX}/libdata/pkgconfig/gl.pc -.else - @${RM} -f ${STAGEDIR}${PREFIX}/include/GL/*.h - @${RM} -rf ${STAGEDIR}${PREFIX}/lib/.libGL - @${RM} -f ${STAGEDIR}${PREFIX}/libdata/pkgconfig/gl.pc -.endif - .include Index: graphics/dri/pkg-help =================================================================== --- graphics/dri/pkg-help (revision 0) +++ graphics/dri/pkg-help (working copy) @@ -0,0 +1,13 @@ +The GALLIUM option enables gallium (llvm) backed drivers such as for example +the r600 and radeonsi driver. + +The VDPAU option enables VDPAU drivers to decode video on the GPU via the +VDPAU library. + +The TEXTURE option enables texture-float support. However Silicon Graphics +owns the US Patent #6,650,327 [1]. Use at your own risk! + +See docs/patents.txt in the Mesa tarball or the follewing urls: + +[1] http://www.google.com/patents/about?id=mIIOAAAAEBAJ&dq=6650327 +[2] http://www.opengl.org/registry/specs/ARB/texture_float.txt Property changes on: graphics/dri/pkg-help ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/dri/pkg-plist =================================================================== --- graphics/dri/pkg-plist (revision 371006) +++ graphics/dri/pkg-plist (working copy) @@ -1,40 +1,57 @@ -%%NEW%%%%I965_DRIVER%%etc/drirc +%%I965_DRIVER%%etc/drirc +@comment include/EGL/egl.h +@comment include/EGL/eglext.h +@comment include/EGL/eglextchromium.h +@comment include/EGL/eglmesaext.h +@comment include/EGL/eglplatform.h include/GL/internal/dri_interface.h -%%OLD%%%%I810_DRIVER%%lib/dri/i810_dri.so -%%NEW%%%%I915_DRIVER%%lib/dri/i915_dri.la +@comment include/GL/gl.h +@comment include/GL/gl_mangle.h +@comment include/GL/glcorearb.h +@comment include/GL/glext.h +@comment include/GL/glx.h +@comment include/GL/glx_mangle.h +@comment include/GL/glxext.h +@comment include/GL/osmesa.h +@comment include/GL/wglext.h +@comment include/GL/wmesa.h +@comment include/KHR/khrplatform.h +@comment include/gbm.h +%%GALLIUM%%lib/dri/kms_swrast_dri.so %%I915_DRIVER%%lib/dri/i915_dri.so -%%NEW%%%%I965_DRIVER%%lib/dri/i965_dri.la %%I965_DRIVER%%lib/dri/i965_dri.so -%%OLD%%%%MACH64_DRIVER%%lib/dri/mach64_dri.so -%%OLD%%%%MGA_DRIVER%%lib/dri/mga_dri.so -%%OLD%%%%R128_DRIVER%%lib/dri/r128_dri.so -%%NEW%%%%R200_DRIVER%%lib/dri/r200_dri.la %%R200_DRIVER%%lib/dri/r200_dri.so -%%OLD%%%%R300_DRIVER%%lib/dri/r300_dri.so -%%NEW%%%%GALLIUM%%lib/dri/r300_dri.la -%%NEW%%%%GALLIUM%%lib/dri/r300_dri.so -%%OLD%%%%R600_DRIVER%%lib/dri/r600_dri.so -%%NEW%%%%GALLIUM%%lib/dri/r600_dri.la -%%NEW%%%%GALLIUM%%lib/dri/r600_dri.so -%%NEW%%%%RADEON_DRIVER%%lib/dri/radeon_dri.la +%%GALLIUM%%lib/dri/r300_dri.so +%%GALLIUM%%lib/dri/r600_dri.so %%RADEON_DRIVER%%lib/dri/radeon_dri.so -%%NEW%%%%GALLIUM%%lib/dri/radeonsi_dri.la -%%NEW%%%%GALLIUM%%lib/dri/radeonsi_dri.so -%%OLD%%%%SAVAGE_DRIVER%%lib/dri/savage_dri.so -%%OLD%%%%SIS_DRIVER%%lib/dri/sis_dri.so -%%NEW%%%%SWRAST_DRIVER%%lib/dri/swrast_dri.la +%%GALLIUM%%lib/dri/radeonsi_dri.so %%SWRAST_DRIVER%%lib/dri/swrast_dri.so -%%OLD%%%%TDFX_DRIVER%%lib/dri/tdfx_dri.so -%%OLD%%%%UNICHROME_DRIVER%%lib/dri/unichrome_dri.so -%%NEW%%%%GALLIUM%%lib/dri/vmwgfx_dri.la -%%NEW%%%%GALLIUM%%lib/dri/vmwgfx_dri.so -%%NEW%%lib/libdricore%%VERSION%%.la -%%NEW%%lib/libdricore%%VERSION%%.so -%%NEW%%lib/libdricore%%VERSION%%.so.1 -%%NEW%%lib/libdricore%%VERSION%%.so.1.0.0 -%%NEW%%%%GALLIUM%%lib/libllvmradeon%%VERSION%%.la -%%NEW%%%%GALLIUM%%lib/libllvmradeon%%VERSION%%.so +%%GALLIUM%%lib/dri/vmwgfx_dri.so +%%GALLIUM%%lib/libXvMCr600.so +%%GALLIUM%%lib/libXvMCr600.so.1 +%%GALLIUM%%lib/libXvMCr600.so.1.0 +%%GALLIUM%%lib/libXvMCr600.so.1.0.0 +@comment lib/libEGL.so +@comment lib/libEGL.so.1 +@comment lib/libEGL.so.1.0.0 +@comment lib/libGL.so +@comment lib/libGL.so.1 +@comment lib/libGL.so.1.2.0 +@comment lib/libgbm.so +@comment lib/libgbm.so.1 +@comment lib/libgbm.so.1.0.0 +@comment lib/libglapi.so +@comment lib/libglapi.so.0 +@comment lib/libglapi.so.0.0.0 +%%VDPAU%%lib/vdpau/libvdpau_r600.so +%%VDPAU%%lib/vdpau/libvdpau_r600.so.1 +%%VDPAU%%lib/vdpau/libvdpau_r600.so.1.0 +%%VDPAU%%lib/vdpau/libvdpau_r600.so.1.0.0 +%%VDPAU%%lib/vdpau/libvdpau_radeonsi.so +%%VDPAU%%lib/vdpau/libvdpau_radeonsi.so.1 +%%VDPAU%%lib/vdpau/libvdpau_radeonsi.so.1.0 +%%VDPAU%%lib/vdpau/libvdpau_radeonsi.so.1.0.0 +@comment libdata/pkgconfig/egl.pc libdata/pkgconfig/dri.pc -@dirrm lib/dri -@dirrmtry include/GL/internal -@dirrmtry include/GL +@comment libdata/pkgconfig/gbm.pc +@comment libdata/pkgconfig/gl.pc Index: graphics/dri/pkg-plist-old =================================================================== --- graphics/dri/pkg-plist-old (revision 0) +++ graphics/dri/pkg-plist-old (working copy) @@ -0,0 +1,67 @@ +%%I965_DRIVER%%etc/drirc +@comment include/EGL/egl.h +@comment include/EGL/eglext.h +@comment include/EGL/eglmesaext.h +@comment include/EGL/eglplatform.h +@comment include/GL/gl.h +@comment include/GL/gl_mangle.h +@comment include/GL/glext.h +@comment include/GL/glx.h +@comment include/GL/glx_mangle.h +@comment include/GL/glxext.h +include/GL/internal/dri_interface.h +@comment include/GL/osmesa.h +@comment include/GL/wglext.h +@comment include/GL/wmesa.h +@comment include/KHR/khrplatform.h +@comment include/gbm.h +%%I915_DRIVER%%lib/dri/i915_dri.so +%%I965_DRIVER%%lib/dri/i965_dri.so +%%R200_DRIVER%%lib/dri/r200_dri.so +%%GALLIUM%%lib/dri/r300_dri.so +%%GALLIUM%%lib/dri/r600_dri.so +%%RADEON_DRIVER%%lib/dri/radeon_dri.so +%%GALLIUM%%lib/dri/radeonsi_dri.so +%%SWRAST_DRIVER%%lib/dri/swrast_dri.so +%%GALLIUM%%lib/dri/vmwgfx_dri.so +%%GALLIUM%%lib/libXvMCr300.so +%%GALLIUM%%lib/libXvMCr300.so.1 +%%GALLIUM%%lib/libXvMCr300.so.1.0.0 +%%GALLIUM%%lib/libXvMCr600.so +%%GALLIUM%%lib/libXvMCr600.so.1 +%%GALLIUM%%lib/libXvMCr600.so.1.0.0 +%%GALLIUM%%lib/libXvMCsoftpipe.so +%%GALLIUM%%lib/libXvMCsoftpipe.so.1 +%%GALLIUM%%lib/libXvMCsoftpipe.so.1.0.0 +@comment lib/libEGL.so +@comment lib/libEGL.so.1 +@comment lib/libEGL.so.1.0.0 +@comment lib/libGL.so +@comment lib/libGL.so.1 +@comment lib/libGL.so.1.2.0 +lib/libdricore9.1.7.so +lib/libdricore9.1.7.so.1 +lib/libdricore9.1.7.so.1.0.0 +@comment lib/libgbm.so +@comment lib/libgbm.so.1 +@comment lib/libgbm.so.1.0.0 +@comment lib/libglapi.so +@comment lib/libglapi.so.0 +@comment lib/libglapi.so.0.0.0 +%%GALLIUM%%lib/libllvmradeon%%VERSION%%.so +%%GALLIUM%%%%VDPAU%%lib/vdpau/libvdpau_r300.so +%%GALLIUM%%%%VDPAU%%lib/vdpau/libvdpau_r300.so.1 +%%GALLIUM%%%%VDPAU%%lib/vdpau/libvdpau_r300.so.1.0.0 +%%GALLIUM%%%%VDPAU%%lib/vdpau/libvdpau_r600.so +%%GALLIUM%%%%VDPAU%%lib/vdpau/libvdpau_r600.so.1 +%%GALLIUM%%%%VDPAU%%lib/vdpau/libvdpau_r600.so.1.0.0 +%%GALLIUM%%%%VDPAU%%lib/vdpau/libvdpau_radeonsi.so +%%GALLIUM%%%%VDPAU%%lib/vdpau/libvdpau_radeonsi.so.1 +%%GALLIUM%%%%VDPAU%%lib/vdpau/libvdpau_radeonsi.so.1.0.0 +%%GALLIUM%%%%VDPAU%%lib/vdpau/libvdpau_softpipe.so +%%GALLIUM%%%%VDPAU%%lib/vdpau/libvdpau_softpipe.so.1 +%%GALLIUM%%%%VDPAU%%lib/vdpau/libvdpau_softpipe.so.1.0.0 +libdata/pkgconfig/dri.pc +@comment libdata/pkgconfig/egl.pc +@comment libdata/pkgconfig/gbm.pc +@comment libdata/pkgconfig/gl.pc Property changes on: graphics/dri/pkg-plist-old ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: graphics/gbm/Makefile =================================================================== --- graphics/gbm/Makefile (revision 0) +++ graphics/gbm/Makefile (working copy) @@ -0,0 +1,41 @@ +# Created by: kwm@FreeBSD.org +# $FreeBSD$ + +PORTNAME= gbm +PORTVERSION= ${MESAVERSION} +PORTREVISION= ${GBM_REVISION} +CATEGORIES= graphics + +COMMENT= gbm library + +LIB_DEPENDS+= libpthread-stubs.so:${PORTSDIR}/devel/libpthread-stubs \ + libexpat.so:${PORTSDIR}/textproc/expat2 \ + libdrm.so:${PORTSDIR}/graphics/libdrm \ + libglapi.so:${PORTSDIR}/graphics/libglapi + +USE_XORG= x11 xau xcb xdmcp + +# stuff not needed by gbm but configure wants it +USE_XORG+= glproto dri2proto xext xdamage xfixes presentproto \ + xshmfence + +BUILD_WRKSRC= ${WRKSRC}/src/gbm +INSTALL_WRKSRC= ${WRKSRC}/src/gbm + +.include +.include "${.CURDIR}/../../graphics/libGL/bsd.mesalib.mk" + +.if defined(WITH_NEW_MESA) +GBM_REVISION= 0 +.else +GBM_REVISION= 0 +.endif + +pre-build: +.if defined(WITH_NEW_MESA) + @cd ${WRKSRC}/src/mapi/ && ${MAKE_CMD} ${_MAKE_JOBS} +.else + @cd ${WRKSRC}/src/mapi/shared-glapi && ${MAKE_CMD} ${_MAKE_JOBS} +.endif + +.include Property changes on: graphics/gbm/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Index: graphics/gbm/pkg-descr =================================================================== --- graphics/gbm/pkg-descr (revision 0) +++ graphics/gbm/pkg-descr (working copy) @@ -0,0 +1,3 @@ +This package contains the EGL utility library. + +WWW: http://www.freedesktop.org/Software/xorg Property changes on: graphics/gbm/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: graphics/gbm/pkg-plist =================================================================== --- graphics/gbm/pkg-plist (revision 0) +++ graphics/gbm/pkg-plist (working copy) @@ -0,0 +1,5 @@ +include/gbm.h +lib/libgbm.so +lib/libgbm.so.1 +lib/libgbm.so.1.0.0 +libdata/pkgconfig/gbm.pc Property changes on: graphics/gbm/pkg-plist ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/libEGL/Makefile =================================================================== --- graphics/libEGL/Makefile (revision 371006) +++ graphics/libEGL/Makefile (working copy) @@ -3,28 +3,54 @@ PORTNAME= libEGL PORTVERSION= ${MESAVERSION} -PORTREVISION= 3 +PORTREVISION= ${LIBEGL_REVISION} CATEGORIES= graphics COMMENT= OpenEGL library -LIB_DEPENDS+= libpthread-stubs.so:${PORTSDIR}/devel/libpthread-stubs +LIB_DEPENDS+= libpthread-stubs.so:${PORTSDIR}/devel/libpthread-stubs \ + libexpat.so:${PORTSDIR}/textproc/expat2 \ + libdevq.so:${PORTSDIR}/devel/libdevq \ + libdrm.so:${PORTSDIR}/graphics/libdrm USE_XORG= x11 xau xcb xdmcp # stuff not needed by libEGL but configure wants it -USE_XORG+= glproto dri2proto xext xdamage xfixes -LIB_DEPENDS+= libexpat.so:${PORTSDIR}/textproc/expat2 \ - libdrm.so:${PORTSDIR}/graphics/libdrm +USE_XORG+= glproto dri2proto xext xdamage xfixes presentproto \ + xshmfence +.include +.include "${.CURDIR}/../../graphics/libGL/bsd.mesalib.mk" + +.if defined(WITH_NEW_MESA) +BUILD_WRKSRC= src/egl/drivers/dri2 src/egl/main +INSTALL_WRKSRC= src/egl/drivers/dri2 src/egl/main +.else BUILD_WRKSRC= ${WRKSRC}/src/egl INSTALL_WRKSRC= ${WRKSRC}/src/egl +.endif -.include +.if defined(WITH_NEW_MESA) +LIBEGL_REVISION= 0 +.else +LIBEGL_REVISION= 4 +.endif -.if ! defined(WITH_NEW_XORG) -IGNORE= Please enable WITH_NEW_XORG, libEGL needs libdrm higher then 2.4.24 +.if defined(WITH_NEW_MESA) +do-build: egl-do-build +do-install: egl-do-install + +egl-do-build: +. for dir in ${BUILD_WRKSRC} + @(cd ${WRKSRC}/${dir}; ${DO_MAKE_BUILD} ${ALL_TARGET};) +. endfor + +egl-do-install: +. for dir in ${INSTALL_WRKSRC} + @(cd ${WRKSRC}/${dir} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \ + ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}) + +. endfor .endif -.include "${.CURDIR}/../../graphics/libGL/bsd.mesalib.mk" .include Index: graphics/libEGL/pkg-plist =================================================================== --- graphics/libEGL/pkg-plist (revision 371006) +++ graphics/libEGL/pkg-plist (working copy) @@ -1,12 +1,10 @@ include/EGL/egl.h include/EGL/eglext.h +%%NEW%%include/EGL/eglextchromium.h include/EGL/eglmesaext.h include/EGL/eglplatform.h include/KHR/khrplatform.h -lib/libEGL.la lib/libEGL.so lib/libEGL.so.1 lib/libEGL.so.1.0.0 libdata/pkgconfig/egl.pc -@dirrmtry include/KHR -@dirrmtry include/EGL Index: graphics/libGL/Makefile =================================================================== --- graphics/libGL/Makefile (revision 371006) +++ graphics/libGL/Makefile (working copy) @@ -9,39 +9,30 @@ COMMENT= OpenGL library that renders using GLX or DRI LIB_DEPENDS+= libdrm.so:${PORTSDIR}/graphics/libdrm \ + libglapi.so:${PORTSDIR}/graphics/libglapi \ libexpat.so:${PORTSDIR}/textproc/expat2 -USES= pkgconfig -USE_XORG= glproto x11 xext xxf86vm xdamage xfixes dri2proto:both +USE_XORG= glproto x11 xext xxf86vm xdamage xfixes dri2proto:both \ + presentproto xshmfence SUB_FILES= pkg-install pkg-deinstall .include +.include "${.CURDIR}/bsd.mesalib.mk" -.if defined(WITH_NEW_XORG) -LIBGLREVISION= 2 -LIB_DEPENDS+= libglapi.so:${PORTSDIR}/graphics/libglapi +.if defined(WITH_NEW_MESA) +LIBGLREVISION= 0 .else -LIBGLREVISION= 5 +LIBGLREVISION= 3 .endif -.include "${.CURDIR}/bsd.mesalib.mk" - .if !(${ARCH} == "amd64" || ${ARCH} == "i386") CONFIGURE_ARGS+=--disable-gallium-intel .endif post-install: - ${RM} -f ${STAGEDIR}${PREFIX}/libdata/pkgconfig/dri.pc - ${RM} -rf ${STAGEDIR}${PREFIX}/include/GL/internal -.if defined(WITH_NEW_XORG) @${MKDIR} ${STAGEDIR}${PREFIX}/lib/.libGL @${MV} ${STAGEDIR}${PREFIX}/lib/libGL* \ ${STAGEDIR}${PREFIX}/lib/.libGL/ - ${RM} ${STAGEDIR}${PREFIX}/lib/libglapi* -.else - ${RM} ${STAGEDIR}${PREFIX}/include/GL/glu.h - ${RM} ${STAGEDIR}${PREFIX}/include/GL/glu_mangle.h -.endif .include Index: graphics/libGL/bsd.mesalib.mk =================================================================== --- graphics/libGL/bsd.mesalib.mk (revision 371006) +++ graphics/libGL/bsd.mesalib.mk (working copy) @@ -4,37 +4,54 @@ # # Remember to upgrade the following ports everytime you bump MESAVERSION: # +# - graphics/dri +# - graphics/gbm # - graphics/libEGL # - graphics/libGL +# - graphics/libglapi # - grahpics/libglesv2 -# - graphics/dri # # $FreeBSD$ +# hw context support in the i915kms driver +.if ${OPSYS} == FreeBSD && \ + (${OSVERSION} >= 1000717 && ${OSVERSION} < 1100000 || \ + ${OSVERSION} >= 1100035) +WITH_NEW_MESA=1 +.endif + MESAVERSION= ${MESABASEVERSION}${MESASUBVERSION:C/^(.)/.\1/} MESADISTVERSION=${MESABASEVERSION}${MESASUBVERSION:C/^(.)/-\1/} -.if defined(WITH_NEW_XORG) -MESABASEVERSION= 9.1.7 -# if there is a subversion, include the '-' between 7.11-rc2 for example. -MESASUBVERSION= +.if defined(WITH_NEW_MESA) +MESABASEVERSION= 10.3.0 +# if there is a subversion, don't include the '-' between 7.11-rc2. +MESASUBVERSION= + +MASTER_SITES= ftp://ftp.freedesktop.org/pub/mesa/${MESABASEVERSION:R}/ PLIST_SUB+= OLD="@comment " NEW="" + +# work around libarchive bug? +EXTRACT_CMD= ${LOCALBASE}/bin/gtar +EXTRACT_DEPENDS+= gtar:${PORTSDIR}/archivers/gtar + .else -MESABASEVERSION= 7.6.1 +MESABASEVERSION= 9.1.7 MESASUBVERSION= +MASTER_SITES= ftp://ftp.freedesktop.org/pub/mesa/older-versions/${MESABASEVERSION:R:R}.x/${MESABASEVERSION}/ PLIST_SUB+= OLD="" NEW="@comment " .endif -MASTER_SITES= ftp://ftp.freedesktop.org/pub/mesa/older-versions/${MESABASEVERSION:R:R}.x/${MESABASEVERSION}/ DISTFILES= MesaLib-${MESADISTVERSION}${EXTRACT_SUFX} MAINTAINER= x11@FreeBSD.org BUILD_DEPENDS+= makedepend:${PORTSDIR}/devel/makedepend \ - python2:${PORTSDIR}/lang/python2 \ ${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2 -USES+= bison gmake pathfix pkgconfig shebangfix tar:bzip2 -USE_PYTHON_BUILD=2 +LIB_DEPENDS+= libdevq.so:${PORTSDIR}/devel/libdevq + +USES+= bison gmake libtool pathfix pkgconfig python:2,build \ + shebangfix tar:bzip2 USE_LDCONFIG= yes GNU_CONFIGURE= yes @@ -43,33 +60,23 @@ .if ${OSVERSION} < 1000033 BUILD_DEPENDS+= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex -CONFIGURE_ENV+=ac_cv_prog_LEX=${LOCALBASE}/bin/flex +CONFIGURE_ENV+= ac_cv_prog_LEX=${LOCALBASE}/bin/flex .endif -.if defined(WITH_NEW_XORG) -INSTALL_TARGET= install-strip -USES+= libtool:keepla - python_OLD_CMD= "/usr/bin/env[[:space:]]python" python_CMD= ${LOCALBASE}/bin/python2 SHEBANG_FILES= src/gallium/*/*/*.py src/gallium/tools/trace/*.py \ src/gallium/drivers/svga/svgadump/svga_dump.py \ - src/glsl/tests/compare_ir src/mapi/glapi/gen/*.py \ - src/mapi/mapi/mapi_abi.py + src/glsl/tests/compare_ir src/mapi/glapi/gen/*.py -# i386 triggers clang bug 19778. This happens with clang 3.4.1 and older. -. if ${ARCH} == i386 -USE_GCC=yes -. endif -.else -CONFIGURE_ARGS+=--disable-glut --disable-glw --disable-glu - -ALL_TARGET= default +.if defined(WITH_NEW_MESA) +SHEBANG_FILES+= src/mapi/mapi_abi.py .endif MASTERDIR= ${.CURDIR}/../../graphics/libGL -.if defined(WITH_NEW_XORG) +.if defined(WITH_NEW_MESA) PATCHDIR= ${MASTERDIR}/files +CONFIGURE_ARGS+= --disable-dri3 .else PATCHDIR= ${MASTERDIR}/files-old .endif @@ -76,6 +83,7 @@ DESCR= ${.CURDIR}/pkg-descr PLIST= ${.CURDIR}/pkg-plist WRKSRC= ${WRKDIR}/Mesa-${MESADISTVERSION} +INSTALL_TARGET= install-strip COMPONENT= ${PORTNAME:tl:C/^lib//:C/mesa-//} @@ -91,20 +99,27 @@ CONFIGURE_ARGS+= --enable-egl .endif +.if ${COMPONENT:Mopencl} == "" +CONFIGURE_ARGS+= --disable-opencl +.else +CONFIGURE_ARGS+= --enable-opencl +.endif + .if ${COMPONENT:Mdri} == "" CONFIGURE_ARGS+=--with-dri-drivers=no CONFIGURE_ARGS+=--enable-gallium-llvm=no --without-gallium-drivers .else # done in the dri port +# need to enable this globaly because it also used in dri .. +# the third possible option is wayland. +CONFIGURE_ARGS+= --enable-egl --with-egl-platforms=x11,drm .endif -.if !defined(WITH_NEW_XORG) -.if defined(WITHOUT_XCB) -CONFIGURE_ARGS+= --disable-xcb +.if ${COMPONENT:Mvdpau} == "" +CONFIGURE_ARGS+=--disable-vdpau .else -CONFIGURE_ARGS+= --enable-xcb +CONFIGURE_ARGS+=--enable-vdpau .endif -.endif post-patch: @${REINPLACE_CMD} -e 's|-ffast-math|${FAST_MATH}|' -e 's|x86_64|amd64|' \ @@ -111,19 +126,25 @@ ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' \ ${WRKSRC}/src/mesa/drivers/dri/common/xmlconfig.c -.if !defined(WITH_NEW_XORG) - @${REINPLACE_CMD} -e 's|python|${PYTHON_CMD}|' \ - ${WRKSRC}/src/gallium/auxiliary/util/Makefile - @${REINPLACE_CMD} -e 's|[$$](INSTALL_LIB_DIR)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \ - ${WRKSRC}/src/glu/Makefile \ - ${WRKSRC}/src/mesa/Makefile \ - ${WRKSRC}/src/mesa/drivers/dri/Makefile -.else +.if !defined(WITH_NEW_MESA) @${REINPLACE_CMD} -e 's|#!/usr/bin/python|#!${PYTHON_CMD}|g' \ ${WRKSRC}/src/mesa/drivers/dri/common/xmlpool/gen_xmlpool.py \ ${WRKSRC}/src/glsl/builtins/tools/*.py - @${REINPLACE_CMD} -e 's|!/usr/bin/python2|!${PYTHON_CMD}|g' \ +.else + @${REINPLACE_CMD} -e 's|#!/use/bin/python|#!${PYTHON_CMD}|g' \ + ${WRKSRC}/src/mesa/drivers/dri/common/xmlpool/gen_xmlpool.py +.endif + @${REINPLACE_CMD} -e 's|!/use/bin/python2|!${PYTHON_CMD}|g' \ ${WRKSRC}/src/mesa/main/get_hash_generator.py \ ${WRKSRC}/src/mapi/glapi/gen/gl_enums.py \ ${WRKSRC}/src/mapi/glapi/gen/gl_table.py + +pre-build: pre-mesa-build + +pre-mesa-build: +.if defined(WITH_NEW_MESA) +# do propper gmake target. + @cd ${WRKSRC}/src/mesa/drivers/dri/common/xmlpool && ${MAKE_CMD} + @cd ${WRKSRC}/src/loader && ${MAKE_CMD} libloader.la .endif + Index: graphics/libGL/distinfo =================================================================== --- graphics/libGL/distinfo (revision 371006) +++ graphics/libGL/distinfo (working copy) @@ -1,4 +1,4 @@ -SHA256 (MesaLib-7.6.1.tar.bz2) = 701f0e4cb85d6298181651b780d1c0a439fadd02aad29ee6623fc05588bb8d44 -SIZE (MesaLib-7.6.1.tar.bz2) = 4886995 SHA256 (MesaLib-9.1.7.tar.bz2) = 30e6b878b457c716221a9730b179b2846c38cfd5aa1b02d54aff685f50b844a0 SIZE (MesaLib-9.1.7.tar.bz2) = 6134393 +SHA256 (MesaLib-10.3.0.tar.bz2) = 0283bfe710fa449ed82e465cfa09612a269e19abb7e0382082608062ce7960b5 +SIZE (MesaLib-10.3.0.tar.bz2) = 7252038 Index: graphics/libGL/files/configure.ac =================================================================== --- graphics/libGL/files/configure.ac (revision 0) +++ graphics/libGL/files/configure.ac (working copy) @@ -0,0 +1,100 @@ +--- configure.ac.orig 2014-08-21 01:41:38.000000000 +0200 ++++ configure.ac 2014-08-29 13:40:20.688548140 +0200 +@@ -37,6 +37,7 @@ + DRI3PROTO_REQUIRED=1.0 + PRESENTPROTO_REQUIRED=1.0 + LIBUDEV_REQUIRED=151 ++LIBDEVQ_REQUIRED=0.0.2 + GLPROTO_REQUIRED=1.4.14 + LIBOMXIL_BELLAGIO_REQUIRED=0.0 + VDPAU_REQUIRED=0.4.1 +@@ -53,7 +54,7 @@ + AM_PROG_CC_C_O + AM_PROG_AS + AC_CHECK_PROGS([MAKE], [gmake make]) +-AC_CHECK_PROGS([PYTHON2], [python2 python]) ++AC_CHECK_PROGS([PYTHON2], [python2.7 python2 python]) + AC_PROG_SED + AC_PROG_MKDIR_P + +@@ -152,7 +153,7 @@ + DEFINES="-DUSE_EXTERNAL_DXTN_LIB=1" + AC_SUBST([DEFINES]) + case "$host_os" in +-linux*|*-gnu*|gnu*) ++linux*|*-gnu*|gnu*|freebsd*) + DEFINES="$DEFINES -D_GNU_SOURCE -DHAVE_PTHREAD" + ;; + solaris*) +@@ -581,7 +582,7 @@ + [enable_dri=yes]) + + case "$host_os" in +-linux*) ++linux*|freebsd*) + dri3_default=yes + ;; + *) +@@ -855,6 +856,9 @@ + PKG_CHECK_MODULES([LIBUDEV], [libudev >= $LIBUDEV_REQUIRED], + have_libudev=yes, have_libudev=no) + ++PKG_CHECK_MODULES([LIBDEVQ], [libdevq-1.0 >= $LIBDEVQ_REQUIRED], ++ have_libdevq=yes, have_libdevq=no) ++ + AC_ARG_ENABLE([sysfs], + [AS_HELP_STRING([--enable-sysfs], + [enable /sys PCI identification @<:@default=disabled@:>@])], +@@ -949,6 +953,10 @@ + DEFINES="$DEFINES -DHAVE_LIBUDEV" + have_pci_id=yes + fi ++if test "$have_libdevq" = yes; then ++ DEFINES="$DEFINES -DHAVE_LIBDEVQ" ++ have_pci_id=yes ++fi + + if test "$have_sysfs" = yes; then + DEFINES="$DEFINES -DHAVE_SYSFS" +@@ -1069,6 +1077,23 @@ + *freebsd* | dragonfly* | *netbsd* | openbsd*) + DEFINES="$DEFINES -DHAVE_PTHREAD" + DEFINES="$DEFINES -DHAVE_ALIAS" ++dnl not sure about dri3 support, just enable it for now. ++ if test "x$enable_dri3" = xyes; then ++ DEFINES="$DEFINES -DHAVE_DRI3" ++ fi ++ ++ if test "x$have_libdevq" != xyes; then ++ AC_MSG_ERROR([libdevq required for building DRI]) ++ fi ++ ++ case "$host_cpu" in ++ powerpc* | sparc*) ++ # Build only the drivers for cards that exist on PowerPC/sparc ++ if test "x$with_dri_drivers" = "xyes"; then ++ with_dri_drivers="r200 radeon swrast" ++ fi ++ ;; ++ esac + ;; + gnu*) + DEFINES="$DEFINES -DHAVE_ALIAS" +@@ -1252,6 +1277,8 @@ + AM_CONDITIONAL(HAVE_GBM, test "x$enable_gbm" = xyes) + if test "x$need_pci_id$have_libudev" = xyesyes; then + GBM_PC_REQ_PRIV="libudev >= $LIBUDEV_REQUIRED" ++elif test "x$need_libdevq" = xyes; then ++ GBM_PC_REQ_PRIV="libdevq-1.0 >= $LIBDEVQ_REQUIRED" + else + GBM_PC_REQ_PRIV="" + fi +@@ -1728,8 +1755,6 @@ + CLANG_LIBDIR=${LLVM_LIBDIR} + fi + CLANG_RESOURCE_DIR=$CLANG_LIBDIR/clang/${LLVM_VERSION} +- AS_IF([test ! -f "$CLANG_RESOURCE_DIR/include/stddef.h"], +- [AC_MSG_ERROR([Could not find clang internal header stddef.h in $CLANG_RESOURCE_DIR Use --with-clang-libdir to specify the correct path to the clang libraries.])]) + fi + else + MESA_LLVM=0 Property changes on: graphics/libGL/files/configure.ac ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/libGL/files/patch-Makefile.in =================================================================== --- graphics/libGL/files/patch-Makefile.in (revision 371006) +++ graphics/libGL/files/patch-Makefile.in (working copy) @@ -1,12 +1,14 @@ ---- Makefile.in.orig 2014-05-11 21:01:42.000000000 +0200 -+++ Makefile.in 2014-05-11 21:02:12.000000000 +0200 -@@ -87,9 +87,7 @@ +--- Makefile.in.orig 2014-05-18 10:37:51.000000000 +0200 ++++ Makefile.in 2014-05-18 10:38:21.000000000 +0200 +@@ -85,10 +85,8 @@ + $(top_srcdir)/m4/ax_gcc_builtin.m4 \ + $(top_srcdir)/m4/ax_prog_bison.m4 \ $(top_srcdir)/m4/ax_prog_flex.m4 \ - $(top_srcdir)/m4/ax_pthread.m4 \ - $(top_srcdir)/m4/ax_python_module.m4 \ -- $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ -- $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ -- $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac +- $(top_srcdir)/m4/ax_pthread.m4 $(top_srcdir)/m4/libtool.m4 \ +- $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ +- $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ +- $(top_srcdir)/VERSION $(top_srcdir)/configure.ac ++ $(top_srcdir)/m4/ax_pthread.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) Index: graphics/libGL/files/patch-configure =================================================================== --- graphics/libGL/files/patch-configure (revision 371006) +++ graphics/libGL/files/patch-configure (working copy) @@ -1,49 +1,198 @@ ---- configure.orig 2013-08-01 23:22:15.000000000 +0200 -+++ configure 2013-08-19 20:05:02.000000000 +0200 -@@ -21046,9 +21046,34 @@ - DEFINES="$DEFINES -DHAVE_PTHREAD -DUSE_EXTERNAL_DXTN_LIB=1" - DEFINES="$DEFINES -DIN_DRI_DRIVER -DHAVE_ALIAS" +--- configure.orig 2014-08-29 13:42:21.635540273 +0200 ++++ configure 2014-08-29 13:42:55.401537200 +0200 +@@ -858,6 +858,8 @@ + GLPROTO_CFLAGS + XLIBGL_LIBS + XLIBGL_CFLAGS ++LIBDEVQ_LIBS ++LIBDEVQ_CFLAGS + LIBUDEV_LIBS + LIBUDEV_CFLAGS + LIBDRM_LIBS +@@ -1146,6 +1148,8 @@ + LIBDRM_LIBS + LIBUDEV_CFLAGS + LIBUDEV_LIBS ++LIBDEVQ_CFLAGS ++LIBDEVQ_LIBS + XLIBGL_CFLAGS + XLIBGL_LIBS + GLPROTO_CFLAGS +@@ -1945,6 +1949,10 @@ + C compiler flags for LIBUDEV, overriding pkg-config + LIBUDEV_LIBS + linker flags for LIBUDEV, overriding pkg-config ++ LIBDEVQ_CFLAGS ++ C compiler flags for LIBDEVQ, overriding pkg-config ++ LIBDEVQ_LIBS ++ linker flags for LIBDEVQ, overriding pkg-config + XLIBGL_CFLAGS + C compiler flags for XLIBGL, overriding pkg-config + XLIBGL_LIBS linker flags for XLIBGL, overriding pkg-config +@@ -5086,6 +5094,7 @@ + DRI3PROTO_REQUIRED=1.0 + PRESENTPROTO_REQUIRED=1.0 + LIBUDEV_REQUIRED=151 ++LIBDEVQ_REQUIRED=0.0.2 + GLPROTO_REQUIRED=1.4.14 + LIBOMXIL_BELLAGIO_REQUIRED=0.0 + VDPAU_REQUIRED=0.4.1 +@@ -6519,7 +6528,7 @@ + test -n "$MAKE" && break + done -- if test "x$DRI_DIRS" = "xyes"; then -- DRI_DIRS="i915 i965 nouveau r200 radeon swrast" -- fi +-for ac_prog in python2 python ++for ac_prog in python2.7 python2 python + do + # Extract the first word of "$ac_prog", so it can be a program name with args. + set dummy $ac_prog; ac_word=$2 +@@ -17891,7 +17900,7 @@ + DEFINES="-DUSE_EXTERNAL_DXTN_LIB=1" + + case "$host_os" in +-linux*|*-gnu*|gnu*) ++linux*|*-gnu*|gnu*|freebsd*) + DEFINES="$DEFINES -D_GNU_SOURCE -DHAVE_PTHREAD" + ;; + solaris*) +@@ -19147,7 +19156,7 @@ + + + case "$host_os" in +-linux*) ++linux*|freebsd*) + dri3_default=yes + ;; + *) +@@ -19669,6 +19678,78 @@ + have_libudev=yes + fi + ++ ++pkg_failed=no ++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDEVQ" >&5 ++$as_echo_n "checking for LIBDEVQ... " >&6; } ++ ++if test -n "$LIBDEVQ_CFLAGS"; then ++ pkg_cv_LIBDEVQ_CFLAGS="$LIBDEVQ_CFLAGS" ++ elif test -n "$PKG_CONFIG"; then ++ if test -n "$PKG_CONFIG" && \ ++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdevq-1.0 >= \$LIBDEVQ_REQUIRED\""; } >&5 ++ ($PKG_CONFIG --exists --print-errors "libdevq-1.0 >= $LIBDEVQ_REQUIRED") 2>&5 ++ ac_status=$? ++ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ++ test $ac_status = 0; }; then ++ pkg_cv_LIBDEVQ_CFLAGS=`$PKG_CONFIG --cflags "libdevq-1.0 >= $LIBDEVQ_REQUIRED" 2>/dev/null` ++ test "x$?" != "x0" && pkg_failed=yes ++else ++ pkg_failed=yes ++fi ++ else ++ pkg_failed=untried ++fi ++if test -n "$LIBDEVQ_LIBS"; then ++ pkg_cv_LIBDEVQ_LIBS="$LIBDEVQ_LIBS" ++ elif test -n "$PKG_CONFIG"; then ++ if test -n "$PKG_CONFIG" && \ ++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdevq-1.0 >= \$LIBDEVQ_REQUIRED\""; } >&5 ++ ($PKG_CONFIG --exists --print-errors "libdevq-1.0 >= $LIBDEVQ_REQUIRED") 2>&5 ++ ac_status=$? ++ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ++ test $ac_status = 0; }; then ++ pkg_cv_LIBDEVQ_LIBS=`$PKG_CONFIG --libs "libdevq-1.0 >= $LIBDEVQ_REQUIRED" 2>/dev/null` ++ test "x$?" != "x0" && pkg_failed=yes ++else ++ pkg_failed=yes ++fi ++ else ++ pkg_failed=untried ++fi ++ ++ ++ ++if test $pkg_failed = yes; then ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++$as_echo "no" >&6; } ++ ++if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then ++ _pkg_short_errors_supported=yes ++else ++ _pkg_short_errors_supported=no ++fi ++ if test $_pkg_short_errors_supported = yes; then ++ LIBDEVQ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdevq-1.0 >= $LIBDEVQ_REQUIRED" 2>&1` ++ else ++ LIBDEVQ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdevq-1.0 >= $LIBDEVQ_REQUIRED" 2>&1` ++ fi ++ # Put the nasty error message in config.log where it belongs ++ echo "$LIBDEVQ_PKG_ERRORS" >&5 ++ ++ have_libdevq=no ++elif test $pkg_failed = untried; then ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++$as_echo "no" >&6; } ++ have_libdevq=no ++else ++ LIBDEVQ_CFLAGS=$pkg_cv_LIBDEVQ_CFLAGS ++ LIBDEVQ_LIBS=$pkg_cv_LIBDEVQ_LIBS ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ++$as_echo "yes" >&6; } ++ have_libdevq=yes ++fi ++ + # Check whether --enable-sysfs was given. + if test "${enable_sysfs+set}" = set; then : + enableval=$enable_sysfs; have_sysfs="$enableval" +@@ -20373,6 +20454,10 @@ + DEFINES="$DEFINES -DHAVE_LIBUDEV" + have_pci_id=yes + fi ++if test "$have_libdevq" = yes; then ++ DEFINES="$DEFINES -DHAVE_LIBDEVQ" ++ have_pci_id=yes ++fi + + if test "$have_sysfs" = yes; then + DEFINES="$DEFINES -DHAVE_SYSFS" +@@ -20498,6 +20583,22 @@ + *freebsd* | dragonfly* | *netbsd* | openbsd*) + DEFINES="$DEFINES -DHAVE_PTHREAD" + DEFINES="$DEFINES -DHAVE_ALIAS" ++ if test "x$enable_dri3" = xyes; then ++ DEFINES="$DEFINES -DHAVE_DRI3" ++ fi ++ ++ if test "x$have_libdevq" != xyes; then ++ as_fn_error $? "libdevq required for building DRI" "$LINENO" 5 ++ fi ++ + case "$host_cpu" in -+ x86_64|ia64) -+ # i810 is missing because there is no x86-64 system where it -+ # could *ever* be used. -+ if test "x$DRI_DIRS" = "xyes"; then -+ DRI_DIRS="i915 i965 nouveau r200 radeon swrast" ++ powerpc* | sparc*) ++ # Build only the drivers for cards that exist on PowerPC/sparc ++ if test "x$with_dri_drivers" = "xyes"; then ++ with_dri_drivers="r200 radeon swrast" + fi + ;; -+ i*86) -+ if test "x$DRI_DIRS" = "xyes"; then -+ DRI_DIRS="i915 i965 nouveau r200 radeon swrast" -+ fi -+ ;; -+ powerpc*) -+ # Build only the drivers for cards that exist on PowerPC. -+ # At some point MGA will be added, but not yet. -+ if test "x$DRI_DIRS" = "xyes"; then -+ DRI_DIRS="r200 radeon swrast" -+ fi -+ ;; -+ sparc*) -+ # Build only the drivers for cards that exist on SPARC. -+ if test "x$DRI_DIRS" = "xyes"; then -+ DRI_DIRS="r200 radeon swrast" -+ fi -+ ;; + esac -+ ;; gnu*) - DEFINES="$DEFINES -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER" -@@ -23396,7 +23421,7 @@ - radeon_llvm_check() { - LLVM_REQUIRED_VERSION_MAJOR="3" - LLVM_REQUIRED_VERSION_MINOR="2" -- if test "$LLVM_VERSION_INT" -ne "${LLVM_REQUIRED_VERSION_MAJOR}0${LLVM_REQUIRED_VERSION_MINOR}"; then -+ if test "$LLVM_VERSION_INT" -lt "${LLVM_REQUIRED_VERSION_MAJOR}0${LLVM_REQUIRED_VERSION_MINOR}"; then - as_fn_error $? "LLVM $LLVM_REQUIRED_VERSION_MAJOR.$LLVM_REQUIRED_VERSION_MINOR with R600 target enabled is required. - To use the r600/radeonsi LLVM backend, you need to fetch the LLVM source from: - git://people.freedesktop.org/~tstellar/llvm master + DEFINES="$DEFINES -DHAVE_ALIAS" +@@ -21226,6 +21327,8 @@ + + if test "x$need_pci_id$have_libudev" = xyesyes; then + GBM_PC_REQ_PRIV="libudev >= $LIBUDEV_REQUIRED" ++elif test "x$need_libdevq" = xyes; then ++ GBM_PC_REQ_PRIV="libdevq-1.0 >= $LIBDEVQ_REQUIRED" + else + GBM_PC_REQ_PRIV="" + fi +@@ -22541,9 +22644,6 @@ + CLANG_LIBDIR=${LLVM_LIBDIR} + fi + CLANG_RESOURCE_DIR=$CLANG_LIBDIR/clang/${LLVM_VERSION} +- if test ! -f "$CLANG_RESOURCE_DIR/include/stddef.h"; then : +- as_fn_error $? "Could not find clang internal header stddef.h in $CLANG_RESOURCE_DIR Use --with-clang-libdir to specify the correct path to the clang libraries." "$LINENO" 5 +-fi + fi + else + MESA_LLVM=0 Index: graphics/libGL/files/patch-src-glsl_ir_constant_expression.cpp =================================================================== --- graphics/libGL/files/patch-src-glsl_ir_constant_expression.cpp (revision 371006) +++ graphics/libGL/files/patch-src-glsl_ir_constant_expression.cpp (working copy) @@ -1,14 +0,0 @@ ---- src/glsl/ir_constant_expression.cpp.orig 2011-07-23 15:08:44.000000000 +0200 -+++ src/glsl/ir_constant_expression.cpp 2011-07-23 15:09:03.000000000 +0200 -@@ -39,6 +39,11 @@ - #include "ir_visitor.h" - #include "glsl_types.h" - -+#include -+#if __FreeBSD_version <= 704100 || (__FreeBSD_version >= 800000 && __FreeBSD_version < 802502) || (__FreeBSD_version >= 900000 && __FreeBSD_version < 900027) -+#define log2(x) (log(x) / log(2)) -+#endif -+ - static float - dot(ir_constant *op0, ir_constant *op1) - { Index: graphics/libGL/files/patch-src__gallium__drivers__r300__r300_chipset.c =================================================================== --- graphics/libGL/files/patch-src__gallium__drivers__r300__r300_chipset.c (revision 0) +++ graphics/libGL/files/patch-src__gallium__drivers__r300__r300_chipset.c (working copy) @@ -0,0 +1,24 @@ +--- ./src/gallium/drivers/r300/r300_chipset.c.orig 2014-01-06 22:15:40.000000000 +0100 ++++ ./src/gallium/drivers/r300/r300_chipset.c 2014-02-23 22:01:50.000000000 +0100 +@@ -53,6 +53,21 @@ + if (!os_get_process_name(proc_name, sizeof(proc_name))) + return; + ++#if defined(__DragonFly__) || \ ++ defined(__FreeBSD__) || \ ++ defined(__NetBSD__) || \ ++ defined(__OpenBSD__) ++ const char *progname, *program_invocation_short_name; ++ ++ progname = getprogname(); ++ program_invocation_short_name = strrchr(progname, '/'); ++ if (program_invocation_short_name) { ++ program_invocation_short_name++; ++ } else { ++ program_invocation_short_name = progname; ++ } ++#endif ++ + for (i = 0; i < Elements(list); i++) { + if (strcmp(list[i], proc_name) == 0) { + caps->zmask_ram = 0; Property changes on: graphics/libGL/files/patch-src__gallium__drivers__r300__r300_chipset.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: graphics/libGL/files/patch-src__gallium__include__pipe__p_config.h =================================================================== --- graphics/libGL/files/patch-src__gallium__include__pipe__p_config.h (revision 371006) +++ graphics/libGL/files/patch-src__gallium__include__pipe__p_config.h (working copy) @@ -1,8 +1,8 @@ ---- src/gallium/include/pipe/p_config.h.orig 2011-10-15 02:43:58.000000000 +0200 -+++ src/gallium/include/pipe/p_config.h 2012-06-28 21:27:06.000000000 +0200 -@@ -106,6 +106,13 @@ +--- ./src/gallium/include/pipe/p_config.h.orig 2014-01-23 18:02:42.000000000 +0100 ++++ ./src/gallium/include/pipe/p_config.h 2014-02-23 22:01:50.000000000 +0100 +@@ -81,6 +81,13 @@ + #define PIPE_CC_SUNPRO #endif - #endif +#if defined(__sparc__) || defined(__sparc64__) +#define PIPE_ARCH_SPARC @@ -13,13 +13,4 @@ + /* - * Endian detection. -@@ -133,7 +140,7 @@ - - #if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64) - #define PIPE_ARCH_LITTLE_ENDIAN --#elif defined(PIPE_ARCH_PPC) || defined(PIPE_ARCH_PPC_64) -+#elif defined(PIPE_ARCH_PPC) || defined(PIPE_ARCH_PPC_64) || defined(PIPE_ARCH_SPARC) || defined(PIPE_ARCH_SPARC_64) - #define PIPE_ARCH_BIG_ENDIAN - #endif - + * Processor architecture Index: graphics/libGL/files/patch-src__gallium__state_trackers__clover__util__range.hpp =================================================================== --- graphics/libGL/files/patch-src__gallium__state_trackers__clover__util__range.hpp (revision 0) +++ graphics/libGL/files/patch-src__gallium__state_trackers__clover__util__range.hpp (working copy) @@ -0,0 +1,40 @@ +From b95533b981af9a6687b41418e7cc2a5652fc2bdb Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= +Date: Fri, 7 Mar 2014 15:16:08 +0100 +Subject: [PATCH 3/3] Work around for clang 3.4 which fails to build Clover + +See: + https://bugs.freedesktop.org/show_bug.cgi?id=74098#c3 +--- + src/gallium/state_trackers/clover/util/range.hpp | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +diff --git a/src/gallium/state_trackers/clover/util/range.hpp b/src/gallium/state_trackers/clover/util/range.hpp +index afa5f77..359edda 100644 +--- src/gallium/state_trackers/clover/util/range.hpp ++++ src/gallium/state_trackers/clover/util/range.hpp +@@ -362,6 +362,12 @@ namespace clover { + return { i, i + n }; + } + ++ namespace detail { ++ template ++ using fixup_function_type = ++ typename std::conditional::value, T &, T>::type; ++ } ++ + /// + /// Create a range by transforming the contents of a number of + /// source ranges \a rs element-wise using a provided functor \a f. +@@ -369,7 +375,7 @@ namespace clover { + /// \sa adaptor_range. + /// + template +- adaptor_range ++ adaptor_range, Rs...> + map(F &&f, Rs &&... rs) { + return { std::forward(f), std::forward(rs)... }; + } +-- +1.8.5.4 + Property changes on: graphics/libGL/files/patch-src__gallium__state_trackers__clover__util__range.hpp ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/libGL/files/patch-src__gallium__winsys__svga__drm__vmw_screen_ioctl.c =================================================================== --- graphics/libGL/files/patch-src__gallium__winsys__svga__drm__vmw_screen_ioctl.c (revision 0) +++ graphics/libGL/files/patch-src__gallium__winsys__svga__drm__vmw_screen_ioctl.c (working copy) @@ -0,0 +1,14 @@ +--- ./src/gallium/winsys/svga/drm/vmw_screen_ioctl.c.orig 2014-01-06 22:15:40.000000000 +0100 ++++ ./src/gallium/winsys/svga/drm/vmw_screen_ioctl.c 2014-02-23 22:01:50.000000000 +0100 +@@ -66,6 +66,11 @@ + */ + #define SVGA3D_SURFACE_HINT_SCANOUT (1 << 9) + ++#if defined(__DragonFly__) || defined(__FreeBSD__) || \ ++ defined(__NetBSD__) || defined(__OpenBSD__) ++#define ERESTART EINTR ++#endif ++ + uint32 + vmw_ioctl_context_create(struct vmw_winsys_screen *vws) + { Property changes on: graphics/libGL/files/patch-src__gallium__winsys__svga__drm__vmw_screen_ioctl.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: graphics/libGL/files/patch-src__glsl__ir_constant_expression.cpp =================================================================== --- graphics/libGL/files/patch-src__glsl__ir_constant_expression.cpp (revision 0) +++ graphics/libGL/files/patch-src__glsl__ir_constant_expression.cpp (working copy) @@ -0,0 +1,14 @@ +--- ./src/glsl/ir_constant_expression.cpp.orig 2014-02-05 21:59:10.000000000 +0100 ++++ ./src/glsl/ir_constant_expression.cpp 2014-02-23 22:01:50.000000000 +0100 +@@ -60,6 +60,11 @@ + } + #endif + ++#include ++#if __FreeBSD_version <= 704100 || (__FreeBSD_version >= 800000 && __FreeBSD_version < 802502) || (__FreeBSD_version >= 900000 && __FreeBSD_version < 900027) ++#define log2(x) (log(x) / log(2)) ++#endif ++ + static float + dot(ir_constant *op0, ir_constant *op1) + { Property changes on: graphics/libGL/files/patch-src__glsl__ir_constant_expression.cpp ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/libGL/files/patch-src__loader__Makefile.in =================================================================== --- graphics/libGL/files/patch-src__loader__Makefile.in (revision 0) +++ graphics/libGL/files/patch-src__loader__Makefile.in (working copy) @@ -0,0 +1,20 @@ +--- src/loader/Makefile.in.orig 2014-08-29 13:44:57.595529080 +0200 ++++ src/loader/Makefile.in 2014-08-29 13:46:36.674521667 +0200 +@@ -315,6 +315,8 @@ + LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ + LIBCLC_INCLUDEDIR = @LIBCLC_INCLUDEDIR@ + LIBCLC_LIBEXECDIR = @LIBCLC_LIBEXECDIR@ ++LIBDEVQ_CFLAGS = @LIBDEVQ_CFLAGS@ ++LIBDEVQ_LIBS = @LIBDEVQ_LIBS@ + LIBDRM_CFLAGS = @LIBDRM_CFLAGS@ + LIBDRM_LIBS = @LIBDRM_LIBS@ + LIBOBJS = @LIBOBJS@ +@@ -485,7 +487,7 @@ + noinst_LTLIBRARIES = libloader.la + libloader_la_CPPFLAGS = $(DEFINES) -I$(top_srcdir)/include \ + -I$(top_srcdir)/src $(VISIBILITY_CFLAGS) $(LIBUDEV_CFLAGS) \ +- $(am__append_1) $(am__append_4) $(am__append_5) ++ $(LIBDEVQ_CFLAGS) $(am__append_1) $(am__append_4) $(am__append_5) + libloader_la_SOURCES = $(LOADER_C_FILES) $(am__append_2) + libloader_la_LIBADD = $(am__append_3) $(am__append_6) + all: all-am Property changes on: graphics/libGL/files/patch-src__loader__Makefile.in ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/libGL/files/patch-src__loader__loader.c =================================================================== --- graphics/libGL/files/patch-src__loader__loader.c (revision 0) +++ graphics/libGL/files/patch-src__loader__loader.c (working copy) @@ -0,0 +1,90 @@ +--- src/loader/loader.c.orig 2014-08-21 01:27:47.000000000 +0200 ++++ src/loader/loader.c 2014-09-04 19:57:56.384142575 +0200 +@@ -67,7 +67,7 @@ + #include + #include + #include +-#ifdef HAVE_LIBUDEV ++#if defined(HAVE_LIBUDEV) || defined(HAVE_LIBDEVQ) + #include + #include + #include +@@ -488,6 +488,53 @@ + } + #endif + ++#if defined(HAVE_LIBDEVQ) ++#include ++ ++static void *devq_handle = NULL; ++ ++static void * ++devq_dlopen_handle(void) ++{ ++ if (!devq_handle) { ++ devq_handle = dlopen("libdevq.so.0", RTLD_LOCAL | RTLD_LAZY); ++ } ++ ++ return devq_handle; ++} ++ ++static void * ++asserted_dlsym(void *dlopen_handle, const char *name) ++{ ++ void *result = dlsym(dlopen_handle, name); ++ assert(result); ++ return result; ++} ++ ++#define DEVQ_SYMBOL(ret, name, args) \ ++ ret (*name) args = asserted_dlsym(devq_dlopen_handle(), #name); ++ ++static int ++devq_get_pci_id_from_fd(int fd, int *vendor_id, int *chip_id) ++{ ++ int ret; ++ DEVQ_SYMBOL(int, devq_device_get_pciid_from_fd, ++ (int fd, int *vendor_id, int *chip_id)); ++ ++ *chip_id = -1; ++ ++ ret = devq_device_get_pciid_from_fd(fd, vendor_id, chip_id); ++ if (ret < 0) { ++ log_(_LOADER_WARNING, "MESA-LOADER: could not get PCI ID\n"); ++ goto out; ++ } ++ ++out: ++ return (*chip_id >= 0); ++} ++ ++#endif ++ + #if !defined(__NOT_HAVE_DRM_H) + /* for i915 */ + #include +@@ -571,6 +618,10 @@ + if (sysfs_get_pci_id_for_fd(fd, vendor_id, chip_id)) + return 1; + #endif ++#if HAVE_LIBDEVQ ++ if (devq_get_pci_id_from_fd(fd, vendor_id, chip_id)) ++ return 1; ++#endif + #if !defined(__NOT_HAVE_DRM_H) + if (drm_get_pci_id_for_fd(fd, vendor_id, chip_id)) + return 1; +@@ -665,6 +716,13 @@ + if ((result = sysfs_get_device_name_for_fd(fd))) + return result; + #endif ++#if HAVE_LIBDEVQ ++#if 0 ++/* XXX implement this function in libdevq */ ++ if ((result = devq_device_get_name_for_fd(fd))) ++ return result; ++#endif ++#endif + return result; + } + Property changes on: graphics/libGL/files/patch-src__loader__loader.c ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/libGL/files/patch-src__mapi__entry_x86-64_tls.h =================================================================== --- graphics/libGL/files/patch-src__mapi__entry_x86-64_tls.h (revision 0) +++ graphics/libGL/files/patch-src__mapi__entry_x86-64_tls.h (working copy) @@ -0,0 +1,13 @@ +--- src/mapi/entry_x86-64_tls.h.orig 2013-10-05 05:59:22.000000000 +0200 ++++ src/mapi/entry_x86-64_tls.h 2014-07-29 20:28:05.000000000 +0200 +@@ -63,8 +63,8 @@ entry_patch_public(void) + { + } + +-static char +-x86_64_entry_start[]; ++extern char ++x86_64_entry_start[] __attribute__((visibility("hidden"))); + + mapi_func + entry_get_public(int slot) Property changes on: graphics/libGL/files/patch-src__mapi__entry_x86-64_tls.h ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/libGL/files/patch-src__mapi__entry_x86_tls.h =================================================================== --- graphics/libGL/files/patch-src__mapi__entry_x86_tls.h (revision 0) +++ graphics/libGL/files/patch-src__mapi__entry_x86_tls.h (working copy) @@ -0,0 +1,13 @@ +--- src/mapi/entry_x86_tls.h.orig 2013-10-05 05:59:22.000000000 +0200 ++++ src/mapi/entry_x86_tls.h 2014-07-29 20:28:05.000000000 +0200 +@@ -73,8 +73,8 @@ __asm__(".text"); + extern unsigned long + x86_current_tls(); + +-static char x86_entry_start[]; +-static char x86_entry_end[]; ++extern char x86_entry_start[] __attribute__((visibility("hidden"))); ++extern char x86_entry_end[] __attribute__((visibility("hidden"))); + + void + entry_patch_public(void) Property changes on: graphics/libGL/files/patch-src__mapi__entry_x86_tls.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: graphics/libGL/files/patch-src__mapi__entry_x86_tsd.h =================================================================== --- graphics/libGL/files/patch-src__mapi__entry_x86_tsd.h (revision 0) +++ graphics/libGL/files/patch-src__mapi__entry_x86_tsd.h (working copy) @@ -0,0 +1,13 @@ +--- src/mapi/entry_x86_tsd.h.orig 2013-10-05 05:59:22.000000000 +0200 ++++ src/mapi/entry_x86_tsd.h 2014-07-29 20:28:05.000000000 +0200 +@@ -60,8 +60,8 @@ __asm__(".balign 32\n" + #include + #include "u_execmem.h" + +-static const char x86_entry_start[]; +-static const char x86_entry_end[]; ++extern const char x86_entry_start[] __attribute__((visibility("hidden"))); ++extern const char x86_entry_end[] __attribute__((visibility("hidden"))); + + void + entry_patch_public(void) Property changes on: graphics/libGL/files/patch-src__mapi__entry_x86_tsd.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: graphics/libGL/files/patch-src__mapi__glapi__gen__gl_gentable.py =================================================================== --- graphics/libGL/files/patch-src__mapi__glapi__gen__gl_gentable.py (revision 0) +++ graphics/libGL/files/patch-src__mapi__glapi__gen__gl_gentable.py (working copy) @@ -0,0 +1,11 @@ +--- src/mapi/glapi/gen/gl_gentable.py.orig 2014-08-31 01:21:41.368693630 +0200 ++++ src/mapi/glapi/gen/gl_gentable.py 2014-08-31 01:23:09.451686631 +0200 +@@ -42,7 +42,7 @@ + #endif + + #if (defined(GLXEXT) && defined(HAVE_BACKTRACE)) \\ +- || (!defined(GLXEXT) && defined(DEBUG) && !defined(_WIN32_WCE) && !defined(__CYGWIN__) && !defined(__MINGW32__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__)) ++ || (!defined(GLXEXT) && defined(DEBUG) && !defined(_WIN32_WCE) && !defined(__CYGWIN__) && !defined(__MINGW32__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__)) + #define USE_BACKTRACE + #endif + Property changes on: graphics/libGL/files/patch-src__mapi__glapi__gen__gl_gentable.py ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: graphics/libGL/files/patch-src__mesa__main__compiler.h =================================================================== --- graphics/libGL/files/patch-src__mesa__main__compiler.h (revision 0) +++ graphics/libGL/files/patch-src__mesa__main__compiler.h (working copy) @@ -0,0 +1,12 @@ +--- ./src/mesa/main/compiler.h.orig 2014-01-23 18:02:42.000000000 +0100 ++++ ./src/mesa/main/compiler.h 2014-02-23 22:01:50.000000000 +0100 +@@ -162,6 +162,9 @@ + #if defined(__linux__) + #include + #define CPU_TO_LE32( x ) bswap_32( x ) ++#elif defined(__FreeBSD__) ++#include ++#define CPU_TO_LE32( x ) bswap32( x ) + #elif defined(__APPLE__) + #include + #define CPU_TO_LE32( x ) CFSwapInt32HostToLittle( x ) Property changes on: graphics/libGL/files/patch-src__mesa__main__compiler.h ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/libGL/files/patch-src__mesa__main__imports.c =================================================================== --- graphics/libGL/files/patch-src__mesa__main__imports.c (revision 0) +++ graphics/libGL/files/patch-src__mesa__main__imports.c (working copy) @@ -0,0 +1,11 @@ +--- src/mesa/main/imports.c.orig 2014-05-28 09:50:40.000000000 +0200 ++++ src/mesa/main/imports.c 2014-05-28 09:50:56.000000000 +0200 +@@ -571,7 +571,7 @@ + { + #if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__) && \ + !defined(ANDROID) && !defined(__HAIKU__) && !defined(__UCLIBC__) && \ +- !defined(__NetBSD__) ++ !defined(__DragonFly__) && !defined(__NetBSD__) + static locale_t loc = NULL; + if (!loc) { + loc = newlocale(LC_CTYPE_MASK, "C", NULL); Property changes on: graphics/libGL/files/patch-src__mesa__main__imports.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: graphics/libGL/files/patch-src_gallium_drivers_r300_r300-chipset.c =================================================================== --- graphics/libGL/files/patch-src_gallium_drivers_r300_r300-chipset.c (revision 371006) +++ graphics/libGL/files/patch-src_gallium_drivers_r300_r300-chipset.c (working copy) @@ -1,26 +0,0 @@ -diff --git a/src/gallium/drivers/r300/r300_chipset.c b/src/gallium/drivers/r300/r300_chipset.c -index 11061ed..daf990e 100644 ---- src/gallium/drivers/r300/r300_chipset.c -+++ src/gallium/drivers/r300/r300_chipset.c -@@ -48,6 +48,21 @@ static void r300_apply_hyperz_blacklist(struct r300_capabilities* caps) - }; - int i; - -+#if defined(__DragonFly__) || \ -+ defined(__FreeBSD__) || \ -+ defined(__NetBSD__) || \ -+ defined(__OpenBSD__) -+ const char *progname, *program_invocation_short_name; -+ -+ progname = getprogname(); -+ program_invocation_short_name = strrchr(progname, '/'); -+ if (program_invocation_short_name) { -+ program_invocation_short_name++; -+ } else { -+ program_invocation_short_name = progname; -+ } -+#endif -+ - for (i = 0; i < Elements(list); i++) { - if (strcmp(list[i], program_invocation_short_name) == 0) { - caps->zmask_ram = 0; Index: graphics/libGL/files/patch-src_gallium_drivers_r600_r600-asm.c =================================================================== --- graphics/libGL/files/patch-src_gallium_drivers_r600_r600-asm.c (revision 371006) +++ graphics/libGL/files/patch-src_gallium_drivers_r600_r600-asm.c (working copy) @@ -1,15 +0,0 @@ ---- src/gallium/drivers/r600/r600_asm.c.orig 2013-03-20 00:28:25.000000000 +0100 -+++ src/gallium/drivers/r600/r600_asm.c 2013-06-26 23:29:14.000000000 +0200 -@@ -27,7 +27,12 @@ - #include "r600d.h" - - #include -+#if defined(__linux__) - #include -+#elif defined(__FreeBSD__) || defined(__DragonFly__) -+#include -+#define bswap_32(x) bswap32((x)) -+#endif - #include "util/u_memory.h" - #include "pipe/p_shader_tokens.h" - Index: graphics/libGL/files/patch-src_gallium_drivers_r600_r600-shader.c =================================================================== --- graphics/libGL/files/patch-src_gallium_drivers_r600_r600-shader.c (revision 371006) +++ graphics/libGL/files/patch-src_gallium_drivers_r600_r600-shader.c (working copy) @@ -1,15 +0,0 @@ ---- src/gallium/drivers/r600/r600_shader.c.orig 2013-05-16 19:38:54.000000000 +0200 -+++ src/gallium/drivers/r600/r600_shader.c 2013-06-26 23:26:02.000000000 +0200 -@@ -35,7 +35,12 @@ - #include "util/u_memory.h" - #include - #include -+#if defined(__linux__) - #include -+#elif defined(__FreeBSD__) || defined(__DragonFly__) -+#include -+#define bswap_32(x) bswap32((x)) -+#endif - - /* CAYMAN notes - Why CAYMAN got loops for lots of instructions is explained here. Index: graphics/libGL/files/patch-src_gallium_drivers_r600_r600_state_common.c =================================================================== --- graphics/libGL/files/patch-src_gallium_drivers_r600_r600_state_common.c (revision 371006) +++ graphics/libGL/files/patch-src_gallium_drivers_r600_r600_state_common.c (working copy) @@ -1,15 +0,0 @@ ---- src/gallium/drivers/r600/r600_state_common.c.orig 2013-03-06 00:25:39.000000000 +0100 -+++ src/gallium/drivers/r600/r600_state_common.c 2013-06-26 23:26:02.000000000 +0200 -@@ -33,7 +33,12 @@ - #include "util/u_memory.h" - #include "util/u_upload_mgr.h" - #include "tgsi/tgsi_parse.h" -+#if defined(__linux__) - #include -+#elif defined(__FreeBSD__) || defined(__DragonFly__) -+#include -+#define bswap_32(x) bswap32((x)) -+#endif - - #define R600_PRIM_RECTANGLE_LIST PIPE_PRIM_MAX - Index: graphics/libGL/files/patch-src_gallium_drivers_radeon_radeon-llvm-emit.cpp =================================================================== --- graphics/libGL/files/patch-src_gallium_drivers_radeon_radeon-llvm-emit.cpp (revision 371006) +++ graphics/libGL/files/patch-src_gallium_drivers_radeon_radeon-llvm-emit.cpp (working copy) @@ -1,28 +0,0 @@ ---- src/gallium/drivers/radeon/radeon_llvm_emit.cpp.orig 2013-08-19 21:23:06.000000000 +0200 -+++ src/gallium/drivers/radeon/radeon_llvm_emit.cpp 2013-08-19 21:30:58.000000000 +0200 -@@ -25,13 +25,13 @@ - */ - #include "radeon_llvm_emit.h" - --#include --#include -+#include -+#include - #include - #include - #include - #include --#include -+#include - #include - #include - #include -@@ -39,7 +39,7 @@ - #include - #include - #include --#include -+#include - - #include - #include Index: graphics/libGL/files/patch-src_gallium_drivers_radeonsi_r600-buffer.c =================================================================== --- graphics/libGL/files/patch-src_gallium_drivers_radeonsi_r600-buffer.c (revision 371006) +++ graphics/libGL/files/patch-src_gallium_drivers_radeonsi_r600-buffer.c (working copy) @@ -1,16 +0,0 @@ ---- src/gallium/drivers/radeonsi/r600_buffer.c.orig 2013-08-01 00:56:45.000000000 +0200 -+++ src/gallium/drivers/radeonsi/r600_buffer.c 2013-08-19 21:36:02.000000000 +0200 -@@ -24,7 +24,13 @@ - * Jerome Glisse - * Corbin Simpson - */ -+ -+#if defined(__linux__) - #include -+#elif defined(__FreeBSD__) || defined(__DragonFly__) -+#include -+#define bswap_32(x) bswap32((x)) -+#endif - - #include "pipe/p_screen.h" - #include "util/u_format.h" Index: graphics/libGL/files/patch-src_gallium_winsys_svga_drm_vmw-screen-ioctl.c =================================================================== --- graphics/libGL/files/patch-src_gallium_winsys_svga_drm_vmw-screen-ioctl.c (revision 371006) +++ graphics/libGL/files/patch-src_gallium_winsys_svga_drm_vmw-screen-ioctl.c (working copy) @@ -1,18 +0,0 @@ -diff --git a/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c b/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c -index 36888dc..62a6e6a 100644 ---- src/gallium/winsys/svga/drm/vmw_screen_ioctl.c -+++ src/gallium/winsys/svga/drm/vmw_screen_ioctl.c -@@ -66,6 +66,13 @@ struct vmw_region - */ - #define SVGA3D_SURFACE_HINT_SCANOUT (1 << 9) - -+#if defined(__DragonFly__) || \ -+ defined(__FreeBSD__) || \ -+ defined(__NetBSD__) || \ -+ defined(__OpenBSD__) -+#define ERESTART EINTR -+#endif -+ - uint32 - vmw_ioctl_context_create(struct vmw_winsys_screen *vws) - { Index: graphics/libGL/files/patch-src_mapi_glapi_gen_gl-gentable.py =================================================================== --- graphics/libGL/files/patch-src_mapi_glapi_gen_gl-gentable.py (revision 371006) +++ graphics/libGL/files/patch-src_mapi_glapi_gen_gl-gentable.py (working copy) @@ -1,11 +0,0 @@ ---- src/mapi/glapi/gen/gl_gentable.py.orig 2013-07-17 15:41:13.000000000 +0200 -+++ src/mapi/glapi/gen/gl_gentable.py 2013-07-17 15:41:55.000000000 +0200 -@@ -42,7 +42,7 @@ - #endif - - #if (defined(GLXEXT) && defined(HAVE_BACKTRACE)) \\ -- || (!defined(GLXEXT) && defined(DEBUG) && !defined(_WIN32_WCE) && !defined(__CYGWIN__)) -+ || (!defined(GLXEXT) && defined(DEBUG) && !defined(_WIN32_WCE) && !defined(__CYGWIN__) && !defined(__OpenBSD__) && !defined(__FreeBSD__)) - #define USE_BACKTRACE - #endif - Index: graphics/libGL/files/patch-src_mesa_drivers_dri_common_Makefile.in =================================================================== --- graphics/libGL/files/patch-src_mesa_drivers_dri_common_Makefile.in (revision 371006) +++ graphics/libGL/files/patch-src_mesa_drivers_dri_common_Makefile.in (working copy) @@ -1,17 +0,0 @@ ---- src/mesa/drivers/dri/common/Makefile.in.orig 2013-04-20 14:50:15.000000000 +0000 -+++ src/mesa/drivers/dri/common/Makefile.in 2013-04-20 15:02:05.000000000 +0000 -@@ -123,11 +123,11 @@ - am__depfiles_maybe = depfiles - am__mv = mv -f - COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ -- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -+ $(AM_CFLAGS) $(CPPFLAGS) $(CFLAGS) - LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ -- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ -- $(AM_CFLAGS) $(CFLAGS) -+ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(AM_CFLAGS) $(CPPFLAGS) \ -+ $(CFLAGS) - AM_V_CC = $(am__v_CC_@AM_V@) - am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) - am__v_CC_0 = @echo " CC " $@; Index: graphics/libGL/files/patch-src_mesa_drivers_dri_common_xmlpool_Makefile.in =================================================================== --- graphics/libGL/files/patch-src_mesa_drivers_dri_common_xmlpool_Makefile.in (revision 371006) +++ graphics/libGL/files/patch-src_mesa_drivers_dri_common_xmlpool_Makefile.in (working copy) @@ -1,11 +0,0 @@ ---- src/mesa/drivers/dri/common/xmlpool/Makefile.in.orig 2013-07-02 22:42:09.000000000 +0200 -+++ src/mesa/drivers/dri/common/xmlpool/Makefile.in 2013-07-02 22:53:30.000000000 +0200 -@@ -639,7 +639,7 @@ - # Update .mo files from the corresponding .po files. - %/LC_MESSAGES/options.mo: %.po - @mo="$@"; \ -- lang=$${mo%%/*}; \ -+ lang=$*; \ - echo "Updating ($$lang) $@ from $?."; \ - mkdir -p $$lang/LC_MESSAGES; \ - msgfmt -o $@ $? Index: graphics/libGL/files/patch-src_mesa_main_compiler.h =================================================================== --- graphics/libGL/files/patch-src_mesa_main_compiler.h (revision 371006) +++ graphics/libGL/files/patch-src_mesa_main_compiler.h (working copy) @@ -1,12 +0,0 @@ ---- src/mesa/main/compiler.h.orig 2013-04-06 04:01:09.000000000 +0200 -+++ src/mesa/main/compiler.h 2013-06-26 23:26:02.000000000 +0200 -@@ -171,6 +171,9 @@ - #if defined(__linux__) - #include - #define CPU_TO_LE32( x ) bswap_32( x ) -+#elif defined(__FreeBSD__) -+#include -+#define CPU_TO_LE32( x ) bswap32( x ) - #elif defined(__APPLE__) - #include - #define CPU_TO_LE32( x ) CFSwapInt32HostToLittle( x ) Index: graphics/libGL/files/patch-src_mesa_main_imports.c =================================================================== --- graphics/libGL/files/patch-src_mesa_main_imports.c (revision 371006) +++ graphics/libGL/files/patch-src_mesa_main_imports.c (working copy) @@ -1,10 +0,0 @@ ---- src/mesa/main/imports.c.orig 2013-10-05 03:59:22.000000000 +0000 -+++ src/mesa/main/imports.c -@@ -566,6 +566,7 @@ float - _mesa_strtof( const char *s, char **end ) - { - #if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__) && \ -+ !defined(__DragonFly__) && \ - !defined(ANDROID) && !defined(__HAIKU__) && !defined(__UCLIBC__) - static locale_t loc = NULL; - if (!loc) { Index: graphics/libGL/files/pkg-install.in =================================================================== --- graphics/libGL/files/pkg-install.in (revision 371006) +++ graphics/libGL/files/pkg-install.in (working copy) @@ -12,6 +12,7 @@ /bin/ln -f ${PREFIX}/lib/.nvidia/libGL.so.1 ${PREFIX}/lib/libGL.so.1 else /bin/ln -f ${PREFIX}/lib/.libGL/libGL.so.1 ${PREFIX}/lib/libGL.so + /bin/ln -f ${PREFIX}/lib/.libGL/libGL.so.1.2.0 ${PREFIX}/lib/libGL.so.1.2.0 /bin/ln -f ${PREFIX}/lib/.libGL/libGL.so.1 ${PREFIX}/lib/libGL.so.1 fi ;; Index: graphics/libGL/files/src__loader__Makefile.am =================================================================== --- graphics/libGL/files/src__loader__Makefile.am (revision 0) +++ graphics/libGL/files/src__loader__Makefile.am (working copy) @@ -0,0 +1,12 @@ +--- ./src/loader/Makefile.am.orig 2014-02-05 21:59:10.000000000 +0100 ++++ ./src/loader/Makefile.am 2014-02-23 22:01:50.000000000 +0100 +@@ -27,7 +27,8 @@ + $(DEFINES) \ + -I$(top_srcdir)/include \ + $(VISIBILITY_CFLAGS) \ +- $(LIBUDEV_CFLAGS) ++ $(LIBUDEV_CFLAGS) \ ++ $(LIBDEVQ_CFLAGS) + + if !HAVE_LIBDRM + libloader_la_CPPFLAGS += \ Property changes on: graphics/libGL/files/src__loader__Makefile.am ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/libGL/files-old/patch-Makefile.in =================================================================== --- graphics/libGL/files-old/patch-Makefile.in (revision 0) +++ graphics/libGL/files-old/patch-Makefile.in (working copy) @@ -0,0 +1,13 @@ +--- Makefile.in.orig 2014-05-11 21:01:42.000000000 +0200 ++++ Makefile.in 2014-05-11 21:02:12.000000000 +0200 +@@ -87,9 +87,7 @@ + $(top_srcdir)/m4/ax_prog_flex.m4 \ + $(top_srcdir)/m4/ax_pthread.m4 \ + $(top_srcdir)/m4/ax_python_module.m4 \ +- $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ +- $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ +- $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac ++ $(top_srcdir)/configure.ac + am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) + am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ Property changes on: graphics/libGL/files-old/patch-Makefile.in ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/libGL/files-old/patch-configure =================================================================== --- graphics/libGL/files-old/patch-configure (revision 371006) +++ graphics/libGL/files-old/patch-configure (working copy) @@ -1,36 +1,52 @@ ---- configure.orig 2013-12-12 18:52:32.304356162 +0000 -+++ configure 2013-12-12 19:50:44.434111814 +0000 -@@ -5393,7 +5393,7 @@ - ;; - *freebsd* | dragonfly*) - case "$host_cpu" in -- i*86|x86_64|powerpc*|sparc*) default_driver="dri";; -+ i*86|x86_64|ia64|powerpc*|sparc*) default_driver="dri";; - esac - ;; - esac -@@ -6946,12 +6946,35 @@ - CXXFLAGS="$CXXFLAGS -ansi -pedantic" - fi +--- configure.orig 2014-03-14 20:50:56.000000000 +0100 ++++ configure 2014-03-14 20:51:25.000000000 +0100 +@@ -779,6 +779,8 @@ + GBM_PC_REQ_PRIV + LIBUDEV_LIBS + LIBUDEV_CFLAGS ++LIBDEVQ_LIBS ++LIBDEVQ_CFLAGS + OSMESA_PC_LIB_PRIV + OSMESA_PC_REQ + OSMESA_MESA_DEPS +@@ -1126,6 +1128,8 @@ + NOUVEAU_LIBS + RADEON_CFLAGS + RADEON_LIBS ++LIBDEVQ_CFLAGS ++LIBDEVQ_LIBS + LIBUDEV_CFLAGS + LIBUDEV_LIBS + XORG_CFLAGS +@@ -1930,6 +1934,10 @@ + RADEON_CFLAGS + C compiler flags for RADEON, overriding pkg-config + RADEON_LIBS linker flags for RADEON, overriding pkg-config ++ LIBDEVQ_CFLAGS ++ C compiler flags for LIBDEVQ, overriding pkg-config ++ LIBDEVQ_LIBS ++ linker flags for LIBDEVQ, overriding pkg-config + LIBUDEV_CFLAGS + C compiler flags for LIBUDEV, overriding pkg-config + LIBUDEV_LIBS +@@ -21184,9 +21192,34 @@ + DEFINES="$DEFINES -DHAVE_PTHREAD -DUSE_EXTERNAL_DXTN_LIB=1" + DEFINES="$DEFINES -DIN_DRI_DRIVER -DHAVE_ALIAS" -- # ffb and gamma are missing because they have not been converted -- # to use the new interface. - if test "x$DRI_DIRS" = "xyes"; then -- DRI_DIRS="i810 i915 i965 mach64 mga r128 r200 r300 r600 radeon tdfx \ +- DRI_DIRS="i915 i965 nouveau r200 radeon swrast" +- fi + case "$host_cpu" in + x86_64|ia64) + # i810 is missing because there is no x86-64 system where it + # could *ever* be used. + if test "x$DRI_DIRS" = "xyes"; then -+ DRI_DIRS="i915 i965 mach64 mga r128 r200 r300 r600 radeon tdfx \ - unichrome savage sis swrast" -- fi ++ DRI_DIRS="i915 i965 nouveau r200 radeon swrast" + fi + ;; + i*86) + if test "x$DRI_DIRS" = "xyes"; then -+ DRI_DIRS="i810 i915 i965 mach64 mga r128 r200 r300 r600 radeon tdfx \ -+ unichrome savage sis swrast" ++ DRI_DIRS="i915 i965 nouveau r200 radeon swrast" + fi + ;; + powerpc*) @@ -37,16 +53,372 @@ + # Build only the drivers for cards that exist on PowerPC. + # At some point MGA will be added, but not yet. + if test "x$DRI_DIRS" = "xyes"; then -+ DRI_DIRS="mach64 r128 r200 r300 r600 radeon tdfx swrast" -+ fi ++ DRI_DIRS="r200 radeon swrast" ++ fi + ;; + sparc*) + # Build only the drivers for cards that exist on SPARC. + if test "x$DRI_DIRS" = "xyes"; then -+ DRI_DIRS="mach64 r128 r200 r300 r600 radeon swrast" ++ DRI_DIRS="r200 radeon swrast" + fi + ;; + esac ++ ;; gnu*) DEFINES="$DEFINES -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER" +@@ -21684,6 +21717,81 @@ + if test "x$enable_gbm" = xyes; then + SRC_DIRS="$SRC_DIRS gbm" + ++ case "$host_os" in ++ *freebsd*) ++ ++pkg_failed=no ++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDEVQ" >&5 ++$as_echo_n "checking for LIBDEVQ... " >&6; } ++ ++if test -n "$LIBDEVQ_CFLAGS"; then ++ pkg_cv_LIBDEVQ_CFLAGS="$LIBDEVQ_CFLAGS" ++ elif test -n "$PKG_CONFIG"; then ++ if test -n "$PKG_CONFIG" && \ ++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdevq-1.0\""; } >&5 ++ ($PKG_CONFIG --exists --print-errors "libdevq-1.0") 2>&5 ++ ac_status=$? ++ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ++ test $ac_status = 0; }; then ++ pkg_cv_LIBDEVQ_CFLAGS=`$PKG_CONFIG --cflags "libdevq-1.0" 2>/dev/null` ++ test "x$?" != "x0" && pkg_failed=yes ++else ++ pkg_failed=yes ++fi ++ else ++ pkg_failed=untried ++fi ++if test -n "$LIBDEVQ_LIBS"; then ++ pkg_cv_LIBDEVQ_LIBS="$LIBDEVQ_LIBS" ++ elif test -n "$PKG_CONFIG"; then ++ if test -n "$PKG_CONFIG" && \ ++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdevq-1.0\""; } >&5 ++ ($PKG_CONFIG --exists --print-errors "libdevq-1.0") 2>&5 ++ ac_status=$? ++ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ++ test $ac_status = 0; }; then ++ pkg_cv_LIBDEVQ_LIBS=`$PKG_CONFIG --libs "libdevq-1.0" 2>/dev/null` ++ test "x$?" != "x0" && pkg_failed=yes ++else ++ pkg_failed=yes ++fi ++ else ++ pkg_failed=untried ++fi ++ ++ ++ ++if test $pkg_failed = yes; then ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++$as_echo "no" >&6; } ++ ++if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then ++ _pkg_short_errors_supported=yes ++else ++ _pkg_short_errors_supported=no ++fi ++ if test $_pkg_short_errors_supported = yes; then ++ LIBDEVQ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdevq-1.0" 2>&1` ++ else ++ LIBDEVQ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdevq-1.0" 2>&1` ++ fi ++ # Put the nasty error message in config.log where it belongs ++ echo "$LIBDEVQ_PKG_ERRORS" >&5 ++ ++ as_fn_error $? "gbm needs libdevq" "$LINENO" 5 ++elif test $pkg_failed = untried; then ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++$as_echo "no" >&6; } ++ as_fn_error $? "gbm needs libdevq" "$LINENO" 5 ++else ++ LIBDEVQ_CFLAGS=$pkg_cv_LIBDEVQ_CFLAGS ++ LIBDEVQ_LIBS=$pkg_cv_LIBDEVQ_LIBS ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ++$as_echo "yes" >&6; } ++ ++fi ++ ;; ++ *) + + pkg_failed=no + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5 +@@ -21755,6 +21863,8 @@ + $as_echo "yes" >&6; } + + fi ++ ;; ++ esac + + if test "x$enable_dri" = xyes; then + GBM_BACKEND_DIRS="$GBM_BACKEND_DIRS dri" +@@ -21763,7 +21873,14 @@ + fi + fi + fi +-GBM_PC_REQ_PRIV="libudev" ++case "$host_os" in ++*freebsd*) ++ GBM_PC_REQ_PRIV="libdevq-1.0" ++ ;; ++*) ++ GBM_PC_REQ_PRIV="libudev" ++ ;; ++esac + GBM_PC_LIB_PRIV="$DLOPEN_LIBS" + + +@@ -21782,6 +21899,81 @@ + + if test "$enable_static" != yes; then + # build egl_glx when libGL is built ++ case "$host_os" in ++ *freebsd*) ++ ++pkg_failed=no ++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDEVQ" >&5 ++$as_echo_n "checking for LIBDEVQ... " >&6; } ++ ++if test -n "$LIBDEVQ_CFLAGS"; then ++ pkg_cv_LIBDEVQ_CFLAGS="$LIBDEVQ_CFLAGS" ++ elif test -n "$PKG_CONFIG"; then ++ if test -n "$PKG_CONFIG" && \ ++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdevq-1.0\""; } >&5 ++ ($PKG_CONFIG --exists --print-errors "libdevq-1.0") 2>&5 ++ ac_status=$? ++ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ++ test $ac_status = 0; }; then ++ pkg_cv_LIBDEVQ_CFLAGS=`$PKG_CONFIG --cflags "libdevq-1.0" 2>/dev/null` ++ test "x$?" != "x0" && pkg_failed=yes ++else ++ pkg_failed=yes ++fi ++ else ++ pkg_failed=untried ++fi ++if test -n "$LIBDEVQ_LIBS"; then ++ pkg_cv_LIBDEVQ_LIBS="$LIBDEVQ_LIBS" ++ elif test -n "$PKG_CONFIG"; then ++ if test -n "$PKG_CONFIG" && \ ++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdevq-1.0\""; } >&5 ++ ($PKG_CONFIG --exists --print-errors "libdevq-1.0") 2>&5 ++ ac_status=$? ++ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ++ test $ac_status = 0; }; then ++ pkg_cv_LIBDEVQ_LIBS=`$PKG_CONFIG --libs "libdevq-1.0" 2>/dev/null` ++ test "x$?" != "x0" && pkg_failed=yes ++else ++ pkg_failed=yes ++fi ++ else ++ pkg_failed=untried ++fi ++ ++ ++ ++if test $pkg_failed = yes; then ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++$as_echo "no" >&6; } ++ ++if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then ++ _pkg_short_errors_supported=yes ++else ++ _pkg_short_errors_supported=no ++fi ++ if test $_pkg_short_errors_supported = yes; then ++ LIBDEVQ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdevq-1.0" 2>&1` ++ else ++ LIBDEVQ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdevq-1.0" 2>&1` ++ fi ++ # Put the nasty error message in config.log where it belongs ++ echo "$LIBDEVQ_PKG_ERRORS" >&5 ++ ++ have_libdevq=no ++elif test $pkg_failed = untried; then ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++$as_echo "no" >&6; } ++ have_libdevq=no ++else ++ LIBDEVQ_CFLAGS=$pkg_cv_LIBDEVQ_CFLAGS ++ LIBDEVQ_LIBS=$pkg_cv_LIBDEVQ_LIBS ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ++$as_echo "yes" >&6; } ++ have_libdevq=yes ++fi ++ ;; ++ *) + + pkg_failed=no + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5 +@@ -21853,8 +22045,12 @@ + $as_echo "yes" >&6; } + have_libudev=yes + fi ++ ;; ++ esac + if test "$have_libudev" = yes; then + DEFINES="$DEFINES -DHAVE_LIBUDEV" ++ elif test "$have_libdevq" = yes; then ++ DEFINES="$DEFINES -DHAVE_LIBDEVQ" + fi + + if test "x$enable_dri" = xyes; then +@@ -23053,9 +23249,19 @@ + ;; + esac + +- case "$plat$have_libudev" in +- waylandno|drmno) +- as_fn_error $? "cannot build $plat platfrom without udev" "$LINENO" 5 ;; ++ case "$host_os" in ++ *freebsd*) ++ case "$plat$have_libdevq" in ++ waylandno|drmno) ++ as_fn_error $? "cannot build $plat platfrom without libdevq" "$LINENO" 5 ;; ++ esac ++ ;; ++ *) ++ case "$plat$have_libudev" in ++ waylandno|drmno) ++ as_fn_error $? "cannot build $plat platfrom without udev" "$LINENO" 5 ;; ++ esac ++ ;; + esac + done + +@@ -23348,29 +23554,6 @@ + CLANG_LIBDIR=${LLVM_LIBDIR} + fi + CLANG_RESOURCE_DIR=$CLANG_LIBDIR/clang/${LLVM_VERSION} +- as_ac_File=`$as_echo "ac_cv_file_"$CLANG_RESOURCE_DIR/include/stddef.h"" | $as_tr_sh` +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"$CLANG_RESOURCE_DIR/include/stddef.h\"" >&5 +-$as_echo_n "checking for \"$CLANG_RESOURCE_DIR/include/stddef.h\"... " >&6; } +-if eval \${$as_ac_File+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- test "$cross_compiling" = yes && +- as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 +-if test -r ""$CLANG_RESOURCE_DIR/include/stddef.h""; then +- eval "$as_ac_File=yes" +-else +- eval "$as_ac_File=no" +-fi +-fi +-eval ac_res=\$$as_ac_File +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +-$as_echo "$ac_res" >&6; } +-if eval test \"x\$"$as_ac_File"\" = x"yes"; then : +- +-else +- as_fn_error $? "Could not find clang internal header stddef.h in $CLANG_RESOURCE_DIR Use --with-clang-libdir to specify the correct path to the clang libraries." "$LINENO" 5 +-fi +- + fi + else + MESA_LLVM=0 +@@ -23453,6 +23636,81 @@ + + gallium_require_drm_loader() { + if test "x$enable_gallium_loader" = xyes; then ++ case "$host_os" in ++ *freebsd*) ++ ++pkg_failed=no ++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDEVQ" >&5 ++$as_echo_n "checking for LIBDEVQ... " >&6; } ++ ++if test -n "$LIBDEVQ_CFLAGS"; then ++ pkg_cv_LIBDEVQ_CFLAGS="$LIBDEVQ_CFLAGS" ++ elif test -n "$PKG_CONFIG"; then ++ if test -n "$PKG_CONFIG" && \ ++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdevq-1.0\""; } >&5 ++ ($PKG_CONFIG --exists --print-errors "libdevq-1.0") 2>&5 ++ ac_status=$? ++ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ++ test $ac_status = 0; }; then ++ pkg_cv_LIBDEVQ_CFLAGS=`$PKG_CONFIG --cflags "libdevq-1.0" 2>/dev/null` ++ test "x$?" != "x0" && pkg_failed=yes ++else ++ pkg_failed=yes ++fi ++ else ++ pkg_failed=untried ++fi ++if test -n "$LIBDEVQ_LIBS"; then ++ pkg_cv_LIBDEVQ_LIBS="$LIBDEVQ_LIBS" ++ elif test -n "$PKG_CONFIG"; then ++ if test -n "$PKG_CONFIG" && \ ++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdevq-1.0\""; } >&5 ++ ($PKG_CONFIG --exists --print-errors "libdevq-1.0") 2>&5 ++ ac_status=$? ++ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ++ test $ac_status = 0; }; then ++ pkg_cv_LIBDEVQ_LIBS=`$PKG_CONFIG --libs "libdevq-1.0" 2>/dev/null` ++ test "x$?" != "x0" && pkg_failed=yes ++else ++ pkg_failed=yes ++fi ++ else ++ pkg_failed=untried ++fi ++ ++ ++ ++if test $pkg_failed = yes; then ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++$as_echo "no" >&6; } ++ ++if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then ++ _pkg_short_errors_supported=yes ++else ++ _pkg_short_errors_supported=no ++fi ++ if test $_pkg_short_errors_supported = yes; then ++ LIBDEVQ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdevq-1.0" 2>&1` ++ else ++ LIBDEVQ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdevq-1.0" 2>&1` ++ fi ++ # Put the nasty error message in config.log where it belongs ++ echo "$LIBDEVQ_PKG_ERRORS" >&5 ++ ++ as_fn_error $? "Gallium drm loader requires libdevq" "$LINENO" 5 ++elif test $pkg_failed = untried; then ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++$as_echo "no" >&6; } ++ as_fn_error $? "Gallium drm loader requires libdevq" "$LINENO" 5 ++else ++ LIBDEVQ_CFLAGS=$pkg_cv_LIBDEVQ_CFLAGS ++ LIBDEVQ_LIBS=$pkg_cv_LIBDEVQ_LIBS ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ++$as_echo "yes" >&6; } ++ ++fi ++ ;; ++ *) + + pkg_failed=no + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5 +@@ -23524,6 +23782,8 @@ + $as_echo "yes" >&6; } + + fi ++ ;; ++ esac + if test "x$have_libdrm" != xyes; then + as_fn_error $? "Gallium drm loader requires libdrm >= $LIBDRM_REQUIRED" "$LINENO" 5 + fi +@@ -23534,7 +23794,7 @@ + radeon_llvm_check() { + LLVM_REQUIRED_VERSION_MAJOR="3" + LLVM_REQUIRED_VERSION_MINOR="2" +- if test "$LLVM_VERSION_INT" -ne "${LLVM_REQUIRED_VERSION_MAJOR}0${LLVM_REQUIRED_VERSION_MINOR}"; then ++ if test "$LLVM_VERSION_INT" -lt "${LLVM_REQUIRED_VERSION_MAJOR}0${LLVM_REQUIRED_VERSION_MINOR}"; then + as_fn_error $? "LLVM $LLVM_REQUIRED_VERSION_MAJOR.$LLVM_REQUIRED_VERSION_MINOR with R600 target enabled is required. + To use the r600/radeonsi LLVM backend, you need to fetch the LLVM source from: + git://people.freedesktop.org/~tstellar/llvm master Index: graphics/libGL/files-old/patch-mach64_context.h =================================================================== --- graphics/libGL/files-old/patch-mach64_context.h (revision 371006) +++ graphics/libGL/files-old/patch-mach64_context.h (working copy) @@ -1,20 +0,0 @@ ---- src/mesa/drivers/dri/mach64/mach64_context.h.orig 2012-06-27 19:59:32.000000000 +0200 -+++ src/mesa/drivers/dri/mach64/mach64_context.h 2012-06-27 20:08:30.000000000 +0200 -@@ -294,11 +294,14 @@ - #define LE32_OUT( x, y ) do { *(GLuint *)(x) = (y); } while (0) - #define LE32_OUT_FLOAT( x, y ) do { *(GLfloat *)(x) = (y); } while (0) - #else --#ifndef __OpenBSD__ --#include --#else -+#if defined(__OpenBSD__) - #include - #define bswap_32 bswap32 -+#elif defined(__FreeBSD__) -+#include -+#define bswap_32 bswap32 -+#else -+#include - #endif - - #define LE32_IN( x ) bswap_32( *(GLuint *)(x) ) Index: graphics/libGL/files-old/patch-src-glsl_ir_constant_expression.cpp =================================================================== --- graphics/libGL/files-old/patch-src-glsl_ir_constant_expression.cpp (revision 0) +++ graphics/libGL/files-old/patch-src-glsl_ir_constant_expression.cpp (working copy) @@ -0,0 +1,14 @@ +--- src/glsl/ir_constant_expression.cpp.orig 2011-07-23 15:08:44.000000000 +0200 ++++ src/glsl/ir_constant_expression.cpp 2011-07-23 15:09:03.000000000 +0200 +@@ -39,6 +39,11 @@ + #include "ir_visitor.h" + #include "glsl_types.h" + ++#include ++#if __FreeBSD_version <= 704100 || (__FreeBSD_version >= 800000 && __FreeBSD_version < 802502) || (__FreeBSD_version >= 900000 && __FreeBSD_version < 900027) ++#define log2(x) (log(x) / log(2)) ++#endif ++ + static float + dot(ir_constant *op0, ir_constant *op1) + { Property changes on: graphics/libGL/files-old/patch-src-glsl_ir_constant_expression.cpp ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/libGL/files-old/patch-src__egl__drivers__dri2__Makefile.in =================================================================== --- graphics/libGL/files-old/patch-src__egl__drivers__dri2__Makefile.in (revision 0) +++ graphics/libGL/files-old/patch-src__egl__drivers__dri2__Makefile.in (working copy) @@ -0,0 +1,21 @@ +--- src/egl/drivers/dri2/Makefile.in.orig 2014-05-20 21:03:39.000000000 +0200 ++++ src/egl/drivers/dri2/Makefile.in 2014-05-20 21:14:20.000000000 +0200 +@@ -289,6 +289,8 @@ + LIBTOOL = @LIBTOOL@ + LIBUDEV_CFLAGS = @LIBUDEV_CFLAGS@ + LIBUDEV_LIBS = @LIBUDEV_LIBS@ ++LIBDEVQ_CFLAGS= @LIBDEVQ_CFLAGS@ ++LIBDEVQ_LIBS = @LIBDEVQ_LIBS@ + LIB_DIR = @LIB_DIR@ + LIPO = @LIPO@ + LLVM_BINDIR = @LLVM_BINDIR@ +@@ -455,7 +457,8 @@ + -I$(top_srcdir)/src/egl/wayland/wayland-egl \ + -I$(top_srcdir)/src/egl/wayland/wayland-drm \ + -I$(top_builddir)/src/egl/wayland/wayland-drm $(DEFINES) \ +- $(LIBDRM_CFLAGS) $(LIBUDEV_CFLAGS) $(LIBKMS_CFLAGS) \ ++ $(LIBDRM_CFLAGS) $(LIBUDEV_CFLAGS) $(LIBDEVQ_CFLAGS) \ ++ $(LIBKMS_CFLAGS) \ + -DDEFAULT_DRIVER_DIR=\"$(DRI_DRIVER_SEARCH_DIR)\" \ + $(am__append_1) $(am__append_3) $(am__append_5) \ + $(am__append_7) Property changes on: graphics/libGL/files-old/patch-src__egl__drivers__dri2__Makefile.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: graphics/libGL/files-old/patch-src__egl__drivers__dri2__common.c =================================================================== --- graphics/libGL/files-old/patch-src__egl__drivers__dri2__common.c (revision 0) +++ graphics/libGL/files-old/patch-src__egl__drivers__dri2__common.c (working copy) @@ -0,0 +1,87 @@ +--- src/egl/drivers/dri2/common.c.orig 2012-11-24 18:57:41.000000000 +0100 ++++ src/egl/drivers/dri2/common.c 2014-03-02 11:36:35.000000000 +0100 +@@ -35,11 +35,11 @@ + + #include "egl_dri2.h" + +-#ifdef HAVE_LIBUDEV +- + #define DRIVER_MAP_DRI2_ONLY + #include "pci_ids/pci_id_driver_map.h" + ++#ifdef HAVE_LIBUDEV ++ + #include + + static struct udev_device * +@@ -141,4 +141,70 @@ + return driver; + } + ++#elif defined(HAVE_LIBDEVQ) ++ ++#include ++#include ++ ++char * ++dri2_get_device_name_for_fd(int fd) ++{ ++ int ret; ++ char *device_name = NULL; ++ size_t device_name_len; ++ ++ ret = devq_device_get_devpath_from_fd(fd, ++ NULL, &device_name_len); ++ if (ret < 0) ++ return (NULL); ++ ++ device_name = malloc(device_name_len + 1); ++ ret = devq_device_get_devpath_from_fd(fd, ++ device_name, &device_name_len); ++ if (ret < 0) { ++ free(device_name); ++ return (NULL); ++ } ++ ++ device_name[device_name_len] = '\0'; ++ ++ return device_name; ++} ++ ++char * ++dri2_get_driver_for_fd(int fd) ++{ ++ int ret; ++ char *driver = NULL; ++ int vendor_id, chip_id, i, j; ++ ++ ret = devq_device_get_pciid_from_fd(fd, &vendor_id, &chip_id); ++ if (ret < 0) { ++ _eglLog(_EGL_WARNING, "EGL-DRI2: malformed or no PCI ID"); ++ goto out; ++ } ++ ++ for (i = 0; driver_map[i].driver; i++) { ++ if (vendor_id != driver_map[i].vendor_id) ++ continue; ++ if (driver_map[i].num_chips_ids == -1) { ++ driver = strdup(driver_map[i].driver); ++ _eglLog(_EGL_DEBUG, "pci id for %d: %04x:%04x, driver %s", ++ fd, vendor_id, chip_id, driver); ++ goto out; ++ } ++ ++ for (j = 0; j < driver_map[i].num_chips_ids; j++) ++ if (driver_map[i].chip_ids[j] == chip_id) { ++ driver = strdup(driver_map[i].driver); ++ _eglLog(_EGL_DEBUG, "pci id for %d: %04x:%04x, driver %s", ++ fd, vendor_id, chip_id, driver); ++ goto out; ++ } ++ } ++ ++out: ++ return driver; ++} ++ + #endif /* HAVE_LIBUDEV */ Property changes on: graphics/libGL/files-old/patch-src__egl__drivers__dri2__common.c ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/libGL/files-old/patch-src__egl__drivers__glx__Makefile.in =================================================================== --- graphics/libGL/files-old/patch-src__egl__drivers__glx__Makefile.in (revision 0) +++ graphics/libGL/files-old/patch-src__egl__drivers__glx__Makefile.in (working copy) @@ -0,0 +1,19 @@ +--- src/egl/drivers/glx/Makefile.in.orig 2014-05-20 21:15:30.000000000 +0200 ++++ src/egl/drivers/glx/Makefile.in 2014-05-20 21:16:33.000000000 +0200 +@@ -273,6 +273,8 @@ + LIBTOOL = @LIBTOOL@ + LIBUDEV_CFLAGS = @LIBUDEV_CFLAGS@ + LIBUDEV_LIBS = @LIBUDEV_LIBS@ ++LIBDEVQ_CFLAGS = @LIBDEVQ_CFLAGS@ ++LIBDEVQ_LIBS = @LIBDEVQ_LIBS@ + LIB_DIR = @LIB_DIR@ + LIPO = @LIPO@ + LLVM_BINDIR = @LLVM_BINDIR@ +@@ -442,6 +444,7 @@ + noinst_LTLIBRARIES = libegl_glx.la + libegl_glx_la_SOURCES = egl_glx.c + libegl_glx_la_LIBADD = \ ++ $(LIBDEVQ_LIBS) \ + $(EGL_LIB_DEPS) + + all: all-am Property changes on: graphics/libGL/files-old/patch-src__egl__drivers__glx__Makefile.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: graphics/libGL/files-old/patch-src__gallium__auxiliary__pipe-loader__pipe_loader_drm.c =================================================================== --- graphics/libGL/files-old/patch-src__gallium__auxiliary__pipe-loader__pipe_loader_drm.c (revision 0) +++ graphics/libGL/files-old/patch-src__gallium__auxiliary__pipe-loader__pipe_loader_drm.c (working copy) @@ -0,0 +1,43 @@ +--- ./src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c.orig 2014-02-03 18:42:39.000000000 +0100 ++++ ./src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c 2014-02-15 21:11:55.000000000 +0100 +@@ -32,7 +32,14 @@ + + #include + #include ++ ++#if defined(HAVE_LIBUDEV) + #include ++#elif defined(HAVE_LIBDEVQ) ++#include ++#include ++#endif ++ + #include + + #ifdef HAVE_PIPE_LOADER_XCB +@@ -62,6 +69,7 @@ + static boolean + find_drm_pci_id(struct pipe_loader_drm_device *ddev) + { ++#if defined(HAVE_LIBUDEV) + struct udev *udev = NULL; + struct udev_device *parent, *device = NULL; + struct stat stat; +@@ -100,6 +108,17 @@ + udev_unref(udev); + + return FALSE; ++#elif defined(HAVE_LIBDEVQ) ++ int ret; ++ ++ ret = devq_device_get_pciid_from_fd(ddev->fd, ++ &ddev->base.u.pci.vendor_id, ++ &ddev->base.u.pci.chip_id); ++ if (ret < 0) ++ return FALSE; ++ ++ return TRUE; ++#endif + } + + static boolean Property changes on: graphics/libGL/files-old/patch-src__gallium__auxiliary__pipe-loader__pipe_loader_drm.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: graphics/libGL/files-old/patch-src__gallium__include__pipe__p_config.h =================================================================== --- graphics/libGL/files-old/patch-src__gallium__include__pipe__p_config.h (revision 0) +++ graphics/libGL/files-old/patch-src__gallium__include__pipe__p_config.h (working copy) @@ -0,0 +1,16 @@ +--- ./src/gallium/include/pipe/p_config.h.orig 2014-02-03 18:42:39.000000000 +0100 ++++ ./src/gallium/include/pipe/p_config.h 2014-02-15 21:11:34.000000000 +0100 +@@ -81,6 +81,13 @@ + #define PIPE_CC_SUNPRO + #endif + ++#if defined(__sparc__) || defined(__sparc64__) ++#define PIPE_ARCH_SPARC ++#if defined(__sparc64__) ++#define PIPE_ARCH_SPARC_64 ++#endif ++#endif ++ + + /* + * Processor architecture Property changes on: graphics/libGL/files-old/patch-src__gallium__include__pipe__p_config.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: graphics/libGL/files-old/patch-src__gallium__state_trackers__egl__drm__native_drm.c =================================================================== --- graphics/libGL/files-old/patch-src__gallium__state_trackers__egl__drm__native_drm.c (revision 0) +++ graphics/libGL/files-old/patch-src__gallium__state_trackers__egl__drm__native_drm.c (working copy) @@ -0,0 +1,42 @@ +--- ./src/gallium/state_trackers/egl/drm/native_drm.c.orig 2014-02-03 18:42:39.000000000 +0100 ++++ ./src/gallium/state_trackers/egl/drm/native_drm.c 2014-02-15 21:11:55.000000000 +0100 +@@ -35,8 +35,11 @@ + + #include "gbm_gallium_drmint.h" + +-#ifdef HAVE_LIBUDEV ++#if defined(HAVE_LIBUDEV) + #include ++#elif defined(HAVE_LIBDEVQ) ++#include ++#include + #endif + + static boolean +@@ -183,8 +186,26 @@ + udev_device_unref(device); + outudev: + udev_unref(udev); ++#elif defined(HAVE_LIBDEVQ) ++ int ret; ++ size_t device_name_len; + ++ ret = devq_device_get_devpath_from_fd(fd, ++ NULL, &device_name_len); ++ if (ret < 0) ++ return (NULL); ++ ++ device_name = malloc(device_name_len + 1); ++ ret = devq_device_get_devpath_from_fd(fd, ++ device_name, &device_name_len); ++ if (ret < 0) { ++ free(device_name); ++ return (NULL); ++ } ++ ++ device_name[device_name_len] = '\0'; + #endif ++ + return device_name; + } + Property changes on: graphics/libGL/files-old/patch-src__gallium__state_trackers__egl__drm__native_drm.c ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/libGL/files-old/patch-src__gallium__state_trackers__xvmc__tests__xvmc_bench.c =================================================================== --- graphics/libGL/files-old/patch-src__gallium__state_trackers__xvmc__tests__xvmc_bench.c (revision 0) +++ graphics/libGL/files-old/patch-src__gallium__state_trackers__xvmc__tests__xvmc_bench.c (working copy) @@ -0,0 +1,52 @@ +--- src/gallium/state_trackers/xvmc/tests/xvmc_bench.c.orig 2013-10-05 03:59:22.000000000 +0000 ++++ src/gallium/state_trackers/xvmc/tests/xvmc_bench.c 2014-10-16 13:46:30.000000000 +0000 +@@ -27,9 +27,10 @@ + + #include + #include ++#include + #include +-#include + #include ++#include + #include "testlib.h" + + #define MACROBLOCK_WIDTH 16 +@@ -144,23 +145,10 @@ + } + + if (fail) +- error +- ( +- 1, 0, +- "Bad argument.\n" +- "\n" +- "Usage: %s [options]\n" +- "\t-iw \tInput width\n" +- "\t-ih \tInput height\n" +- "\t-ow \tOutput width\n" +- "\t-oh \tOutput height\n" +- "\t-p \tPipeline to test\n" +- "\t-mb \tMacroBlock types to use\n" +- "\t-r \tRepetitions\n\n" +- "\tPipeline steps: mc,csc,swap\n" +- "\tMB types: i,p,b\n", +- argv[0] +- ); ++ { ++ printf ("error happened\n"); ++ exit(1); ++ } + + if (config->output_width == 0) + config->output_width = config->input_width; +@@ -214,7 +202,8 @@ + )) + { + XCloseDisplay(display); +- error(1, 0, "Error, unable to find a good port.\n"); ++ printf("Error, unable to find a good port.\n"); ++ exit(1); + } + + if (is_overlay) Property changes on: graphics/libGL/files-old/patch-src__gallium__state_trackers__xvmc__tests__xvmc_bench.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: graphics/libGL/files-old/patch-src__gallium__targets__egl-static__egl.c =================================================================== --- graphics/libGL/files-old/patch-src__gallium__targets__egl-static__egl.c (revision 0) +++ graphics/libGL/files-old/patch-src__gallium__targets__egl-static__egl.c (working copy) @@ -0,0 +1,37 @@ +--- ./src/gallium/targets/egl-static/egl.c.orig 2014-02-03 18:42:39.000000000 +0100 ++++ ./src/gallium/targets/egl-static/egl.c 2014-02-15 21:11:55.000000000 +0100 +@@ -29,9 +29,12 @@ + #include "egldriver.h" + #include "egllog.h" + +-#ifdef HAVE_LIBUDEV ++#if defined(HAVE_LIBUDEV) + #include /* for sscanf */ + #include ++#elif defined(HAVE_LIBDEVQ) ++#include ++#include + #endif + + #define DRIVER_MAP_GALLIUM_ONLY +@@ -108,6 +111,20 @@ + return (*chip_id >= 0); + } + ++#elif defined(HAVE_LIBDEVQ) ++ ++static boolean ++drm_fd_get_pci_id(int fd, int *vendor_id, int *chip_id) ++{ ++ int ret; ++ ++ ret = devq_device_get_pciid_from_fd(fd, vendor_id, chip_id); ++ if (ret < 0) ++ return FALSE; ++ ++ return TRUE; ++} ++ + #elif defined(PIPE_OS_ANDROID) && !defined(_EGL_NO_DRM) + + #include Property changes on: graphics/libGL/files-old/patch-src__gallium__targets__egl-static__egl.c ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/libGL/files-old/patch-src__gallium__targets__gbm__Makefile.in =================================================================== --- graphics/libGL/files-old/patch-src__gallium__targets__gbm__Makefile.in (revision 0) +++ graphics/libGL/files-old/patch-src__gallium__targets__gbm__Makefile.in (working copy) @@ -0,0 +1,29 @@ +--- src/gallium/targets/gbm/Makefile.in.orig 2014-03-02 12:23:28.000000000 +0100 ++++ src/gallium/targets/gbm/Makefile.in 2014-03-02 12:23:59.000000000 +0100 +@@ -157,7 +157,7 @@ + $(top_builddir)/src/gallium/state_trackers/gbm/libgbm.la \ + $(top_builddir)/src/gallium/auxiliary/libgallium.la \ + $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ +- $(am__DEPENDENCIES_2) ++ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2) + am_gbm_gallium_drm_la_OBJECTS = gbm.lo + gbm_gallium_drm_la_OBJECTS = $(am_gbm_gallium_drm_la_OBJECTS) + AM_V_P = $(am__v_P_@AM_V@) +@@ -554,6 +554,7 @@ + AM_CFLAGS = \ + $(GALLIUM_CFLAGS) \ + $(LIBUDEV_CFLAGS) \ ++ $(LIBDEVQ_CFLAGS) \ + $(LIBDRM_CFLAGS) + + gbm_LTLIBRARIES = gbm_gallium_drm.la +@@ -561,7 +562,8 @@ + gbm_gallium_drm_la_LIBADD = $(GALLIUM_PIPE_LOADER_LIBS) \ + $(top_builddir)/src/gallium/state_trackers/gbm/libgbm.la \ + $(top_builddir)/src/gallium/auxiliary/libgallium.la \ +- $(LIBUDEV_LIBS) $(LIBDRM_LIBS) -lm $(am__append_1) ++ $(LIBUDEV_LIBS) $(LIBDEVQ_LIBS) $(LIBDRM_LIBS) -lm \ ++ $(am__append_1) + gbm_gallium_drm_la_LDFLAGS = -no-undefined -avoid-version -module \ + $(am__append_2) + @HAVE_MESA_LLVM_FALSE@gbm_gallium_drm_la_LINK = $(CXXLINK) $(gbm_gallium_drm_la_LDFLAGS) Property changes on: graphics/libGL/files-old/patch-src__gallium__targets__gbm__Makefile.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: graphics/libGL/files-old/patch-src__gbm__Makefile.in =================================================================== --- graphics/libGL/files-old/patch-src__gbm__Makefile.in (revision 0) +++ graphics/libGL/files-old/patch-src__gbm__Makefile.in (working copy) @@ -0,0 +1,42 @@ +--- src/gbm/Makefile.in.orig 2014-05-20 21:18:10.000000000 +0200 ++++ src/gbm/Makefile.in 2014-05-20 21:19:09.000000000 +0200 +@@ -107,7 +107,7 @@ + LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES) + am__DEPENDENCIES_1 = + libgbm_la_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ +- $(am__append_2) ++ $(am__DEPENDENCIES_1) $(am__append_2) + am_libgbm_la_OBJECTS = gbm.lo backend.lo common.lo + libgbm_la_OBJECTS = $(am_libgbm_la_OBJECTS) + AM_V_lt = $(am__v_lt_@AM_V@) +@@ -303,6 +303,8 @@ + LIBTOOL = @LIBTOOL@ + LIBUDEV_CFLAGS = @LIBUDEV_CFLAGS@ + LIBUDEV_LIBS = @LIBUDEV_LIBS@ ++LIBDEVQ_CFLAGS = @LIBDEVQ_CFLAGS@ ++LIBDEVQ_LIBS = @LIBDEVQ_LIBS@ + LIB_DIR = @LIB_DIR@ + LIPO = @LIPO@ + LLVM_BINDIR = @LLVM_BINDIR@ +@@ -467,8 +469,8 @@ + pkgconfig_DATA = main/gbm.pc + AM_CFLAGS = -D_OS_UNIX=1 -DMODULEDIR='"$(libdir)/gbm"' \ + -I$(top_srcdir)/include -I$(top_srcdir)/src/gbm/main \ +- $(LIBUDEV_CFLAGS) $(LIBKMS_CFLAGS) $(DLOPEN_CFLAGS) $(DEFINES) \ +- $(am__append_1) ++ $(LIBUDEV_CFLAGS) $(LIBDEVQ_CFLAGS) $(LIBKMS_CFLAGS) \ ++ $(DLOPEN_CFLAGS) $(DEFINES) $(am__append_1) + lib_LTLIBRARIES = libgbm.la + include_HEADERS = main/gbm.h + libgbm_la_SOURCES = \ +@@ -477,8 +479,8 @@ + main/common.c + + libgbm_la_LDFLAGS = -version-info 1:0 +-libgbm_la_LIBADD = $(LIBUDEV_LIBS) $(LIBKMS_LIBS) $(DLOPEN_LIBS) \ +- $(am__append_2) ++libgbm_la_LIBADD = $(LIBUDEV_LIBS) $(LIBDEVQ_LIBS) $(LIBKMS_LIBS) \ ++ $(DLOPEN_LIBS) $(am__append_2) + @HAVE_EGL_PLATFORM_WAYLAND_TRUE@AM_CPPFLAGS = -DHAVE_WAYLAND_PLATFORM + @HAVE_DRI_TRUE@noinst_LTLIBRARIES = libgbm_dri.la + @HAVE_DRI_TRUE@libgbm_dri_la_SOURCES = \ Property changes on: graphics/libGL/files-old/patch-src__gbm__Makefile.in ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/libGL/files-old/patch-src__gbm__backends__dri__driver_name.c =================================================================== --- graphics/libGL/files-old/patch-src__gbm__backends__dri__driver_name.c (revision 0) +++ graphics/libGL/files-old/patch-src__gbm__backends__dri__driver_name.c (working copy) @@ -0,0 +1,53 @@ +--- ./src/gbm/backends/dri/driver_name.c.orig 2014-02-03 18:42:39.000000000 +0100 ++++ ./src/gbm/backends/dri/driver_name.c 2014-02-15 21:11:55.000000000 +0100 +@@ -29,7 +29,12 @@ + #include + #include + ++#if defined(HAVE_LIBUDEV) + #include ++#elif defined(HAVE_LIBDEVQ) ++#include ++#include ++#endif + + #include "gbm_driint.h" + #define DRIVER_MAP_DRI2_ONLY +@@ -38,10 +43,12 @@ + char * + dri_fd_get_driver_name(int fd) + { ++ char *driver = NULL; ++ ++#if defined(HAVE_LIBUDEV) + struct udev *udev; + struct udev_device *device, *parent; + const char *pci_id; +- char *driver = NULL; + int vendor_id, chip_id, i, j; + + udev = udev_new(); +@@ -84,6 +91,23 @@ + out: + udev_device_unref(device); + udev_unref(udev); ++#elif defined(HAVE_LIBDEVQ) ++ int ret; ++ size_t driver_len; ++ ++ ret = devq_device_drm_get_drvname_from_fd(fd, NULL, &driver_len); ++ if (ret < 0) ++ return (NULL); ++ ++ driver = malloc(driver_len + 1); ++ ret = devq_device_drm_get_drvname_from_fd(fd, driver, &driver_len); ++ if (ret < 0) { ++ free(driver); ++ return (NULL); ++ } ++ ++ driver[driver_len] = '\0'; ++#endif + + return driver; + } Property changes on: graphics/libGL/files-old/patch-src__gbm__backends__dri__driver_name.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: graphics/libGL/files-old/patch-src__gbm__main__common.c =================================================================== --- graphics/libGL/files-old/patch-src__gbm__main__common.c (revision 0) +++ graphics/libGL/files-old/patch-src__gbm__main__common.c (working copy) @@ -0,0 +1,69 @@ +--- ./src/gbm/main/common.c.orig 2014-02-03 18:42:39.000000000 +0100 ++++ ./src/gbm/main/common.c 2014-02-15 21:11:55.000000000 +0100 +@@ -28,7 +28,13 @@ + #include + #include + ++#if defined(HAVE_LIBUDEV) + #include ++#elif defined(HAVE_LIBDEVQ) ++#include ++#include ++#endif ++ + #include + #include + #include +@@ -36,6 +42,7 @@ + #include "common.h" + #include "gbmint.h" + ++#if defined(HAVE_LIBUDEV) + GBM_EXPORT struct udev_device * + _gbm_udev_device_new_from_fd(struct udev *udev, int fd) + { +@@ -56,14 +63,17 @@ + + return device; + } ++#endif /* defined(HAVE_LIBUDEV) */ + + GBM_EXPORT char * + _gbm_fd_get_device_name(int fd) + { ++ char *device_name = NULL; ++ ++#if defined(HAVE_LIBUDEV) + struct udev *udev; + struct udev_device *device; + const char *const_device_name; +- char *device_name = NULL; + + udev = udev_new(); + device = _gbm_udev_device_new_from_fd(udev, fd); +@@ -78,6 +88,25 @@ + out: + udev_device_unref(device); + udev_unref(udev); ++#elif defined(HAVE_LIBDEVQ) ++ int ret; ++ size_t device_name_len; ++ ++ ret = devq_device_get_devpath_from_fd(fd, ++ NULL, &device_name_len); ++ if (ret < 0) ++ return (NULL); ++ ++ device_name = malloc(device_name_len + 1); ++ ret = devq_device_get_devpath_from_fd(fd, ++ device_name, &device_name_len); ++ if (ret < 0) { ++ free(device_name); ++ return (NULL); ++ } ++ ++ device_name[device_name_len] = '\0'; ++#endif + + return device_name; + } Property changes on: graphics/libGL/files-old/patch-src__gbm__main__common.c ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/libGL/files-old/patch-src__gbm__main__common.h =================================================================== --- graphics/libGL/files-old/patch-src__gbm__main__common.h (revision 0) +++ graphics/libGL/files-old/patch-src__gbm__main__common.h (working copy) @@ -0,0 +1,15 @@ +--- ./src/gbm/main/common.h.orig 2014-02-03 18:42:39.000000000 +0100 ++++ ./src/gbm/main/common.h 2014-02-15 21:11:55.000000000 +0100 +@@ -28,10 +28,12 @@ + #ifndef _COMMON_H_ + #define _COMMON_H_ + ++#if defined(HAVE_LIBUDEV) + #include + + struct udev_device * + _gbm_udev_device_new_from_fd(struct udev *udev, int fd); ++#endif + + char * + _gbm_fd_get_device_name(int fd); Property changes on: graphics/libGL/files-old/patch-src__gbm__main__common.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: graphics/libGL/files-old/patch-src__mesa__x86-64__glapi_x86-64.S =================================================================== --- graphics/libGL/files-old/patch-src__mesa__x86-64__glapi_x86-64.S (revision 371006) +++ graphics/libGL/files-old/patch-src__mesa__x86-64__glapi_x86-64.S (working copy) @@ -1,12 +0,0 @@ ---- ./src/mesa/x86-64/glapi_x86-64.S.orig 2009-03-13 04:28:49.000000000 +0100 -+++ ./src/mesa/x86-64/glapi_x86-64.S 2011-01-28 18:12:18.000000000 +0100 -@@ -73,7 +73,8 @@ _x86_64_get_dispatch: - - .p2align 4,,15 - _x86_64_get_dispatch: -- movq _gl_DispatchTSD(%rip), %rdi -+ movq _gl_DispatchTSD@GOTPCREL(%rip), %rax -+ movl (%rax), %edi - jmp pthread_getspecific@PLT - - #elif defined(THREADS) Index: graphics/libGL/files-old/patch-src__mesa__x86-64__xform4.S =================================================================== --- graphics/libGL/files-old/patch-src__mesa__x86-64__xform4.S (revision 371006) +++ graphics/libGL/files-old/patch-src__mesa__x86-64__xform4.S (working copy) @@ -1,74 +0,0 @@ ---- src/mesa/x86-64/xform4.S.orig 2009-01-22 18:38:35.000000000 +0100 -+++ src/mesa/x86-64/xform4.S 2011-05-09 21:26:00.000000000 +0200 -@@ -53,7 +53,7 @@ _mesa_x86_64_transform_points4_general: - * rdx = source - */ - movl V4F_COUNT(%rdx), %ecx /* count */ -- movzx V4F_STRIDE(%rdx), %eax /* stride */ -+ movzbl V4F_STRIDE(%rdx), %eax /* stride */ - - movl %ecx, V4F_COUNT(%rdi) /* set dest count */ - movl $4, V4F_SIZE(%rdi) /* set dest size */ -@@ -116,7 +116,7 @@ p4_constants: - .byte 0x00, 0x00, 0x00, 0x00 - .byte 0x00, 0x00, 0x00, 0x00 - .byte 0x00, 0x00, 0x00, 0x00 --.float 0f+1.0 -+.float 1.0 - - .text - .align 16 -@@ -135,7 +135,7 @@ _mesa_x86_64_transform_points4_3d: - movaps 16(%rax), %xmm10 - - movl V4F_COUNT(%rdx), %ecx /* count */ -- movzx V4F_STRIDE(%rdx), %eax /* stride */ -+ movzbl V4F_STRIDE(%rdx), %eax /* stride */ - - movl %ecx, V4F_COUNT(%rdi) /* set dest count */ - movl $4, V4F_SIZE(%rdi) /* set dest size */ -@@ -195,7 +195,7 @@ p4_3d_done: - _mesa_x86_64_transform_points4_identity: - - movl V4F_COUNT(%rdx), %ecx /* count */ -- movzx V4F_STRIDE(%rdx), %eax /* stride */ -+ movzbl V4F_STRIDE(%rdx), %eax /* stride */ - - movl %ecx, V4F_COUNT(%rdi) /* set dest count */ - movl $4, V4F_SIZE(%rdi) /* set dest size */ -@@ -223,7 +223,7 @@ p4_identity_done: - _mesa_3dnow_transform_points4_3d_no_rot: - - movl V4F_COUNT(%rdx), %ecx /* count */ -- movzx V4F_STRIDE(%rdx), %eax /* stride */ -+ movzbl V4F_STRIDE(%rdx), %eax /* stride */ - - movl %ecx, V4F_COUNT(%rdi) /* set dest count */ - movl $4, V4F_SIZE(%rdi) /* set dest size */ -@@ -287,7 +287,7 @@ p4_3d_no_rot_done: - _mesa_3dnow_transform_points4_perspective: - - movl V4F_COUNT(%rdx), %ecx /* count */ -- movzx V4F_STRIDE(%rdx), %eax /* stride */ -+ movzbl V4F_STRIDE(%rdx), %eax /* stride */ - - movl %ecx, V4F_COUNT(%rdi) /* set dest count */ - movl $4, V4F_SIZE(%rdi) /* set dest size */ -@@ -353,7 +353,7 @@ p4_perspective_done: - _mesa_3dnow_transform_points4_2d_no_rot: - - movl V4F_COUNT(%rdx), %ecx /* count */ -- movzx V4F_STRIDE(%rdx), %eax /* stride */ -+ movzbl V4F_STRIDE(%rdx), %eax /* stride */ - - movl %ecx, V4F_COUNT(%rdi) /* set dest count */ - movl $4, V4F_SIZE(%rdi) /* set dest size */ -@@ -408,7 +408,7 @@ p4_2d_no_rot_done: - _mesa_3dnow_transform_points4_2d: - - movl V4F_COUNT(%rdx), %ecx /* count */ -- movzx V4F_STRIDE(%rdx), %eax /* stride */ -+ movzbl V4F_STRIDE(%rdx), %eax /* stride */ - - movl %ecx, V4F_COUNT(%rdi) /* set dest count */ - movl $4, V4F_SIZE(%rdi) /* set dest size */ Index: graphics/libGL/files-old/patch-src__mesa__x86__glapi_x86.S =================================================================== --- graphics/libGL/files-old/patch-src__mesa__x86__glapi_x86.S (revision 371006) +++ graphics/libGL/files-old/patch-src__mesa__x86__glapi_x86.S (working copy) @@ -1,11 +0,0 @@ ---- ./src/mesa/x86/glapi_x86.S.orig 2009-03-13 04:28:49.000000000 +0100 -+++ ./src/mesa/x86/glapi_x86.S 2011-01-28 18:11:56.000000000 +0100 -@@ -47,7 +47,7 @@ - #define GL_OFFSET(x) CODEPTR(REGOFF(4 * x, EAX)) - - #if defined(GNU_ASSEMBLER) && !defined(__DJGPP__) && !defined(__MINGW32__) --#define GLOBL_FN(x) GLOBL x ; .type x, function -+#define GLOBL_FN(x) GLOBL x ; .type x, @function - #else - #define GLOBL_FN(x) GLOBL x - #endif Index: graphics/libGL/files-old/patch-src__mesa__x86__read_rgba_span_x86.S =================================================================== --- graphics/libGL/files-old/patch-src__mesa__x86__read_rgba_span_x86.S (revision 371006) +++ graphics/libGL/files-old/patch-src__mesa__x86__read_rgba_span_x86.S (working copy) @@ -1,11 +0,0 @@ ---- ./src/mesa/x86/read_rgba_span_x86.S.orig 2008-08-25 16:46:47.000000000 +0200 -+++ ./src/mesa/x86/read_rgba_span_x86.S 2011-01-28 18:10:06.000000000 +0100 -@@ -648,7 +648,7 @@ _generic_read_RGBA_span_RGB565_MMX: - testl $0x01, %ecx - je .L01 - -- movzxw (%eax), %ecx -+ movzwl (%eax), %ecx - movd %ecx, %mm4 - - pshufw $0x00, %mm4, %mm0 Index: graphics/libGL/files-old/patch-src_gallium_drivers_r300_r300-chipset.c =================================================================== --- graphics/libGL/files-old/patch-src_gallium_drivers_r300_r300-chipset.c (revision 0) +++ graphics/libGL/files-old/patch-src_gallium_drivers_r300_r300-chipset.c (working copy) @@ -0,0 +1,26 @@ +diff --git a/src/gallium/drivers/r300/r300_chipset.c b/src/gallium/drivers/r300/r300_chipset.c +index 11061ed..daf990e 100644 +--- src/gallium/drivers/r300/r300_chipset.c ++++ src/gallium/drivers/r300/r300_chipset.c +@@ -48,6 +48,21 @@ static void r300_apply_hyperz_blacklist(struct r300_capabilities* caps) + }; + int i; + ++#if defined(__DragonFly__) || \ ++ defined(__FreeBSD__) || \ ++ defined(__NetBSD__) || \ ++ defined(__OpenBSD__) ++ const char *progname, *program_invocation_short_name; ++ ++ progname = getprogname(); ++ program_invocation_short_name = strrchr(progname, '/'); ++ if (program_invocation_short_name) { ++ program_invocation_short_name++; ++ } else { ++ program_invocation_short_name = progname; ++ } ++#endif ++ + for (i = 0; i < Elements(list); i++) { + if (strcmp(list[i], program_invocation_short_name) == 0) { + caps->zmask_ram = 0; Property changes on: graphics/libGL/files-old/patch-src_gallium_drivers_r300_r300-chipset.c ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: graphics/libGL/files-old/patch-src_gallium_drivers_r600_r600-asm.c =================================================================== --- graphics/libGL/files-old/patch-src_gallium_drivers_r600_r600-asm.c (revision 0) +++ graphics/libGL/files-old/patch-src_gallium_drivers_r600_r600-asm.c (working copy) @@ -0,0 +1,15 @@ +--- src/gallium/drivers/r600/r600_asm.c.orig 2013-03-20 00:28:25.000000000 +0100 ++++ src/gallium/drivers/r600/r600_asm.c 2013-06-26 23:29:14.000000000 +0200 +@@ -27,7 +27,12 @@ + #include "r600d.h" + + #include ++#if defined(__linux__) + #include ++#elif defined(__FreeBSD__) || defined(__DragonFly__) ++#include ++#define bswap_32(x) bswap32((x)) ++#endif + #include "util/u_memory.h" + #include "pipe/p_shader_tokens.h" + Property changes on: graphics/libGL/files-old/patch-src_gallium_drivers_r600_r600-asm.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: graphics/libGL/files-old/patch-src_gallium_drivers_r600_r600-shader.c =================================================================== --- graphics/libGL/files-old/patch-src_gallium_drivers_r600_r600-shader.c (revision 0) +++ graphics/libGL/files-old/patch-src_gallium_drivers_r600_r600-shader.c (working copy) @@ -0,0 +1,15 @@ +--- src/gallium/drivers/r600/r600_shader.c.orig 2013-05-16 19:38:54.000000000 +0200 ++++ src/gallium/drivers/r600/r600_shader.c 2013-06-26 23:26:02.000000000 +0200 +@@ -35,7 +35,12 @@ + #include "util/u_memory.h" + #include + #include ++#if defined(__linux__) + #include ++#elif defined(__FreeBSD__) || defined(__DragonFly__) ++#include ++#define bswap_32(x) bswap32((x)) ++#endif + + /* CAYMAN notes + Why CAYMAN got loops for lots of instructions is explained here. Property changes on: graphics/libGL/files-old/patch-src_gallium_drivers_r600_r600-shader.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: graphics/libGL/files-old/patch-src_gallium_drivers_r600_r600_state_common.c =================================================================== --- graphics/libGL/files-old/patch-src_gallium_drivers_r600_r600_state_common.c (revision 0) +++ graphics/libGL/files-old/patch-src_gallium_drivers_r600_r600_state_common.c (working copy) @@ -0,0 +1,15 @@ +--- src/gallium/drivers/r600/r600_state_common.c.orig 2013-03-06 00:25:39.000000000 +0100 ++++ src/gallium/drivers/r600/r600_state_common.c 2013-06-26 23:26:02.000000000 +0200 +@@ -33,7 +33,12 @@ + #include "util/u_memory.h" + #include "util/u_upload_mgr.h" + #include "tgsi/tgsi_parse.h" ++#if defined(__linux__) + #include ++#elif defined(__FreeBSD__) || defined(__DragonFly__) ++#include ++#define bswap_32(x) bswap32((x)) ++#endif + + #define R600_PRIM_RECTANGLE_LIST PIPE_PRIM_MAX + Property changes on: graphics/libGL/files-old/patch-src_gallium_drivers_r600_r600_state_common.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: graphics/libGL/files-old/patch-src_gallium_drivers_radeon_radeon-llvm-emit.cpp =================================================================== --- graphics/libGL/files-old/patch-src_gallium_drivers_radeon_radeon-llvm-emit.cpp (revision 0) +++ graphics/libGL/files-old/patch-src_gallium_drivers_radeon_radeon-llvm-emit.cpp (working copy) @@ -0,0 +1,28 @@ +--- src/gallium/drivers/radeon/radeon_llvm_emit.cpp.orig 2013-08-19 21:23:06.000000000 +0200 ++++ src/gallium/drivers/radeon/radeon_llvm_emit.cpp 2013-08-19 21:30:58.000000000 +0200 +@@ -25,13 +25,13 @@ + */ + #include "radeon_llvm_emit.h" + +-#include +-#include ++#include ++#include + #include + #include + #include + #include +-#include ++#include + #include + #include + #include +@@ -39,7 +39,7 @@ + #include + #include + #include +-#include ++#include + + #include + #include Property changes on: graphics/libGL/files-old/patch-src_gallium_drivers_radeon_radeon-llvm-emit.cpp ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/libGL/files-old/patch-src_gallium_drivers_radeonsi_r600-buffer.c =================================================================== --- graphics/libGL/files-old/patch-src_gallium_drivers_radeonsi_r600-buffer.c (revision 0) +++ graphics/libGL/files-old/patch-src_gallium_drivers_radeonsi_r600-buffer.c (working copy) @@ -0,0 +1,16 @@ +--- src/gallium/drivers/radeonsi/r600_buffer.c.orig 2013-08-01 00:56:45.000000000 +0200 ++++ src/gallium/drivers/radeonsi/r600_buffer.c 2013-08-19 21:36:02.000000000 +0200 +@@ -24,7 +24,13 @@ + * Jerome Glisse + * Corbin Simpson + */ ++ ++#if defined(__linux__) + #include ++#elif defined(__FreeBSD__) || defined(__DragonFly__) ++#include ++#define bswap_32(x) bswap32((x)) ++#endif + + #include "pipe/p_screen.h" + #include "util/u_format.h" Property changes on: graphics/libGL/files-old/patch-src_gallium_drivers_radeonsi_r600-buffer.c ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/libGL/files-old/patch-src_gallium_winsys_svga_drm_vmw-screen-ioctl.c =================================================================== --- graphics/libGL/files-old/patch-src_gallium_winsys_svga_drm_vmw-screen-ioctl.c (revision 0) +++ graphics/libGL/files-old/patch-src_gallium_winsys_svga_drm_vmw-screen-ioctl.c (working copy) @@ -0,0 +1,18 @@ +diff --git a/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c b/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c +index 36888dc..62a6e6a 100644 +--- src/gallium/winsys/svga/drm/vmw_screen_ioctl.c ++++ src/gallium/winsys/svga/drm/vmw_screen_ioctl.c +@@ -66,6 +66,13 @@ struct vmw_region + */ + #define SVGA3D_SURFACE_HINT_SCANOUT (1 << 9) + ++#if defined(__DragonFly__) || \ ++ defined(__FreeBSD__) || \ ++ defined(__NetBSD__) || \ ++ defined(__OpenBSD__) ++#define ERESTART EINTR ++#endif ++ + uint32 + vmw_ioctl_context_create(struct vmw_winsys_screen *vws) + { Property changes on: graphics/libGL/files-old/patch-src_gallium_winsys_svga_drm_vmw-screen-ioctl.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: graphics/libGL/files-old/patch-src_glx_x11_XF86dri.c =================================================================== --- graphics/libGL/files-old/patch-src_glx_x11_XF86dri.c (revision 371006) +++ graphics/libGL/files-old/patch-src_glx_x11_XF86dri.c (working copy) @@ -1,38 +0,0 @@ ---- src/glx/x11/XF86dri.c.orig 2009-06-17 18:35:16.000000000 +0000 -+++ src/glx/x11/XF86dri.c 2013-05-29 10:09:37.000000000 +0000 -@@ -43,6 +43,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN - #include - #include - #include "xf86dristr.h" -+#include - - - #if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303 -@@ -212,7 +213,11 @@ XF86DRIOpenConnection(Display * dpy, int - } - - if (rep.length) { -- if (!(*busIdString = (char *) Xcalloc(rep.busIdStringLength + 1, 1))) { -+ if (rep.busIdStringLength < INT_MAX) -+ *busIdString = Xcalloc(rep.busIdStringLength + 1, 1); -+ else -+ *busIdString = NULL; -+ if (*busIdString == NULL) { - _XEatData(dpy, ((rep.busIdStringLength + 3) & ~3)); - UnlockDisplay(dpy); - SyncHandle(); -@@ -311,9 +316,11 @@ XF86DRIGetClientDriverName(Display * dpy - *ddxDriverPatchVersion = rep.ddxDriverPatchVersion; - - if (rep.length) { -- if (! -- (*clientDriverName = -- (char *) Xcalloc(rep.clientDriverNameLength + 1, 1))) { -+ if (rep.clientDriverNameLength < INT_MAX) -+ *clientDriverName = Xcalloc(rep.clientDriverNameLength + 1, 1); -+ else -+ *clientDriverName = NULL; -+ if (*clientDriverName == NULL) { - _XEatData(dpy, ((rep.clientDriverNameLength + 3) & ~3)); - UnlockDisplay(dpy); - SyncHandle(); Index: graphics/libGL/files-old/patch-src_mapi_glapi_gen_gl-gentable.py =================================================================== --- graphics/libGL/files-old/patch-src_mapi_glapi_gen_gl-gentable.py (revision 0) +++ graphics/libGL/files-old/patch-src_mapi_glapi_gen_gl-gentable.py (working copy) @@ -0,0 +1,11 @@ +--- src/mapi/glapi/gen/gl_gentable.py.orig 2013-07-17 15:41:13.000000000 +0200 ++++ src/mapi/glapi/gen/gl_gentable.py 2013-07-17 15:41:55.000000000 +0200 +@@ -42,7 +42,7 @@ + #endif + + #if (defined(GLXEXT) && defined(HAVE_BACKTRACE)) \\ +- || (!defined(GLXEXT) && defined(DEBUG) && !defined(_WIN32_WCE) && !defined(__CYGWIN__)) ++ || (!defined(GLXEXT) && defined(DEBUG) && !defined(_WIN32_WCE) && !defined(__CYGWIN__) && !defined(__OpenBSD__) && !defined(__FreeBSD__)) + #define USE_BACKTRACE + #endif + Property changes on: graphics/libGL/files-old/patch-src_mapi_glapi_gen_gl-gentable.py ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/libGL/files-old/patch-src_mapi_mapi_entry_x86-64_tls.h =================================================================== --- graphics/libGL/files-old/patch-src_mapi_mapi_entry_x86-64_tls.h (revision 0) +++ graphics/libGL/files-old/patch-src_mapi_mapi_entry_x86-64_tls.h (working copy) @@ -0,0 +1,13 @@ +--- src/mapi/mapi/entry_x86-64_tls.h.orig 2013-10-05 05:59:22.000000000 +0200 ++++ src/mapi/mapi/entry_x86-64_tls.h 2014-07-29 20:28:05.000000000 +0200 +@@ -63,8 +63,8 @@ entry_patch_public(void) + { + } + +-static char +-x86_64_entry_start[]; ++extern char ++x86_64_entry_start[] __attribute__((visibility("hidden"))); + + mapi_func + entry_get_public(int slot) Property changes on: graphics/libGL/files-old/patch-src_mapi_mapi_entry_x86-64_tls.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: graphics/libGL/files-old/patch-src_mapi_mapi_entry_x86_tls.h =================================================================== --- graphics/libGL/files-old/patch-src_mapi_mapi_entry_x86_tls.h (revision 0) +++ graphics/libGL/files-old/patch-src_mapi_mapi_entry_x86_tls.h (working copy) @@ -0,0 +1,13 @@ +--- src/mapi/mapi/entry_x86_tls.h.orig 2013-10-05 05:59:22.000000000 +0200 ++++ src/mapi/mapi/entry_x86_tls.h 2014-07-29 20:28:05.000000000 +0200 +@@ -73,8 +73,8 @@ __asm__(".text"); + extern unsigned long + x86_current_tls(); + +-static char x86_entry_start[]; +-static char x86_entry_end[]; ++extern char x86_entry_start[] __attribute__((visibility("hidden"))); ++extern char x86_entry_end[] __attribute__((visibility("hidden"))); + + void + entry_patch_public(void) Property changes on: graphics/libGL/files-old/patch-src_mapi_mapi_entry_x86_tls.h ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/libGL/files-old/patch-src_mapi_mapi_entry_x86_tsd.h =================================================================== --- graphics/libGL/files-old/patch-src_mapi_mapi_entry_x86_tsd.h (revision 0) +++ graphics/libGL/files-old/patch-src_mapi_mapi_entry_x86_tsd.h (working copy) @@ -0,0 +1,13 @@ +--- src/mapi/mapi/entry_x86_tsd.h.orig 2013-10-05 05:59:22.000000000 +0200 ++++ src/mapi/mapi/entry_x86_tsd.h 2014-07-29 20:28:05.000000000 +0200 +@@ -60,8 +60,8 @@ __asm__(".balign 32\n" + #include + #include "u_execmem.h" + +-static const char x86_entry_start[]; +-static const char x86_entry_end[]; ++extern const char x86_entry_start[] __attribute__((visibility("hidden"))); ++extern const char x86_entry_end[] __attribute__((visibility("hidden"))); + + void + entry_patch_public(void) Property changes on: graphics/libGL/files-old/patch-src_mapi_mapi_entry_x86_tsd.h ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/libGL/files-old/patch-src_mesa_Makefile =================================================================== --- graphics/libGL/files-old/patch-src_mesa_Makefile (revision 371006) +++ graphics/libGL/files-old/patch-src_mesa_Makefile (working copy) @@ -1,15 +0,0 @@ ---- src/mesa/Makefile.orig 2009-12-22 03:31:19.000000000 +0100 -+++ src/mesa/Makefile 2013-08-19 23:19:42.000000000 +0200 -@@ -127,10 +127,10 @@ - $(DESTDIR)$(INSTALL_INC_DIR)/GL - - install-libgl: default gl.pc install-headers -- $(INSTALL) -d $(DESTDIR)$(INSTALL_LIB_DIR) -+ $(INSTALL) -d $(DESTDIR)$(INSTALL_LIB_DIR)/.libGL - $(INSTALL) -d $(DESTDIR)$(INSTALL_LIB_DIR)/pkgconfig - $(MINSTALL) $(TOP)/$(LIB_DIR)/$(GL_LIB_GLOB) \ -- $(DESTDIR)$(INSTALL_LIB_DIR) -+ $(DESTDIR)$(INSTALL_LIB_DIR)/.libGL - $(INSTALL) -m 644 gl.pc $(DESTDIR)$(INSTALL_LIB_DIR)/pkgconfig - - install-osmesa: default osmesa.pc Index: graphics/libGL/files-old/patch-src_mesa_drivers_dri_common_Makefile.in =================================================================== --- graphics/libGL/files-old/patch-src_mesa_drivers_dri_common_Makefile.in (revision 0) +++ graphics/libGL/files-old/patch-src_mesa_drivers_dri_common_Makefile.in (working copy) @@ -0,0 +1,17 @@ +--- src/mesa/drivers/dri/common/Makefile.in.orig 2013-04-20 14:50:15.000000000 +0000 ++++ src/mesa/drivers/dri/common/Makefile.in 2013-04-20 15:02:05.000000000 +0000 +@@ -123,11 +123,11 @@ + am__depfiles_maybe = depfiles + am__mv = mv -f + COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ +- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) ++ $(AM_CFLAGS) $(CPPFLAGS) $(CFLAGS) + LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_CFLAGS) $(CFLAGS) ++ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(AM_CFLAGS) $(CPPFLAGS) \ ++ $(CFLAGS) + AM_V_CC = $(am__v_CC_@AM_V@) + am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) + am__v_CC_0 = @echo " CC " $@; Property changes on: graphics/libGL/files-old/patch-src_mesa_drivers_dri_common_Makefile.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: graphics/libGL/files-old/patch-src_mesa_drivers_dri_common_xmlpool_Makefile.in =================================================================== --- graphics/libGL/files-old/patch-src_mesa_drivers_dri_common_xmlpool_Makefile.in (revision 0) +++ graphics/libGL/files-old/patch-src_mesa_drivers_dri_common_xmlpool_Makefile.in (working copy) @@ -0,0 +1,11 @@ +--- src/mesa/drivers/dri/common/xmlpool/Makefile.in.orig 2013-07-02 22:42:09.000000000 +0200 ++++ src/mesa/drivers/dri/common/xmlpool/Makefile.in 2013-07-02 22:53:30.000000000 +0200 +@@ -639,7 +639,7 @@ + # Update .mo files from the corresponding .po files. + %/LC_MESSAGES/options.mo: %.po + @mo="$@"; \ +- lang=$${mo%%/*}; \ ++ lang=$*; \ + echo "Updating ($$lang) $@ from $?."; \ + mkdir -p $$lang/LC_MESSAGES; \ + msgfmt -o $@ $? Property changes on: graphics/libGL/files-old/patch-src_mesa_drivers_dri_common_xmlpool_Makefile.in ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: graphics/libGL/files-old/patch-src_mesa_main_compiler.h =================================================================== --- graphics/libGL/files-old/patch-src_mesa_main_compiler.h (revision 0) +++ graphics/libGL/files-old/patch-src_mesa_main_compiler.h (working copy) @@ -0,0 +1,12 @@ +--- src/mesa/main/compiler.h.orig 2013-04-06 04:01:09.000000000 +0200 ++++ src/mesa/main/compiler.h 2013-06-26 23:26:02.000000000 +0200 +@@ -171,6 +171,9 @@ + #if defined(__linux__) + #include + #define CPU_TO_LE32( x ) bswap_32( x ) ++#elif defined(__FreeBSD__) ++#include ++#define CPU_TO_LE32( x ) bswap32( x ) + #elif defined(__APPLE__) + #include + #define CPU_TO_LE32( x ) CFSwapInt32HostToLittle( x ) Property changes on: graphics/libGL/files-old/patch-src_mesa_main_compiler.h ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/libGL/files-old/patch-src_mesa_main_imports.c =================================================================== --- graphics/libGL/files-old/patch-src_mesa_main_imports.c (revision 0) +++ graphics/libGL/files-old/patch-src_mesa_main_imports.c (working copy) @@ -0,0 +1,10 @@ +--- src/mesa/main/imports.c.orig 2013-10-05 03:59:22.000000000 +0000 ++++ src/mesa/main/imports.c +@@ -566,6 +566,7 @@ float + _mesa_strtof( const char *s, char **end ) + { + #if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__) && \ ++ !defined(__DragonFly__) && \ + !defined(ANDROID) && !defined(__HAIKU__) && !defined(__UCLIBC__) + static locale_t loc = NULL; + if (!loc) { Property changes on: graphics/libGL/files-old/patch-src_mesa_main_imports.c ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/libGL/files-old/pkg-deinstall.in =================================================================== --- graphics/libGL/files-old/pkg-deinstall.in (revision 0) +++ graphics/libGL/files-old/pkg-deinstall.in (working copy) @@ -0,0 +1,12 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +PREFIX="${PKG_PREFIX-/usr/local}" + +case $2 in +DEINSTALL) + /bin/rm -f ${PREFIX}/lib/libGL.so* + ;; +esac Property changes on: graphics/libGL/files-old/pkg-deinstall.in ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/libGL/files-old/pkg-install.in =================================================================== --- graphics/libGL/files-old/pkg-install.in (revision 0) +++ graphics/libGL/files-old/pkg-install.in (working copy) @@ -0,0 +1,18 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +PREFIX="${PKG_PREFIX-/usr/local}" + +case $2 in +POST-INSTALL) + if [ -f ${PREFIX}/lib/.nvidia/libGL.so.1 ]; then + /bin/ln -f ${PREFIX}/lib/.nvidia/libGL.so.1 ${PREFIX}/lib/libGL.so + /bin/ln -f ${PREFIX}/lib/.nvidia/libGL.so.1 ${PREFIX}/lib/libGL.so.1 + else + /bin/ln -f ${PREFIX}/lib/.libGL/libGL.so.1 ${PREFIX}/lib/libGL.so + /bin/ln -f ${PREFIX}/lib/.libGL/libGL.so.1 ${PREFIX}/lib/libGL.so.1 + fi + ;; +esac Property changes on: graphics/libGL/files-old/pkg-install.in ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: graphics/libGL/pkg-plist =================================================================== --- graphics/libGL/pkg-plist (revision 371006) +++ graphics/libGL/pkg-plist (working copy) @@ -1,23 +1,20 @@ -%%OLD%%include/GL/dmesa.h -%%OLD%%include/GL/ggimesa.h +@comment etc/drirc +@comment include/GL/internal/dri_interface.h include/GL/gl.h include/GL/gl_mangle.h +%%NEW%%include/GL/glcorearb.h include/GL/glext.h -%%OLD%%include/GL/glfbdev.h include/GL/glx.h include/GL/glx_mangle.h include/GL/glxext.h -%%OLD%%include/GL/mesa_wgl.h -%%OLD%%include/GL/mglmesa.h include/GL/osmesa.h -%%OLD%%include/GL/svgamesa.h -%%OLD%%include/GL/vms_x_fix.h include/GL/wglext.h include/GL/wmesa.h -%%NEW%%lib/.libGL/libGL.la lib/.libGL/libGL.so lib/.libGL/libGL.so.1 -%%NEW%%lib/.libGL/libGL.so.1.2.0 +lib/.libGL/libGL.so.1.2.0 +@comment lib/libglapi.so +@comment lib/libglapi.so.0 +@comment lib/libglapi.so.0.0.0 +@comment libdata/pkgconfig/dri.pc libdata/pkgconfig/gl.pc -@dirrm lib/.libGL -@dirrmtry include/GL Index: graphics/libdrm/Makefile =================================================================== --- graphics/libdrm/Makefile (revision 371006) +++ graphics/libdrm/Makefile (working copy) @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= libdrm -PORTVERSION= ${LIBDRM_VERSION} -PORTREVISION= ${LIBDRM_REVISION} +PORTVERSION= 2.4.58 PORTEPOCH= 1 CATEGORIES= graphics x11 MASTER_SITES= http://dri.freedesktop.org/libdrm/ @@ -14,10 +13,10 @@ LIB_DEPENDS= libpciaccess.so:${PORTSDIR}/devel/libpciaccess \ libpthread-stubs.so:${PORTSDIR}/devel/libpthread-stubs +USES= libtool pkgconfig tar:bzip2 GNU_CONFIGURE= yes +USE_LDCONFIG= yes INSTALL_TARGET= install-strip -USES= libtool pkgconfig tar:bzip2 -USE_LDCONFIG= yes OPTIONS_DEFINE= MANPAGES @@ -25,16 +24,13 @@ OPTIONS_DEFAULT+= MANPAGES .endif +USES+= gmake + .include -.if defined(WITH_NEW_XORG) - -USES+= gmake - # KMS support in the kernel is only build on these archs, disable others .if ${ARCH} == "amd64" || ${ARCH} == "i386" CONFIGURE_ARGS+=--enable-libkms -EXTRA_PATCHES+= ${FILESDIR}/extra-xf86drmMode.c PLIST_SUB+= KMS="" NOUVEAU="" .else CONFIGURE_ARGS+=--disable-libkms @@ -50,21 +46,7 @@ PLIST_SUB+= MAN="@comment " .endif -LIBDRM_VERSION= 2.4.52 -LIBDRM_REVISION=1 -PLIST_SUB+= OLD="@comment " NEW="" -EXTRA_PATCHES+= ${FILESDIR}/extra-configure \ - ${FILESDIR}/extra-tests_modetest_Makefile.in \ - ${FILESDIR}/extra-tests_modetest_modetest.c \ - ${FILESDIR}/extra-tests_modetest_strchrnul.c \ - ${FILESDIR}/extra-tests__radeon__radeon_ttm.c CONFIGURE_ARGS+=--disable-vmwgfx -.else -CONFIGURE_ARGS= --enable-nouveau-experimental-api -LIBDRM_VERSION= 2.4.17 -LIBDRM_REVISION=2 -PLIST_SUB+= OLD="" NEW="@comment " NOUVEAU="" -.endif .if ${ARCH} == amd64 || ${ARCH} == i386 PLIST_SUB+= INTEL_DRIVER="" Index: graphics/libdrm/distinfo =================================================================== --- graphics/libdrm/distinfo (revision 371006) +++ graphics/libdrm/distinfo (working copy) @@ -1,4 +1,2 @@ -SHA256 (libdrm-2.4.17.tar.bz2) = b8a4e7c610b0e970546d791c06e28882857a49d34698633a89292d7ae142316a -SIZE (libdrm-2.4.17.tar.bz2) = 408882 -SHA256 (libdrm-2.4.52.tar.bz2) = fa693c2f1f61befcefbdcc396673e38481110bac9db610afa4b8afb2be0218c1 -SIZE (libdrm-2.4.52.tar.bz2) = 551473 +SHA256 (libdrm-2.4.58.tar.bz2) = b155fae6b9c9a3b02ef8b77f58c7c219194c996a4018dc55ba66c03996a365dd +SIZE (libdrm-2.4.58.tar.bz2) = 573202 Index: graphics/libdrm/files/extra-configure =================================================================== --- graphics/libdrm/files/extra-configure (revision 371006) +++ graphics/libdrm/files/extra-configure (working copy) @@ -1,39 +0,0 @@ ---- configure.orig 2013-02-22 00:30:16.861698520 +0100 -+++ configure 2013-02-22 00:30:26.189704713 +0100 -@@ -671,6 +671,8 @@ - HAVE_VMWGFX_TRUE - HAVE_LIBKMS_FALSE - HAVE_LIBKMS_TRUE -+HAVE_STRCHRNUL_FALSE -+HAVE_STRCHRNUL_TRUE - CLOCK_LIB - pkgconfigdir - PTHREADSTUBS_LIBS -@@ -12341,6 +12345,27 @@ - done - - -+for ac_func in strchrnul -+do : -+ ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul" -+if test "x$ac_cv_func_strchrnul" = xyes; then : -+ cat >>confdefs.h <<_ACEOF -+#define HAVE_STRCHRNUL 1 -+_ACEOF -+ HAVE_STRCHRNUL=yes -+fi -+done -+ -+ -+ if test "x$ac_cv_func_strchrnul" = xyes; then -+ HAVE_STRCHRNUL_TRUE= -+ HAVE_STRCHRNUL_FALSE='#' -+else -+ HAVE_STRCHRNUL_TRUE='#' -+ HAVE_STRCHRNUL_FALSE= -+fi -+ -+ - - - MAYBE_WARN="-Wall -Wextra \ Index: graphics/libdrm/files/extra-tests__radeon__radeon_ttm.c =================================================================== --- graphics/libdrm/files/extra-tests__radeon__radeon_ttm.c (revision 371006) +++ graphics/libdrm/files/extra-tests__radeon__radeon_ttm.c (working copy) @@ -1,13 +0,0 @@ ---- tests/radeon/radeon_ttm.c.orig 2013-11-07 11:34:28.207096353 +0100 -+++ tests/radeon/radeon_ttm.c 2013-11-07 11:37:41.571085931 +0100 -@@ -25,6 +25,10 @@ - */ - #include - #include -+#include -+ -+#include -+ - #include "rbo.h" - - /* allocate as many single page bo to try to starve the kernel Index: graphics/libdrm/files/extra-tests_modetest_Makefile.in =================================================================== --- graphics/libdrm/files/extra-tests_modetest_Makefile.in (revision 371006) +++ graphics/libdrm/files/extra-tests_modetest_Makefile.in (working copy) @@ -1,52 +0,0 @@ ---- tests/modetest/Makefile.in.orig 2013-10-11 18:46:07.000000000 +0200 -+++ tests/modetest/Makefile.in 2013-11-07 11:30:15.274123603 +0100 -@@ -80,8 +80,11 @@ - host_triplet = @host@ - @HAVE_INSTALL_TESTS_TRUE@bin_PROGRAMS = modetest$(EXEEXT) - @HAVE_INSTALL_TESTS_FALSE@noinst_PROGRAMS = modetest$(EXEEXT) --@HAVE_CAIRO_TRUE@am__append_1 = $(CAIRO_CFLAGS) --@HAVE_CAIRO_TRUE@am__append_2 = $(CAIRO_LIBS) -+@HAVE_STRCHRNUL_FALSE@am__append_1 = \ -+@HAVE_STRCHRNUL_FALSE@ strchrnul.c -+ -+@HAVE_CAIRO_TRUE@am__append_2 = $(CAIRO_CFLAGS) -+@HAVE_CAIRO_TRUE@am__append_3 = $(CAIRO_LIBS) - subdir = tests/modetest - DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ - $(top_srcdir)/build-aux/depcomp -@@ -98,7 +101,10 @@ - CONFIG_CLEAN_VPATH_FILES = - am__installdirs = "$(DESTDIR)$(bindir)" - PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS) --am_modetest_OBJECTS = buffers.$(OBJEXT) modetest.$(OBJEXT) -+am__modetest_SOURCES_DIST = buffers.c modetest.c buffers.h strchrnul.c -+@HAVE_STRCHRNUL_FALSE@am__objects_1 = strchrnul.$(OBJEXT) -+am_modetest_OBJECTS = buffers.$(OBJEXT) modetest.$(OBJEXT) \ -+ $(am__objects_1) - modetest_OBJECTS = $(am_modetest_OBJECTS) - am__DEPENDENCIES_1 = - @HAVE_CAIRO_TRUE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) -@@ -306,12 +312,12 @@ - top_srcdir = @top_srcdir@ - AM_CFLAGS = $(filter-out -Wpointer-arith, $(WARN_CFLAGS)) \ - -I$(top_srcdir)/include/drm -I$(top_srcdir)/libkms/ \ -- -I$(top_srcdir) $(am__append_1) -+ -I$(top_srcdir) $(am__append_2) - modetest_SOURCES = \ -- buffers.c modetest.c buffers.h -+ buffers.c modetest.c buffers.h $(am__append_1) - - modetest_LDADD = $(top_builddir)/libdrm.la \ -- $(top_builddir)/libkms/libkms.la $(am__append_2) -+ $(top_builddir)/libkms/libkms.la $(am__append_3) - all: all-am - - .SUFFIXES: -@@ -417,6 +423,7 @@ - - @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/buffers.Po@am__quote@ - @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/modetest.Po@am__quote@ -+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strchrnul.Po@am__quote@ - - .c.o: - @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< Index: graphics/libdrm/files/extra-tests_modetest_modetest.c =================================================================== --- graphics/libdrm/files/extra-tests_modetest_modetest.c (revision 371006) +++ graphics/libdrm/files/extra-tests_modetest_modetest.c (working copy) @@ -1,13 +0,0 @@ ---- tests/modetest/modetest.c.orig 2013-09-16 22:56:20.000000000 +0200 -+++ tests/modetest/modetest.c 2013-11-07 11:32:10.534114644 +0100 -@@ -59,6 +59,10 @@ - - #include "buffers.h" - -+#ifndef HAVE_STRCHRNUL -+char *strchrnul(const char *, int); -+#endif -+ - struct crtc { - drmModeCrtc *crtc; - drmModeObjectProperties *props; Index: graphics/libdrm/files/extra-tests_modetest_strchrnul.c =================================================================== --- graphics/libdrm/files/extra-tests_modetest_strchrnul.c (revision 371006) +++ graphics/libdrm/files/extra-tests_modetest_strchrnul.c (working copy) @@ -1,48 +0,0 @@ ---- tests/modetest/strchrnul.c.orig 2013-02-22 00:35:04.198698781 +0100 -+++ tests/modetest/strchrnul.c 2013-02-22 00:34:36.280333357 +0100 -@@ -0,0 +1,45 @@ -+/*- -+ * Copyright (c) 2013 Niclas Zeising -+ * All rights reserved. -+ * -+ * Redistribution and use in source and binary forms, with or without -+ * modification, are permitted provided that the following conditions -+ * are met: -+ * 1. Redistributions of source code must retain the above copyright -+ * notice, this list of conditions and the following disclaimer. -+ * 2. Redistributions in binary form must reproduce the above copyright -+ * notice, this list of conditions and the following disclaimer in the -+ * documentation and/or other materials provided with the distribution. -+ * -+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -+ * SUCH DAMAGE. -+ * -+ */ -+ -+/* -+ * Copied from: -+ * svn://svn.freebsd.org/base/head/lib/libc/string/strchrnul.c 246766 2013-02-13 15:46:33Z zeising -+ */ -+ -+char * -+strchrnul(const char *p, int ch) -+{ -+ char c; -+ -+ c = ch; -+ for (;; ++p) { -+ if (*p == c || *p == '\0') -+ return ((char *)p); -+ } -+ /* NOTREACHED */ -+} -+ Index: graphics/libdrm/files/extra-xf86drmMode.c =================================================================== --- graphics/libdrm/files/extra-xf86drmMode.c (revision 371006) +++ graphics/libdrm/files/extra-xf86drmMode.c (working copy) @@ -1,29 +0,0 @@ ---- xf86drmMode.c.orig 2010-09-08 14:23:39.000000000 +0200 -+++ xf86drmMode.c 2011-07-18 18:59:11.000000000 +0200 -@@ -54,7 +54,7 @@ - - static inline DRM_IOCTL(int fd, int cmd, void *arg) - { -- int ret = drmIoctl(fd, cmd, arg); -+ int ret = drmIoctl(fd, (unsigned)cmd, arg); - return ret < 0 ? -errno : ret; - } - -@@ -659,7 +659,7 @@ - */ - int drmCheckModesettingSupported(const char *busid) - { --#ifdef __linux__ -+#if defined (__linux__) - char pci_dev_dir[1024]; - int domain, bus, dev, func; - DIR *sysdir; -@@ -709,6 +709,8 @@ - closedir(sysdir); - if (found) - return 0; -+#elif defined(__FreeBSD__) || defined(__DragonFly__) -+ return 0; - #endif - return -ENOSYS; - Index: graphics/libdrm/pkg-plist =================================================================== --- graphics/libdrm/pkg-plist (revision 371006) +++ graphics/libdrm/pkg-plist (working copy) @@ -1,52 +1,30 @@ -%%OLD%%include/drm/drm.h -%%OLD%%include/drm/drm_mode.h -%%OLD%%include/drm/drm_sarea.h -%%OLD%%include/drm/i915_drm.h -%%OLD%%include/drm/mach64_drm.h -%%OLD%%include/drm/mga_drm.h -%%OLD%%include/drm/nouveau_drm.h -%%OLD%%include/drm/nouveau_drmif.h -%%OLD%%include/drm/r128_drm.h -%%OLD%%include/drm/radeon_drm.h -%%OLD%%include/drm/savage_drm.h -%%OLD%%include/drm/sis_drm.h -%%OLD%%include/drm/via_drm.h -%%OLD%%%%INTEL_DRIVER%%include/intel_bufmgr.h -%%NEW%%include/libdrm/drm.h -%%NEW%%include/libdrm/drm_fourcc.h -%%NEW%%include/libdrm/drm_mode.h -%%NEW%%include/libdrm/drm_sarea.h -%%NEW%%include/libdrm/i915_drm.h -%%NEW%%%%INTEL_DRIVER%%include/libdrm/intel_aub.h -%%NEW%%%%INTEL_DRIVER%%include/libdrm/intel_bufmgr.h -%%NEW%%%%INTEL_DRIVER%%include/libdrm/intel_debug.h -%%NEW%%include/libdrm/mach64_drm.h -%%NEW%%include/libdrm/mga_drm.h -%%NEW%%%%NOUVEAU%%include/libdrm/nouveau.h -%%NEW%%include/libdrm/nouveau_drm.h -%%NEW%%include/libdrm/qxl_drm.h -%%NEW%%include/libdrm/r128_drm.h -%%NEW%%%%RADEON_DRIVERS%%include/libdrm/r600_pci_ids.h -%%NEW%%%%RADEON_DRIVERS%%include/libdrm/radeon_bo.h -%%NEW%%%%RADEON_DRIVERS%%include/libdrm/radeon_bo_gem.h -%%NEW%%%%RADEON_DRIVERS%%include/libdrm/radeon_bo_int.h -%%NEW%%%%RADEON_DRIVERS%%include/libdrm/radeon_cs.h -%%NEW%%%%RADEON_DRIVERS%%include/libdrm/radeon_cs_gem.h -%%NEW%%%%RADEON_DRIVERS%%include/libdrm/radeon_cs_int.h -%%NEW%%include/libdrm/radeon_drm.h -%%NEW%%%%RADEON_DRIVERS%%include/libdrm/radeon_surface.h -%%NEW%%include/libdrm/savage_drm.h -%%NEW%%include/libdrm/sis_drm.h -%%NEW%%include/libdrm/via_drm.h -%%NEW%%%%KMS%%include/libkms/libkms.h -%%OLD%%include/nouveau/nouveau_bo.h -%%OLD%%include/nouveau/nouveau_channel.h -%%OLD%%include/nouveau/nouveau_class.h -%%OLD%%include/nouveau/nouveau_device.h -%%OLD%%include/nouveau/nouveau_grobj.h -%%OLD%%include/nouveau/nouveau_notifier.h -%%OLD%%include/nouveau/nouveau_pushbuf.h -%%OLD%%include/nouveau/nouveau_resource.h +include/libdrm/drm.h +include/libdrm/drm_fourcc.h +include/libdrm/drm_mode.h +include/libdrm/drm_sarea.h +include/libdrm/i915_drm.h +%%INTEL_DRIVER%%include/libdrm/intel_aub.h +%%INTEL_DRIVER%%include/libdrm/intel_bufmgr.h +%%INTEL_DRIVER%%include/libdrm/intel_debug.h +include/libdrm/mach64_drm.h +include/libdrm/mga_drm.h +%%NOUVEAU%%include/libdrm/nouveau.h +include/libdrm/nouveau_drm.h +include/libdrm/qxl_drm.h +include/libdrm/r128_drm.h +%%RADEON_DRIVERS%%include/libdrm/r600_pci_ids.h +%%RADEON_DRIVERS%%include/libdrm/radeon_bo.h +%%RADEON_DRIVERS%%include/libdrm/radeon_bo_gem.h +%%RADEON_DRIVERS%%include/libdrm/radeon_bo_int.h +%%RADEON_DRIVERS%%include/libdrm/radeon_cs.h +%%RADEON_DRIVERS%%include/libdrm/radeon_cs_gem.h +%%RADEON_DRIVERS%%include/libdrm/radeon_cs_int.h +include/libdrm/radeon_drm.h +%%RADEON_DRIVERS%%include/libdrm/radeon_surface.h +include/libdrm/savage_drm.h +include/libdrm/sis_drm.h +include/libdrm/via_drm.h +%%KMS%%include/libkms/libkms.h include/xf86drm.h include/xf86drmMode.h lib/libdrm.so @@ -56,31 +34,27 @@ %%INTEL_DRIVER%%lib/libdrm_intel.so.1 %%INTEL_DRIVER%%lib/libdrm_intel.so.1.0.0 %%NOUVEAU%%lib/libdrm_nouveau.so -%%OLD%%%%NOUVEAU%%lib/libdrm_nouveau.so.1 -%%OLD%%%%NOUVEAU%%lib/libdrm_nouveau.so.1.0.0 -%%NEW%%%%NOUVEAU%%lib/libdrm_nouveau.so.2 -%%NEW%%%%NOUVEAU%%lib/libdrm_nouveau.so.2.0.0 -%%NEW%%%%RADEON_DRIVERS%%lib/libdrm_radeon.so -%%NEW%%%%RADEON_DRIVERS%%lib/libdrm_radeon.so.1 -%%NEW%%%%RADEON_DRIVERS%%lib/libdrm_radeon.so.1.0.1 -%%NEW%%%%KMS%%lib/libkms.so -%%NEW%%%%KMS%%lib/libkms.so.1 -%%NEW%%%%KMS%%lib/libkms.so.1.0.0 +%%NOUVEAU%%lib/libdrm_nouveau.so.2 +%%NOUVEAU%%lib/libdrm_nouveau.so.2.0.0 +%%RADEON_DRIVERS%%lib/libdrm_radeon.so +%%RADEON_DRIVERS%%lib/libdrm_radeon.so.1 +%%RADEON_DRIVERS%%lib/libdrm_radeon.so.1.0.1 +%%KMS%%lib/libkms.so +%%KMS%%lib/libkms.so.1 +%%KMS%%lib/libkms.so.1.0.0 libdata/pkgconfig/libdrm.pc %%INTEL_DRIVER%%libdata/pkgconfig/libdrm_intel.pc %%NOUVEAU%%libdata/pkgconfig/libdrm_nouveau.pc -%%NEW%%%%RADEON_DRIVERS%%libdata/pkgconfig/libdrm_radeon.pc -%%NEW%%%%KMS%%libdata/pkgconfig/libkms.pc -%%NEW%%%%MAN%%man/man3/drmAvailable.3.gz -%%NEW%%%%MAN%%man/man3/drmHandleEvent.3.gz -%%NEW%%%%MAN%%man/man3/drmModeGetResources.3.gz -%%NEW%%%%MAN%%man/man7/drm-gem.7.gz -%%NEW%%%%MAN%%man/man7/drm-kms.7.gz -%%NEW%%%%MAN%%man/man7/drm-memory.7.gz -%%NEW%%%%MAN%%man/man7/drm-mm.7.gz -%%NEW%%%%MAN%%man/man7/drm-ttm.7.gz -%%NEW%%%%MAN%%man/man7/drm.7.gz -%%OLD%%@dirrm include/nouveau -%%NEW%%%%KMS%%@dirrm include/libkms -%%NEW%%@dirrm include/libdrm -%%OLD%%@dirrm include/drm +%%RADEON_DRIVERS%%libdata/pkgconfig/libdrm_radeon.pc +%%KMS%%libdata/pkgconfig/libkms.pc +%%MAN%%man/man3/drmAvailable.3.gz +%%MAN%%man/man3/drmHandleEvent.3.gz +%%MAN%%man/man3/drmModeGetResources.3.gz +%%MAN%%man/man7/drm-gem.7.gz +%%MAN%%man/man7/drm-kms.7.gz +%%MAN%%man/man7/drm-memory.7.gz +%%MAN%%man/man7/drm-mm.7.gz +%%MAN%%man/man7/drm-ttm.7.gz +%%MAN%%man/man7/drm.7.gz +%%KMS%%@dirrm include/libkms +@dirrm include/libdrm Index: graphics/libglapi/Makefile =================================================================== --- graphics/libglapi/Makefile (revision 371006) +++ graphics/libglapi/Makefile (working copy) @@ -3,29 +3,36 @@ PORTNAME= libglapi PORTVERSION= ${MESAVERSION} -PORTREVISION= 1 +PORTREVISION= ${LIBGLAPI_REVISION} CATEGORIES= graphics COMMENT= Common GL api library used by Mesa based ports -BUILD_DEPENDS= expat>=0:${PORTSDIR}/textproc/expat2 \ - libdrm>=0:${PORTSDIR}/graphics/libdrm \ - libpthread-stubs>=0:${PORTSDIR}/devel/libpthread-stubs +LIB_DEPENDS+= libpthread-stubs.so:${PORTSDIR}/devel/libpthread-stubs USE_XORG= x11 xau xcb xdmcp # stuff not needed by libglapi but configure wants it -USE_XORG+= glproto dri2proto dri3proto xext xdamage xfixes presentproto \ +USE_XORG+= glproto dri2proto xext xdamage xfixes presentproto \ xshmfence +LIB_DEPENDS+= libexpat.so:${PORTSDIR}/textproc/expat2 \ + libdrm.so:${PORTSDIR}/graphics/libdrm -BUILD_WRKSRC= ${WRKSRC}/src/mapi/shared-glapi -INSTALL_WRKSRC= ${WRKSRC}/src/mapi/shared-glapi - .include +.include "${.CURDIR}/../../graphics/libGL/bsd.mesalib.mk" -.if ! defined(WITH_NEW_XORG) -IGNORE= Please enable WITH_NEW_XORG, libglapi needs libdrm higher then 2.4.24 +.if defined (WITH_NEW_MESA) +LIBGLAPI_REVISION= 0 +.else +LIBGLAPI_REVISION= 2 .endif -.include "${.CURDIR}/../../graphics/libGL/bsd.mesalib.mk" +.if defined (WITH_NEW_MESA) +BUILD_WRKSRC= ${WRKSRC}/src/mapi +INSTALL_WRKSRC= ${WRKSRC}/src/mapi +.else +BUILD_WRKSRC= ${WRKSRC}/src/mapi/shared-glapi +INSTALL_WRKSRC= ${WRKSRC}/src/mapi/shared-glapi +.endif + .include Index: graphics/libglapi/pkg-descr =================================================================== --- graphics/libglapi/pkg-descr (revision 371006) +++ graphics/libglapi/pkg-descr (working copy) @@ -1,3 +1,3 @@ -This package contains the share GL API library. +This package contains the EGL utility library. WWW: http://www.freedesktop.org/Software/xorg Index: graphics/libglapi/pkg-plist =================================================================== --- graphics/libglapi/pkg-plist (revision 371006) +++ graphics/libglapi/pkg-plist (working copy) @@ -1,4 +1,3 @@ -lib/libglapi.la lib/libglapi.so lib/libglapi.so.0 lib/libglapi.so.0.0.0 Index: graphics/libglesv2/Makefile =================================================================== --- graphics/libglesv2/Makefile (revision 371006) +++ graphics/libglesv2/Makefile (working copy) @@ -3,31 +3,42 @@ PORTNAME= libglesv2 PORTVERSION= ${MESAVERSION} -PORTREVISION= 2 +PORTREVISION= ${LIBGLES_REVISION} CATEGORIES= graphics COMMENT= OpenGL ES v2 library -BUILD_DEPENDS= expat>=0:${PORTSDIR}/textproc/expat2 LIB_DEPENDS+= libdrm.so:${PORTSDIR}/graphics/libdrm \ - libglapi.so:${PORTSDIR}/graphics/libglapi + libglapi.so:${PORTSDIR}/graphics/libglapi \ + libexpat.so:${PORTSDIR}/textproc/expat2 +# stuff not needed by libglesv2 but configure wants it +USE_XORG+= glproto dri2proto xext xdamage xfixes presentproto \ + xshmfence + .include +.include "${.CURDIR}/../../graphics/libGL/bsd.mesalib.mk" -.if ! defined(WITH_NEW_XORG) -IGNORE= Please enable WITH_NEW_XORG, libglesv2 needs libdrm higher then 2.4.24 +.if defined(WITH_NEW_MESA) +LIBGLES_REVISION= 0 +.else +LIBGLES_REVISION= 3 .endif -# stuff not needed by libEGL but configure wants it -USE_XORG+= glproto dri2proto xext xdamage xfixes - - -BUILD_WKRSRC= ${WRKSRC}/src/mapi/es2api +.if defined(WITH_NEW_MESA) +BUILD_WRKSRC= ${WRKSRC}/src/mapi +INSTALL_WRKSRC= ${WRKSRC}/src/mapi +.else +BUILD_WRKSRC= ${WRKSRC}/src/mapi/es2api INSTALL_WRKSRC= ${WRKSRC}/src/mapi/es2api +.endif -# this library doesn't exist in Mesa 7.6 so use newer -WITH_NEW_XORG=yes +.if !defined(WITH_NEW_MESA) +pre-build: + @cd ${WRKSRC}/src/mapi/shared-glapi && ${MAKE_CMD} ${_MAKE_JOBS} +.else +post-install: + @${RM} ${STAGEDIR}/${PREFIX}/lib/libglapi* +.endif -.include -.include "${.CURDIR}/../../graphics/libGL/bsd.mesalib.mk" .include Index: graphics/libglesv2/pkg-plist =================================================================== --- graphics/libglesv2/pkg-plist (revision 371006) +++ graphics/libglesv2/pkg-plist (working copy) @@ -2,12 +2,10 @@ include/GLES2/gl2ext.h include/GLES2/gl2platform.h include/GLES3/gl3.h +%%NEW%%include/GLES3/gl31.h include/GLES3/gl3ext.h include/GLES3/gl3platform.h -lib/libGLESv2.la lib/libGLESv2.so lib/libGLESv2.so.2 lib/libGLESv2.so.2.0.0 libdata/pkgconfig/glesv2.pc -@dirrmtry include/GLES3 -@dirrmtry include/GLES2