Commit graph

424 commits

Author SHA1 Message Date
tnn
c7516ae498 The LLVM option enables JIT accelerated software rendering and
is also required to support the latest RADEON GPUs, so enable it
by default on platforms where such GPUs might be encountered.
Also enable thread local storage support in GLX for those platforms.
Part of PR pkg/50172.
2015-09-12 16:50:24 +00:00
tnn
e8e4347f67 Add workaround for non-zero initialized initial-exec TLS variables. 2015-09-11 16:27:30 +00:00
tnn
3c973fac2b Must disable EGL when disabling DRI (PR pkg/50232) 2015-09-11 15:30:35 +00:00
tnn
0d8586e949 NetBSD 5.x build fix 2015-09-11 12:38:27 +00:00
wiz
d1cb255abc Mark as not ready for python-3.x
SyntaxError: Missing parentheses in call to print
2015-09-11 06:30:55 +00:00
tnn
c6defe103f Update to MesaLib-10.6.7.
Requested by David Shao in PR pkg/50202.
Also as suggested add support for using libdevq for FreeBSD, from Ports.
(Re the PR: I think we should have TLS GLX unconditionally enabled on
 platforms that support it, but needs more testing so not commited just yet.)

New features in MesaLib 10.6:
    GL_AMD_pinned_memory on r600, radeonsi
    GL_ARB_clip_control on i965
    GL_ARB_depth_buffer_float on freedreno
    GL_ARB_depth_clamp on freedreno
    GL_ARB_direct_state_access on all drivers that support GL 2.0+
    GL_ARB_draw_indirect, GL_ARB_multi_draw_indirect on r600
    GL_ARB_draw_instanced on freedreno
    GL_ARB_gpu_shader_fp64 on nvc0, softpipe
    GL_ARB_gpu_shader5 on i965/gen8+
    GL_ARB_instanced_arrays on freedreno
    GL_ARB_pipeline_statistics_query on i965, nv50, nvc0, r600, radeonsi, softpipe
    GL_ARB_program_interface_query (all drivers)
    GL_ARB_texture_stencil8 on nv50, nvc0, r600, radeonsi, softpipe
    GL_ARB_texture_view on llvmpipe, softpipe
    GL_ARB_uniform_buffer_object on freedreno
    GL_ARB_vertex_attrib_64bit on nvc0, softpipe
    GL_ARB_viewport_array, GL_AMD_vertex_shader_viewport_index on i965/gen6
    GL_EXT_draw_buffers2 on freedreno
    GL_OES_EGL_sync on all drivers
    EGL_KHR_fence_sync on i965, freedreno, nv50, nvc0, r600, radeonsi
    EGL_KHR_wait_sync on i965, freedreno, nv50, nvc0, r600, radeonsi
    EGL_KHR_cl_event2 on freedreno, nv50, nvc0, r600, radeonsi
    GL_AMD_performance_monitor on nvc0

Also many bugfixes.
2015-09-11 00:03:36 +00:00
jperkin
7f23a5f8c1 Ensure BUILDLINK_API_DEPENDS are only set when not using the builtin
version, otherwise those dependency builtins are not included when
building x11-links.  Fixes missing libxcb links on Linux.
2015-06-22 22:45:06 +00:00
jperkin
de8febe19f Ensure we pull in the required versions of libdrm and libxcb when
enabling DRI3 on Linux.  Fixes EL6 which has builtin versions that
are too old.
2015-06-19 16:27:40 +00:00
tnn
e315510387 Update to MesaLib-10.5.7.
MesaLib-10.5.7 2015-06-07
"The current release includes over a dozen nouveau fixes (mostly targeting
nv30/nv40 era hardware), i965 patches and a crash fix common to all the
gallium dri modules."

MesaLib-10.5.6 2015-05-24
"This time around we have fixes from all over mesa - core mesa, driver
specific patches (i965, nouveau, freedreno), reentrancy improvements
in Clover (OpenCL), GLX and EGL loader patches, and Darwin build fixes."
2015-06-07 15:48:12 +00:00
tnn
59b796e39e PR pkg/49923: pull in libxshmfence via bl3 for Linux.
Needed for linking packages that use gl.pc because it lists libxshmfence
as dependency.
2015-05-28 21:09:07 +00:00
tnn
c11fd333d4 Fix OSX build errors. patches from FDO bug 66346 and 90249.
Reported on IRC by Youri Mouton.
2015-05-16 16:39:52 +00:00
wiz
03317cc152 regen (for committed version of patch-src_gallium_winsys_svga_drm_vmw__screen__ioctl.c) 2015-05-16 00:15:52 +00:00
nros
ebfd60d0d7 Moved define of _KERNEL_STRUCTURES to patch instead of setting
it in the Makefile.
2015-05-15 14:27:42 +00:00
nros
90f36c0867 Fix build on DragonFlyBSD.
-D_KERNEL_STRUCTURES are needed for ERESTART on DragonFlyBSD.
2015-05-12 17:10:30 +00:00
tnn
bf536beb9b Update to MesaLib-10.5.5.
MesaLib-10.5.5 2015-05-11
"This release includes a selection of i965 and nouveau driver fixes. Everyone
using a gallium driver (r300, r600 and others) is also encouraged to update."

MesaLib-10.5.4 2015-04-24
"This release includes fixes for the mesa state-tracker used by all the
gallium drivers, a drirc workaround for Second Life, plus i965 fixes."
2015-05-11 21:43:19 +00:00
tnn
a211b00aa4 Assume that __GNUC__ implies that it has __builtin_ffsll as a last
ditch resort in case ffsll(3) is found to be not available.
2015-05-11 21:33:58 +00:00
tnn
d740acbdf9 Fix DRI3 build on Linux 2015-04-29 14:36:36 +00:00
sevan
bc393dbb77 Unbreak on FreeBSD by also ensuring that ERSTART is defined and set to the
expected value for it.

Reviewed by bsiegert@
2015-04-29 14:12:54 +00:00
tnn
05b564be62 PR pkg/49867: circular dependency between MesaLib and libva on Linux.
I probably added libva as a dependency at some point in wip/ since
configure wanted it. Not sure what it's used for so just remove it.
2015-04-28 21:06:32 +00:00
tnn
742df199e5 drop llvm as suggested option until build issues can be figured out 2015-04-26 08:00:40 +00:00
tnn
d1e3fb144a Update to MesaLib-10.5.3.
Apologies in advance for any fallout. I have tested this as extensively
as I could in wip but the fact is we were 5 years and 50+ releases behind so
there will undoubtably still be issues.

Users of software rendering should see a nice performance boost with this
package as it now comes with the llvmpipe software rasterizer.

Users who currently enjoy working DRI1 rendering with X11_TYPE=modular should
switch to x11/modular-xorg-server112 now as x11/modular-xorg-server will
from now on only support DRI2 and up.

New features in MesaLib 10.5:
  Mesa 10.5.0 implements the OpenGL 3.3 API
  GL_ARB_framebuffer_sRGB on freedreno
  GL_ARB_texture_rg on freedreno
  GL_EXT_packed_float on freedreno
  GL_EXT_polygon_offset_clamp on i965, nv50, nvc0, r600, radeonsi, llvmpipe
  GL_EXT_texture_shared_exponent on freedreno
  GL_EXT_texture_snorm on freedreno

Changes in MesaLib 10.5:
  Removed support for GCC versions earlier than 4.2.0.

New features in MesaLib 10.4:
  GL_ARB_conditional_render_inverted on nv50
  GL_ARB_sample_shading on r600
  GL_ARB_texture_view on nv50, nvc0
  GL_ARB_clip_control on nv50, nvc0, r300, r600, radeonsi, llvmpipe, softpipe
  GL_KHR_context_flush_control on all drivers

Changes in MesaLib 10.4:
  The environment variable GALLIUM_MSAA that forced a multisample GLX visual
    was removed.

New features in MesaLib 10.3:
  GL_ARB_ES3_compatibility on nv50, nvc0, r600, radeonsi, softpipe, llvmpipe
  GL_ARB_clear_texture on i965
  GL_ARB_compressed_texture_pixel_storage on all drivers
  GL_ARB_conditional_render_inverted on i965, nvc0, softpipe, llvmpipe
  GL_ARB_derivative_control on i965, nv50, nvc0, r600
  GL_ARB_draw_indirect on nvc0, radeonsi
  GL_ARB_explicit_uniform_location (all drivers that support GLSL)
  GL_ARB_fragment_layer_viewport on nv50, nvc0, llvmpipe, r600
  GL_ARB_gpu_shader5 on i965/gen7, nvc0
  GL_ARB_multi_draw_indirect on nvc0, radeonsi
  GL_ARB_sample_shading on radeonsi
  GL_ARB_seamless_cubemap_per_texture on i965, llvmpipe, nvc0, r600, radeonsi,
    softpipe
  GL_ARB_stencil_texturing on nv50, nvc0, r600, and radeonsi
  GL_ARB_texture_barrier on nv50, nvc0, r300, r600, radeonsi
  GL_ARB_texture_compression_bptc on i965/gen7+, nvc0, r600/evergreen+, radeonsi
  GL_ARB_texture_cube_map_array on radeonsi
  GL_ARB_texture_gather on r600, radeonsi
  GL_ARB_texture_query_levels on nv50, nvc0, llvmpipe, r600, radeonsi, softpipe
  GL_ARB_texture_query_lod on r600, radeonsi
  GL_ARB_viewport_array on nvc0
  GL_AMD_vertex_shader_viewport_index on i965/gen7+, r600
  GL_OES_compressed_ETC1_RGB8_texture on nv30, nv50, nvc0, r300, r600,
  radeonsi, softpipe, llvmpipe
  GLX_MESA_query_renderer on nv30, nv50, nvc0, r300, r600, radeonsi, softpipe,
    llvmpipe
  A new software rasterizer driver (kms_swrast_dri.so) that works with DRM
    drivers that don't have a full-fledged GEM (such as qxl or simpledrm)
  Distribute the Khronos GL/glcorearb.h header file.

Changes in MesaLib 10.3:
  Removed support for the GL_ATI_envmap_bumpmap extension
  The hacky --enable-32/64-bit is no longer available in configure. To build
  32/64 bit mesa refer to the default method recommended by your distribution

New features in MesaLib 10.2:
  GL_ARB_buffer_storage on i965, nv30, nv50, nvc0, r300, r600, and radeonsi
  GL_ARB_multi_bind on all drivers
  GL_ARB_sample_shading on nv50 (GT21x only), nvc0
  GL_ARB_separate_shader_objects (desktop OpenGL) and
  GL_EXT_separate_shader_objects (OpenGL ES 2.0 and 3.0) on all drivers
  GL_ARB_stencil_texturing on i965/gen8+
  GL_ARB_texture_cube_map_array on nv50 (GT21x only)
  GL_ARB_texture_gather on nv50 (GT21x only), nvc0
  GL_ARB_texture_query_lod on nv50 (GT21x only), nvc0
  GL_ARB_texture_view on i965/gen7
  GL_ARB_vertex_type_10f_11f_11f_rev on nv50, nvc0, radeonsi
  GL_ARB_viewport_array on nv50, r600
GL_INTEL_performance_query on i965/gen5+

Changes in MesaLib 10.2:
  Renamed --with-llvm-shared-libs to --enable-llvm-shared-libs
  Split libxatracker.so into a standalone library which can be used with any
  gallium driver.

New features in MesaLib 10.1:
  GL_ARB_draw_indirect on i965.
  GL_ARB_clear_buffer_object
  GL_ARB_viewport_array on i965.
  GL_ARB_map_buffer_alignment on all drivers that did not previously support it.
  GL_AMD_shader_trinary_minmax.
  GL_EXT_framebuffer_blit on r200 and radeon.
  Reduced memory usage for display lists.
  OpenGL 3.3 support on nv50, nvc0, r600 and radeonsi

Changes in MesaLib 10.1:
  Removed support for the GL_MESA_texture_array extension. This extension
  enabled the use of texture array with fixed-function and assembly fragment
  shaders. No applications are known to use this extension.

New features in MesaLib 10.0:
  GL_AMD_seamless_cubemap_per_texture on i965.
  GL_ARB_conservative_depth on i965.
  GL_ARB_texture_gather on i965.
  GL_ARB_texture_query_levels on i965.
  GL_ARB_texture_mirror_clamp_to_edge.
  GL_ARB_transform_feedback2, GL_ARB_transform_feedback3, and
    GL_ARB_transform_feedback_instanced on i965/Gen7 (with appropriate kernel
    support).
  GL_ARB_sample_shading on i965.
  GL_ARB_shader_atomic_counters on i965.
  GL_ARB_vertex_attrib_binding
  GL_ARB_vertex_type_10f_11f_11f_rev on i965 and r600g
  GL_KHR_debug
  GLX_MESA_query_renderer

Changes in MesaLib 10.0:
  Removed X.Org state tracker (unmaintained and broken)
  Removed the video-accel r300 targets
  Removed the video-accel softpipe targets

New features in MesaLib 9.2:
  GL_ARB_shading_language_420pack in all drivers that support GLSL 1.30.
  GL_ARB_texture_buffer_range
  GL_ARB_texture_multisample
  GL_ARB_texture_storage_multisample
  GL_ARB_texture_query_lod
  GL_ARB_texture_storage on radeon, r200, and nouveau
  GL_EXT_discard_framebuffer in all OpenGL ES (all versions) drivers
  GL_EXT_framebuffer_multisample_blit_scaled on i965
  Added new freedreno gallium driver
  OSMesa interface for gallium llvmpipe/softpipe drivers
  Gallium Heads-Up Display (HUD) feature for performance monitoring
  Added support for UVD (2.2 and 3.0) video decoding on r600g and radeonsi
  through VDPAU (requires Kernel 3.10 or later)

Changes in MesaLib 9.2:
    Removed d3d1x state tracker (unused, unmaintained and broken)
    Removed GL_EXT_clip_volume_hint because no driver had enabled it since 2007.
    Removed GL_MESA_resize_buffers because it was only really implemented by
      the (unsupported) GDI driver.
    GL_EXT_separate_shader_objects has been removed from all Gallium drivers,
      because it disallows a critical GLSL shader optimization.
      GL_ARB_separate_shader_objects doesn't have this issue.
    i965 Gen6+ requires Kernel 3.6 or later. (92d2f5a)

New features in MesaLib 9.1:
  GL_ANGLE_texture_compression_dxt3
  GL_ANGLE_texture_compression_dxt5
  GL_ARB_ES3_compatibility
  GL_ARB_internalformat_query
  GL_ARB_map_buffer_alignment
  GL_ARB_shading_language_packing
  GL_ARB_texture_buffer_object_rgb32
  GL_ARB_texture_cube_map_array
  GL_EXT_color_buffer_float
  GL_OES_depth_texture_cube_map
  OpenGL 3.1 core profile support on Radeon HD2000 up to HD6000 series
  Multisample anti-aliasing support on Radeon X1000 series
  OpenGL ES 3.0 support on Intel HD Graphics 2000, 2500, 3000, and 4000

Changes in MesaLib 9.1:
  Removed VAAPI state tracker (unmaintained and broken)
  Removed i965's broken hardware implementation of GL_NV_vertex_program
  Removed swrast support for GL_NV_vertex_program
  Removed swrast support for GL_NV_fragment_program
  Removed OpenVMS support (unmaintained and broken)
  Removed makedepend build dependency

New features in MesaLib 9:
  Added new Gallium3D - nv30 driver
  Added new Gallium3D - radeonsi driver
  Added OpenCL state tracker Clover
  Completed VDPAU state tracker (video decoding support is currently limited
    to MPEG1 and MPEG2)
  GL_ARB_base_instance
  GL_ARB_blend_func_extended
  GL_ARB_debug_output
  GL_ARB_invalidate_subdata - Currently a "no-op" implementation. This
    extension is always enabled in all drivers.
  GL_ARB_shader_bit_encoding
  GL_ARB_texture_buffer_object
  GL_ARB_timer_query
  GL_ARB_transform_feedback3
  GL_ARB_transform_feedback_instanced
  GL_ARB_uniform_buffer_object
  GL_EXT_unpack_subimage for ES 2.0
  GL_EXT_read_format_bgra for ES 1.1 and 2.0
  GL_EXT_texture_rg for ES 2.x
  GL_NV_read_buffer for ES 2.0
  GLX_ARB_create_context_robustness
  EGL_KHR_create_context
  EGL_KHR_surfaceless_context - This replaces the
    EGL_KHR_surfaceless_{gles1,gles2,opengl} extensions that were never
    approved by Khronos.
  EGL_EXT_create_context_robustness

Changes in Mesalib 9:
 The legacy/static Makefile system (ex: 'make linux-dri') has been removed.
  The two supported build methods are now autoconf/automake and SCons.
  Removed support for GL_ARB_shadow_ambient extension
  Removed Gallium3D - nvfx driver (use nv30 instead)
  libGLU has been moved into its own repository

New features in MesaLib 8:
  GL_ARB_ES2_compatibility (r300g, r600g)
  GL_ARB_depth_buffer_float (r600g)
  GL_ARB_vertex_type_2_10_10_10_rev (r600g)
  GL_ARB_texture_storage (gallium drivers and swrast)
  GL_EXT_packed_float (i965)
  GL_EXT_texture_array (r600g, i965)
  GL_EXT_texture_shared_exponent (i965)
  GL_NV_fog_distance (all gallium drivers, nouveau classic)
  GL_NV_primitive_restart (r600g)
  GL_OES_EGL_image_external (gallium drivers)
  GL_OES_compressed_ETC1_RGB8_texture (softpipe, llvmpipe)
  ARB_texture_rgb10_a2ui (softpipe, r600g)
  Many updates to the VMware svga Gallium driver

Changes in MesaLib 8:
  Removed all DRI drivers that did not support DRI2. Specifically, i810,
  mach64, mga, r128, savage, sis, tdfx, and unichrome were removed.
  Removed support for BeOS.
  Removed the obsolete (and unmaintained) Windows "gldirect" and "ICD" drivers.
  Removed the linux-fbdev software driver.
  Removed all remnants of paletted texture support. As required by desktop
  OpenGL, GL_COLOR_INDEX data can still be uploaded to a color (e.g., RGBA)
  texture. However, the data cannot be stored internally as color-index.
  Removed support for GL_APPLE_client_storage extension.
  Removed the classic Mesa r300 and r600 drivers, which are superseded by the
  gallium drivers for this hardware.
  Removed the dead Gallium i965, cell and failover drivers, which were either
  broken and with nobody in sight to fix the situation or deprecated.
2015-04-25 11:19:18 +00:00
tnn
9ff61264c9 Assume that whatever problems this patch set fixed are fixed upstream in
Mesa 10.5.3. There are no patch comments or CVS history for these and
the original author couldn't provide details.
2015-04-25 11:13:23 +00:00
tnn
571f20f738 fold "common" makefile fragments back into MesaLib/Makefile since
all previous consumers are now standalone.
2015-04-03 02:24:16 +00:00
tnn
6ca987235a Force a full dependency on libpciaccess in situations where we definitely
need to link with it but might have included x11/xf86driproto's bl3.mk first,
because we have:
x11/xf86driproto/buildlink3.mk:BUILDLINK_DEPMETHOD.libpciaccess?=  build

(This issue appears only on non-x86 because on x86 we get libpciaccess
 through libdrm)

Bump PKGREVISION to get the dependency expressed.
2015-03-09 19:54:44 +00:00
nat
aaeea725bf Fix segfaults and crashing with applications that use libGLU.
This commit was approved by wiz@
2015-01-29 22:35:43 +00:00
wiz
fc7241ed17 Use __attribute__((__destructor__)) instead of magic __dso_handle, and
fix another place.
Patches from Taylor R Campbell (NetBSD xsrc).
Bump PKGREVISION.
2014-08-06 10:25:14 +00:00
ryoon
801643bb87 Fix build under OpenBSD/amd64 5.5 2014-05-03 19:03:59 +00:00
jperkin
b0fac129b9 Look for gl.pc in lib${LIBABISUFFIX}/pkgconfig too. Fixes some Linux
dependencies.
2014-03-22 08:19:24 +00:00
obache
1638c45efd Overall dri related dependency clean up.
* move dri related API_DEPENDS into dri.mk.
* add missing API_DEPENDS.
* only define such API_DEPENDS only not using builtin MesaLib.

Fixes following issues on platforms that builtin one is older than required
version (ex. NetBSD-5).
* build issue of MesaLib
* unwanted dependency on MesaLib from pkgsrc even if builtin one is sufficient.
2014-03-14 07:19:36 +00:00
obache
c800fa3b72 inlucde machine/endian.h on NetBSD and OpenBSD to detect endian for neigher
x86 nor ppc.

PR pkg/48548
2014-02-04 10:51:30 +00:00
ryoon
5127070361 Bump PKGREVISION
* Fix exit time segfault of qt5 applications
2014-01-24 23:00:15 +00:00
pho
172c709fdd Fix build of MesaLib on PowerPC platforms without GCC >= 4.1 (like MacOS X 10.5). 2014-01-10 07:21:16 +00:00
is
7cba2b09c2 Fix for the integer overflow possibility reported in
http://secunia.com/advisories/53558 / CVE 2013-1993
taken from upstream:
http://lists.freedesktop.org/archives/mesa-dev/2013-May/039720.html
http://lists.freedesktop.org/archives/mesa-dev/2013-May/039722.html
but with s/calloc/(char *) Xcalloc/
2013-12-12 14:44:10 +00:00
bsiegert
c1229d4a7c Fix build of MesaLib on MirBSD. The mklib script needed some prodding, and
configure mis-detects -fvisibility=hidden for some reason.
2013-11-29 15:27:19 +00:00
asau
9d91ed160b Treat FreeBSD and NetBSD uniformly. This fixes building the package on FreeBSD. 2013-09-23 02:07:00 +00:00
asau
2d41d97ef5 Suggest DRI option for FreeBSD.
This lets the build fail further.
2013-09-23 01:51:55 +00:00
wiz
c9c5dd5a88 MesaLib's configure insists on glproto>=1.4.11, so depend on that version.
Might help on NetBSD-5.2_STABLE.
2013-08-27 11:14:53 +00:00
dholland
9f977a333d Fix the builtin version detection by checking the pkgconfig files if
they exist. Now gets 7.8.2 on netbsd-current instead of 4.0.4. (!)
2013-06-17 05:27:50 +00:00
obache
a1c4924bf1 Change MESA_BIG_ENDIAN condition check for PR pkg/47919. 2013-06-16 04:16:59 +00:00
wiz
97e86630df Add missing patch checksum. 2013-06-13 21:35:24 +00:00
wiz
485d44ac56 Check for symbol existence with #ifdef, not #if.
Needed since some other files only #define the symbol without a value.

Bump PKGREVISION since this changes an installed header file.
2013-06-13 14:16:21 +00:00
mef
a38c7cd4c9 PR pkg/47913, fix build problem on powerpc
(example was NetBSD/macppc 6.1) as:
#error Unknown Endianness
2013-06-10 12:29:54 +00:00
wiz
5b9c381fec Mark the package as broken on NetBSD when dri is not enabled.
The build will fail anyway.
Addresses PR 47862 by Jörn Clausen.
2013-05-28 11:27:09 +00:00
wiz
2e143d6ebf Allow the dri option on NetBSD even with native x (compile-tested by
Patrick Welche) and enable it by default there too; bump libdrm
requirement (from Patrick Welche).
Also enable dri on Linux by default, not only for Linux with modular X.

Bump PKGREVISION.
2013-05-27 06:45:30 +00:00
sbd
1a13cfc76e Make dri a suggested option on Linux i386 and x86_64. 2013-05-20 07:04:35 +00:00
sbd
08f0396618 Fixes for non-dri build:
+ Build the x11 version libGL.so with version numbering major 1 and minor 2,
  the same a the glx version of libGL (simplifies PLIST handling).
+ PLIST changes.
2013-05-20 06:59:18 +00:00
sbd
dda444dcd8 The configure arg --with-driver= takes 'xlib' OR 'osmesa' not 'xlib,osmesa'. 2013-05-20 01:43:05 +00:00
obache
1af5035ea2 Add band-aid patch for missing exp2f(3) on NetBSD<6, inspired by wiz@. 2013-05-19 02:03:57 +00:00
obache
e1d7e32373 regen distinfo 2013-05-18 05:57:22 +00:00
obache
32a20fbfc9 Fixes build on big endian FreeBSD and DragonFly.
related to PR pkg/47821.
2013-05-18 05:57:10 +00:00
obache
adf287ea1a make sure MESA_{BIG,LITTLE}_ENDIAN are defined correctly on *BSD.
related to PR pkg/47821
2013-05-18 05:55:41 +00:00
richard
26d1462852 upgrade to MesaLib-7.11.2 2013-05-16 05:22:02 +00:00
obache
72bf6818fb reorder condition of the previous change, to be bit faster. 2013-04-19 13:42:37 +00:00
obache
00118210c7 assume builtin MesaLib on Cygwin is not usind dri. 2013-04-19 11:56:23 +00:00
jperkin
beb3bcdfa2 Don't enable dri on Solaris 10 and lower. 2012-10-17 11:36:02 +00:00
asau
08f35c7155 Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-06 14:10:39 +00:00
jperkin
41132a0f53 Enable dri by default on Solaris. The 'vmware' driver from modular-xorg is
still non-functional, but this at least gets us further along.
2012-09-28 11:33:47 +00:00
dsainty
d6b84a39f7 Expose glXGetProcAddress.
The consequences of not making this patch are platform dependent - some build
chains will still expose the symbols, but some will not.  The API expects
them to be exposed.

Fixes Cairo 1.12.2 build on Ubuntu 11.10 and CentOS 6.3, presumably due to
later versions of gcc (4.6.1 in the Ubuntu case).

Bump PKGREVISION.
2012-09-12 14:12:28 +00:00
wiz
e138b52a56 Move libpciaccess to dri option section. 2012-05-09 07:53:04 +00:00
wiz
486c0d6b7c Needs libpciaccess now when pulling in libdrm. Bump PKGREVISION. 2012-05-08 20:33:14 +00:00
obache
ab7348b132 Assume that native MesaLib is built with dri if builin dri exists.
(required for OpenBSD-5.0).
2012-04-08 05:59:25 +00:00
joerg
9765e41589 Drop imake-check logic from X11 components' builtin.mk.
Always use xorg-cf-files and imake from pkgsrc, replacing xpkgwedge.
Always install man pages, not cat pages when using imake.
Unify the various imake PLIST variables in preparation for dropping.
Adjust xbattbar for the new expectations.
2012-03-19 12:34:12 +00:00
fhajny
4b131cb377 Unlock the 'dri' option for SunOS, since x11/libdrm now builds there.
Bump PKGREVISION.
2012-03-13 13:24:36 +00:00
hans
94c0d65e3e Explicitly tell CPP that it should parse stdin as C-header when building glu.exports. 2012-02-16 18:56:23 +00:00
joerg
d7d51726d2 Disable integrated assembler for clang and force default visiblity to
hidden, otherwise some assembler relocations don't work on AMD64.
2012-01-23 08:08:25 +00:00
abs
721bc4a3e8 Ensure PTHREAD_STUBLIB is set in MAKE_ENV not just PKGSRC_MAKE_ENV - fixes clean env build on Linux 2011-08-21 16:44:30 +00:00
reed
a5080a0dc8 The BUILDLINK API dependency should be for xf86driproto not
driproto. I noticed this when it built with old xf86driproto
that had conflicting file. So add a CONFLICTS too.
2010-05-05 18:33:30 +00:00
tnn
c2e785c207 revision bump for libdrm update. 2010-04-16 13:50:51 +00:00
tnn
beca9188a3 another sparc64-only build fix; define memory barrier macro in sis_context.h 2010-03-27 12:55:00 +00:00
tnn
f5c141deec fix a wrong #include in patch-aa which caused sparc64 build to fail. 2010-03-27 12:26:19 +00:00
wiz
36c66c8e31 Look for libGL.so, not any particular libGL.so.<X>, on NetBSD.
Bump PKGREVISION.

From mrg@
2009-09-02 22:30:34 +00:00
hasso
97259a2733 - Fix MESA_TINY missed in last version bump.
- Add INSTALL_LIB_DIR and INSTALL_INC_DIR to fix *.pc files.

This should address issues mentioned in the PR 41895. While there make dri
default for DragonFly. Bump PKGREVISION.
2009-08-25 05:27:57 +00:00
drochner
d65bc236c3 As suggested by Tom Spindler, remove the libdrm version requirement
from dri.mk where it is pulled in from bl3.mk. The minimum version
is only necessary if a new MesaLib is built, we don't need to force
users of older ones to update libdrm.
2009-08-08 15:03:18 +00:00
wiz
71ffec3056 Fix symbol handling in glu. Patch from upstream via Jörn Clausen
in PR 41613.

Bump glu PKGREVISION.
2009-08-08 08:25:50 +00:00
drochner
0caa17238c the dri module wants intel_bufmgr.h which we got with libdrm-2.4.9 2009-07-29 17:34:16 +00:00
hasso
1e744f5d32 Update to 7.4.4. Make software ratserizer actually work. Add one patch from
upstream repo to fix null pointer dereference.

Changes in 7.4.4:

* Fixed i965/i915 segfault in screen destruction (bug 22408)

Changes in 7.4.3:

* Fixed texture object reference counting bug (bug 21756)
* Allow depth/stencil textures to be attached to GL_STENCIL_ATTACHMENT
  point (SF bug 2793846)
* Added missing glGet case for GL_VERTEX_ARRAY_BINDING_APPLE
* Fixed some OSMesa build issues
* Fixed a vertex buffer object crash
* Fixed broken glTexImage3D() when image type = GL_BITMAP
* Fixed some GLSL preprocessor bugs
* Fixed framebuffer mem leak in i945/i965 DRI drivers
* Fixed texture coordinate repeat bug in swrast (bug 21872)
* Fixed incorrect viewport clamping (lower bound is zero, not one)
* GLX fix for glean's makeCurrent test case
2009-07-08 20:00:57 +00:00
hasso
168af103cd Attempt to make it build cleanly and to solve PLIST problems without dri
option (default for most of platforms). Tested on DragonFly only. Bump
PKGREVISION.
2009-06-19 18:19:15 +00:00
joerg
24ce9c6c39 Convert @exec/@unexec to @pkgdir or drop it. 2009-06-14 20:05:39 +00:00
joerg
3a3c07bc30 Remove @dirrm entries from PLISTs 2009-06-14 17:59:04 +00:00
tnn
a3e1f62ec1 patch-cc: libtoolize src/mesa/drivers/x11/Makefile.
Should fix build with PKG_OPTION dri disabled. (PR pkg/41572)
2009-06-11 13:11:32 +00:00
wiz
966785ce99 Use correct macros for installation, from FUKAUMI Naoki in PR 41563.
While here, fix .pc files (were missing -Wl,-R).

Bump PKGREVISION.
2009-06-10 17:28:06 +00:00
hasso
e50554e24b Fix "freeze on exit" issue with many GL games. Bump PKGREVISION. 2009-06-10 10:47:22 +00:00
wiz
2dfbb8286c Update Mesa and friends to 7.4.2.
Update provided by Hasso Tepper on pkgsrc-users.

Changes:
7.4.2:
Bug fixes

   * Fixed segfault when rendering to front buffer with DRI 1.
   * Fixed swrast texture rectangle bug when wrap mode = GL_CLAMP_TO_BORDER and filter mode = GL_LINEAR. (bug
     21461)
   * Fixed texture object mem leak during context destruction.
   * Fixed a state validation bug in glCopyTex[Sub]Image()
   * Fixed some i965 GLSL bugs.
   * Fixed an R300 driver texture object bad memory reference.

7.4.1:
Bug fixes

   * Fixed a two-sided lighting bug in fixed-function-to-GPU code generation
   * Fixed some Darwin issues (Jeremy Huddleston)
   * Indexing the GLSL gl_EyePlane[] or gl_ObjectPlane[] arrays with a variable was broken, bug 20986
   * Fixed incorrect texture unit bias in TXB instruction
   * glTexParameter settings weren't always propogated to drivers
   * Assorted vertex/fragment program bug fixes
   * Fixed point rendering in software rasterizer
   * Fixed potential deadlock in object hash functions
   * Fix a couple bugs surrounding front-buffer rendering with DRI2, but this is not quite complete.
   * Fixed glPopAttrib() bug when restoring user clip planes

7.4:
New features

   * Added MESA_GLX_FORCE_DIRECT env var for Xlib/software driver
   * GLSL version 1.20 is returnd by the GL_SHADING_LANGUAGE_VERSION query

Bug fixes

   * glGetActiveUniform() returned wrong size for some array types
   * Fixed some error checking in glUniform()
   * Fixed a potential glTexImage('proxy target') segfault
   * Fixed bad reference counting for 1D/2D texture arrays
   * Fixed VBO + glPush/PopClientAttrib() bug #19835
   * Assorted i965 driver bug fixes
   * Fixed a Windows compilation failure in s_triangle.c
   * Fixed a GLSL array indexing bug
   * Fixes for building on Haiku

Changes

   * Updated GL/glxext.h to version 48
   * Assorted updates for building on Solaris

7.3:
New features

   * Support for GLSL 1.20
   * Intel DRI drivers now use GEM and DRI2

Bug fixes

   * Assorted GLSL bug fixes
   * Assorted i965 driver fixes
   * Fix for wglCreateLayerContext() in WGL/Windows driver
   * Build fixes for OpenBSD and gcc 2.95
   * GLSL preprocessor handles #pragma now
   * Fix incorrect transformation of GL_SPOT_DIRECTION
   * Fixed several bugs (#18367 and #19625) in glXMakeContextCurrent()
   * Assorted Windows build fixes

Changes

   * Deprecated the "XMesa" interface (include/GL/xmesa*.h files)
   * Deprecated the "FXMesa" interface (include/GL/fxmesa.h file)
   * Deprecated the "Allegro" interface (include/GL/amesa.h file)
   * Removed include/GL/uglmesa.h header
   * Removed include/GLView.h header for BeOS

7.2:
New features

   * i965 driver: added support for G41 chipset (Intel)

Bug fixes

   * Fixed display list bug involving primitives split across lists (bug 17564)
   * Fixed some issues with glBindAttribLocation()
   * Fixed crash in _tnl_InvalidateState() found with Amira (bug 15834)
   * Assorted bug fixes for Ming build
   * Fixed some vertex/pixel buffer object reference counting bugs
   * Fixed depth/stencil bug in i915/945 driver
   * Fixed some shader flow control bugs in i965 driver
   * Fixed a few tdfx driver bugs which prevented driver from working
   * Fixed multisample enable/disable bug

Changes

   * Updated SGI header files with new license terms.

7.1:
New features

   * autoconf-based configuration (and clean-up of Makefiles)
   * Assorted DRI driver enhancements
   * Reduced dependencies between X server and Mesa
   * GL_EXT_texture_from_pixmap extension for Xlib driver
   * Support for the GL shading language with i965 driver (implemented by Intel)
   * ATI R500 series support (Radeon X1300-X1950) in r300 DRI driver

Bug fixes

   * Numerous GLSL fixes
   * Fixed some error code/detection bugs in the GLSL-related API functions
   * Lots of DRI driver fixes.
2009-06-05 11:10:35 +00:00
joerg
2d1ba244e9 Simply and speed up buildlink3.mk files and processing.
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
2009-03-20 19:23:50 +00:00
bjs
741ff086bd Correct capitalization in FreeBSD case. 2009-02-28 01:22:07 +00:00
obache
0e5089350b Reset BUILTIN_PKG after inclution of pthread.builtin.mk.
workaround of PR 40254.
2009-02-03 08:35:13 +00:00
bjs
97e1fd19e4 Add the following patch from upstream as a new distribution
patch and bump MesaLib's PKGREVISION.  While here, make a few
small changes to appease pkglint.

commit 2b8d8989fb6f9c36baf166fc715182a1407ebadb
Author: Ian Romanick <ian.d.romanick@intel.com>
Date:   Sun Sep 28 20:31:46 2008 -0700

    Use 3Dnow! x86-64 routines only on processors that support 3Dnow!
    Added an x86-64 CPUID function and use it to detect 3Dnow!
    [...]
    This fixes long standing bug #8724.
2008-10-26 21:03:40 +00:00
bjs
6d84f393e9 Don't force using libm functions on Linux; most of the developers
use Linux, and they'd know better than I what's apporpriate.
2008-10-21 06:46:46 +00:00
bjs
9fc300342d Sync MesaLib with upstream mesa_7_0_branch. While here, patch
the r300 dri driver so that the __driConfigOptions symbol is visible.
This is necessary for xdriinfo and driconf to work.  Bump MesaLib's
PKGREVISION.
2008-10-21 06:25:26 +00:00
cube
403e256ff6 Merge cube-native-xorg, so that pkgsrc-current can be used with the native
X.Org found in NetBSD-current.

Thanks a lot to all who helped, especially Matthias Scheler who did
repeated tests on Mac OS X and older versions of NetBSD to make sure the
support for those platforms wouldn't be broken (or at least, not fatally,
as I would still expect a few hiccups here and there, because there is
only so much one can test in such limited time).

On the infrastructure side, this branch brings pkgconfig-builtin.mk, in
order to write very easily new builtin.mk files.  It can actually handle
more than just pkgconfig files, but it will provide a version if it finds
such a file.  x11.builtin.mk has also been made more useful and now all
existing (and future!) native-X11-related builtin.mk files should include
it.
2008-10-05 21:36:32 +00:00
bjs
4a50c11a27 Add Makefile.version and glx-config.mk so that x11/modular-xorg-server
can share this information in lieu of us duplicating it by hand.
2008-09-18 21:10:28 +00:00
wiz
760c7e2437 Reorder two unexec lines so they make more sense.
PKGREVISION++
2008-09-06 13:00:31 +00:00
dsainty
21df75edc2 Set DIST_SUBDIR=Mesa-7.0.4.1 (via MESA_PKGVERSION).
This allows people that already have the older custom Mesa-7.0.4 tarballs
to correctly upgrade Mesa to the standard distributions without having to
know to delete the old sources or get confused by the mismatching distinfo
checkhashes.

Update the paths in the related distinfos for the change.
2008-08-23 02:51:19 +00:00
dsainty
c69af5ba97 Bump PKGREVISION to reflect that MesaLib-7.0.4.1 and the current
package are built from different sources, with the current package
being the official 7.0.4 release.

Updates between the two versions' change logs are:

- This is a bug-fix release.
- Including the latest glext.h and glxext.h header files from Khronos
2008-08-23 01:27:10 +00:00
tnn
12ac34cfdd fix botched checksums.
I have verified through http://mesa3d.sourceforge.net/relnotes-7.0.4.html
that these sums are correct for the Mesa 7.0.4 release.

XXX should PKGREVISION be bumped?
I don't understand how the MESA_PKGVERSION stuff works or why we even have
it.
2008-08-21 18:40:59 +00:00
bjs
005289556f #define bswap_32 bswap32 for NetBSD in the mach64 driver; also, for the
sis driver, use either NetBSD's atomic ops if we have them, else
check for gcc's __sync_synchronize.  I suppose the right thing to do is
split the dri drivers out of this package, but hopefully this will
resolve [pkg/39359].  No revision bump, as I just updated the package
a few hours ago.
2008-08-17 09:41:35 +00:00
bjs
1e8d8ffb8f Update to Mesa-7.0.4 proper, which takes us to pkgsrc version
7.0.4.1.  Many of our patches are now upstream; there have also been
a significant amount of bug fixes even since our last interim update
from the 7.0 branch.

-------------------------------------------------------------------------
*** Mesa 7.0.4 is a stable release with bug fixes since version 7.0.3 ***
-------------------------------------------------------------------------
Bug fixes

     * define #extension GL_ARB_texture_rectangle in shading language
     * fixed WIN32 compile problem in libGLU
     * Fixed a per-vertex glMaterial bug which could cause bad lighting
     * Fixed potential crash in AA/smoothed triangle rendering when using a
       fragment shader
     * Fixed glDrawElement + VBO segfault (bug 16156)
     * Fixed GLSL linker bug causing generic vertex attributes to get
       aliased
     * Fixed stack overflow when using glPixelZoom on Windows
     * Fixed broken all(bvec2) GLSL function, added misc missing bvec
       constructors
     * ARB program "state.clip[n].plane" didn't parse correctly
     * Fixed broken glGetUniformiv() (bug 13774)

Changes

     * Added support for DragonFly OS
     * Added a build config for FreeBSD static libs (Anatolij Shkodin)
     * Enabled GL_EXT_multi_draw_arrays extension in R200/R300 drivers
     * Enabled GL_ARB_point_sprite extension in I965 driver
     * Enabled GL_EXT_texture_sRGB extension in I965 driver
     * Added support for GL shading language in I965 driver

Driver Status

 Driver                  Status
 ----------------------  ----------------------
 DRI drivers             varies with the driver
 XMesa/GLX (on Xlib)     implements OpenGL 2.1
 OSMesa (off-screen)     implements OpenGL 2.1
 Windows/Win32           implements OpenGL 2.1
 Glide (3dfx Voodoo1/2)  implements OpenGL 1.3
 SVGA                    unsupported
 Wind River UGL          unsupported
 DJGPP                   unsupported
 GGI                     unsupported
 BeOS                    unsupported
 Allegro                 unsupported
 D3D                     unsupported
2008-08-17 08:25:50 +00:00
dsainty
530d49cf8f Don't pull in pthread.buildlink3.mk on NetBSD, since we have determined that
we'll be using either libc stubs or devel/pthread-stublib, depending on age.
Tested on NetBSD 4.99.

No PKGREVISION bump, there should be no functional change.

Suggested by bjs@
2008-08-06 02:33:22 +00:00
dsainty
fc9e05c6f4 Use new-fangled :Q technology instead of yesteryear's quote characters.
Use the PTHREAD_XXX variables to set up the linking, otherwise libGL.so isn't
linked with libpthread.so under Linux, and so things that link with libGL.so
but don't themselves use threads are likely to not link themselves, failing to
resolve pthread_getspecific, pthread_once, pthread_key_create and
pthread_setspecific.

There should be no change on NetBSD platforms, but there is change on other
platforms, notably Linux.  Bump PKGREVISION to communicate that.

Should fix PR36207, does fix Linux build of glx-utils, and allows mission
critical software like "bzflag" to build under Linux.
2008-07-30 00:27:55 +00:00
tnn
688361827d Since PKG_SUPPORTED_OPTIONS is conditionally added to, initialise it
to empty first. Should fix PR pkg/39246.
2008-07-29 13:56:15 +00:00
bjs
7f57b393dc Change options.mk to build plain 'pkgsrc' target for libOSMesa.
The assembler dispatch code is only for indirect or direct
rendering, anyway--I apologize for not noticing this sooner.

This should fix the recent non-dri build problems people were having.

Thanks to Matthias Scheler and others for reporting this problem to me.

NOTE: Direct/indirect rendering support is still default for i386
and amd64 on NetBSD 4+, but only if you're using modular Xorg.
2008-07-28 02:12:57 +00:00
bjs
03aa255c8f Update to Mesa-7.0.4 (the head of the 7.0 branch in GIT). Basically,
lots of bug fixes; the intent of my update was mostly to fix
problems with i915 and r300 dri drivers and to provide the best environment
possible for the xorg server update to the 1.4 branch.

Morever, many of our patches from pkgsrc, i.e. those removed in this commit,
are now included upstream.

Additionally, MesaDemos now builds.

NOTES:

 - MesaLib now requires xf86driproto 2.0.4, as earlier versions install
   dri_interface.h, which is not correct.

 - glu now exports its symbols via libtool's -export-symfile.
   The symfile is generated pre-build--see glu/Makefile.

 - glxinfo/glxgears do not seem to need to be linked to libpthread, and this
   seems to cause problems on NetBSD with the new drm code.  If I am wrong
   about this, please let me know.  The only program that seems to need
   libpthread is glthreads in MesaDemos.
2008-07-27 00:03:42 +00:00
bjs
b94a743641 Update TODO, removing items that are no longer of concern. 2008-07-18 01:54:23 +00:00
abs
c0c1e29b9a Remove ${PLIST.dri}lib/dri/i915tex_dri.la from PLIST 2008-07-16 21:38:25 +00:00
bjs
7ffc5e2de0 libdrm-2.3.1 does not include the TTM interface, which will cause the
build of the i915tex driver to break (this driver was never supported
on any OS aside from linux, anyway).

Bump PKGREVISION.
2008-07-16 06:34:00 +00:00
tnn
352c284e0c graphics/MesaLib/hacks.mk: revert to rev 1.8
graphics/MesaLib/patches/patch-aw: export glXGetProcAddressARB
graphics/MesaLib/Makefile: bump PKGREVISION
graphics/glu/Makefile: bump PKGREVISION

Please help out by giving this change as extensive testing as
possible before 2008Q2 is branched.
2008-06-27 13:24:39 +00:00
bjs
8dcaee3ae4 This is supposed to have a CONFIG_NAME of pkgsrc-x86_64, not pkgsrc-dri-x86_64. 2008-06-26 04:50:05 +00:00
tron
52d986d7b1 Backout last change. It's insufficient as already pointed out by
Tobias Nygren and breaks the build of the "gle" package on
XFree86 systems again.
2008-06-25 11:21:20 +00:00
bjs
9b1548322b We want to use -fvisibility=hidden _unless_ we're building graphics/glut,
not the other way around.

 - This is the way that mesa expects things to be.
 - Not doing this for MesaLib (at least for dri on NetBSD/amd64) will result
   in reloc-related errors at link-time.

Building on NetBSD/amd64 was broken without this.
2008-06-24 18:55:44 +00:00
tron
514851e49c Fix broken hack which instead of removing the "-fvisibility=hidden"
compiler flag actually added it. This causes all the link failures
in packages using the "glut" library (e.g. "gle"). Bump package
revision because of this fix.

Error analysis provided by Raymond Meyer on "pkgsrc-users" mailing list.
2008-06-05 13:03:41 +00:00
tron
b01f784023 Don't offer "dri" as an option on systems which use XFree86 because it
breaks the build. This fixes PR pkg/38676 by Roland Sieker.
2008-06-03 11:06:17 +00:00
dsainty
dfbc21eebe Add Linux to DRI platforms. Add a patch to fix compilation under Linux. Bump PKGREVISION. 2008-06-03 06:59:12 +00:00
tnn
5a0e9d43c6 disable asm targets for Darwin too, breaks build for unknown reasons.
Reported by Mark E. Perkins on pkgsrc-users@
2008-05-31 20:43:29 +00:00
tnn
8f17865fa8 PR pkg/38795: Hasso Tepper: Add dri option to MesaLib for DragonFly 2008-05-30 14:25:30 +00:00
bjs
aebf38f9e7 Fix embarassing lack of '3' in a conditional. 2008-05-28 02:31:56 +00:00
bjs
4107484e70 Add comment about not using -ffast-math pending further testing.
It seems to cause instability, at least for me on NetBSD/amd64 (4.99.63).
2008-05-21 05:58:52 +00:00
bjs
df120c9621 Add new round of distribution patches (update code to head of Mesa_7_0_branch).
While here, ensure that all instances of pthread_getspecific are
replaced with __libc_thr_getspecific on NetBSD (fixes linking issues
with compiz, at least).
2008-05-21 04:11:37 +00:00
tron
19d5aa04ee Use the proper way to pass the necessary arguments for the Mac OS X Leopard
link bug workaround to the linker.
2008-05-15 19:46:47 +00:00
bjs
0973595ce2 Remove second -o argument in libOSMesa link command (which was obviously
my mistake).  Set MAKE_JOBS_SAFE=no when building libOSMesa because
it breaks the build.  Non-dri builds should work now.
2008-05-01 15:37:13 +00:00
bjs
a43bdcc500 Remove IGNORE_CCACHE, this was just me debugging. Thanks to wiz@. 2008-04-30 16:40:08 +00:00
bjs
46bc472b00 Mesa 2008-04-30 07:00:14 +00:00
tnn
d3e1a14433 The "pkgsrc-i386" target doesn't seem to work on SunOS, so for now fall back
to the "pkgsrc" target which is intended to be portable.
2008-04-27 09:43:12 +00:00
bjs
1e0bbe6581 Build dri by default on i386/amd64 NetBSD >=4.0. It is important we see
what kind of lossage occurs before the next release branch, and this is
the best way to do it.

NOTE: The X server should probably be upgraded to the 1.4 branch now,
as the current (1.3.0.0) server uses Mesa 6.5.3 (a development release
whose time has long since passed).
2008-04-25 20:33:08 +00:00
bjs
15fa89cdf3 Add some SUBST magic for NetBSD to change the name of the function
called in the x86/x86_64 assembler dispatch routine to __thr_getspecific to
avoid an unresolved symbol error from ld at link-time.

This is a weak alias in libc and a strong alias in libpthread, so
everything should work fine.  This could probably be fixed in a better way,
but for now, I think "it works" is a plus.

Bump rev.
2008-04-25 20:11:11 +00:00
tnn
33bbd3e9ff PR pkg/38506: Rob Quinn: Work around Solaris /bin/sh brain damage. 2008-04-25 15:39:54 +00:00
tnn
42767467a0 Two BUILDLINK_ABI_DEPENDS lines are one too many. 2008-04-24 11:55:22 +00:00
tnn
1bc6f93d6a remove stale patch 2008-04-24 09:51:11 +00:00
bjs
3527d68c0d Welcome to Mesa-7.0.3.
Changes from 6.4.2 are (obviously) far too numerous to mention!  This
package brings with it support for the Direct Rendering Infrastructure
(DRI) on NetBSD-current; the kernel DRM was committed approximately
one year ago.  Patches for NetBSD 4.0 are available in the mailing list
archives (I think), but are _not supported_.

Developers and other interested parties are encouraged to read the TODO
file, as well as my remarks in options.mk.  There is still a significant
amount of work to be done.  Users of NetBSD/i386 (-current) shouldn't
have much trouble getting mainstream cards (Intel i915 and Radeon 9600-
R430 are by far the most tested) to work.

I have taken great pains to ensure that this works properly, but inevitably
there will be problems--especially on heretofore untested (read: non-x86)
hardware.  Your questions, comments, problem reports, and of course
bug fixes are welcome.

NOTE: There are currently problems (on NetBSD, at least) linking some
executables, e.g. compiz, due to unresolved symbols for libpthread
functions.  This is due to libX11's thread stubs, which should not
be enabled on NetBSD >= 2.0; see the TODO For more information
and the URL of an interim patch.
2008-04-24 07:40:23 +00:00
obache
0eac7faaa9 Need bsd.prefs.mk before using MACHINE_PLATFORM. 2007-12-06 04:31:23 +00:00
tron
8acdeef01b Add link to Apple work around into the makefile for documentation purposes. 2007-12-05 21:42:18 +00:00
tron
168b2f63aa Use Apple's suggested work around(*) to fix linker problems under
Mac OS X Leopard.

(*) http://developer.apple.com/qa/qa2007/qa1567.html
2007-12-05 21:39:01 +00:00
rillig
979968334c Added MAKE_JOBS_SAFE as suggested in PR 35043. 2007-11-03 22:36:06 +00:00
tnn
24d5b54409 Fix abusers of LOWER_OPSYS to check OPSYS or MACHINE_PLATFORM instead. 2007-10-16 23:48:58 +00:00
joerg
f587b7170d Add remaining glue for cross-compilation. 2007-08-15 15:56:12 +00:00
seb
e60316b4fe As discussed on tech-pkg@ revert for now the last updates of the Mesa packages.
Downgraded graphics/MesaLib to 6.4.2nb3
Downgraded graphics/glu to 6.4.2
Downgraded graphics/glut to 6.4.2
Downgraded graphics/glx-utils to 6.4.2
Downgraded graphics/MesaDemos to 6.4.2
Downgraded graphics/Mesa to 6.4.2

Approved byg agc@.
2007-08-13 11:18:28 +00:00
adam
b6250536dc Changes 7.0.1:
New features:
* Added a bluegene-osmesa build config
Bug fixes:
* Added a few missing OpenGL 2.0 API entrypoints
* Fixed glDrawPixels(GL_STENCIL_INDEX) pixel transfer
* GLSL bug fix: added vec2(vec4) constructor
* GLSL bug fix: .strq and .rgba writemasks didn't always work
* Stencil pixel map didn't always work for glDrawPixels
* Fixed polygon stipple bug in i915 driver
* Binding a zero-sized texture didn't disable texturing
* Queries of GL_INFO_LOG_LENGTH, GL_SHADER_SOURCE_LENGTH didn't include
  the terminating zero
* glXChooseFBConfig() in Xlib driver didn't handle GLX_STEREO flag properly
* Fixed a GLSL function call bug
* glPointParameteriv(GL_DISTANCE_ATTENUATION_EXT) didn't work
* glGetAttribLocation() always returned 1
* Fixed a few memory-related bugs in GLU library

Changes 7.0.0:
New features:
* OpenGL 2.0 and 2.1 API support.
Bug fixes:
* Fixed a few fog-related bugs.
* Fixed broken GLSL mix() function.
* Fixed broken GLSL exp() functions.
* Fixed GLSL mod4(vec4, vec4) bug.
* Implemented GLSL asin(), acos(), atan() functions.
* Fixed an R300 driver bug that caused Xorg composite manager to crash
* Fixed R300 vertex program/matrix bug
* GLSL dFdx() and dFdy() work for fragment program inputs now (texcoords)
* Specifying an invalid texture unit as a sampler could lead to a crash
* The GLX protocol request for glXDestroyPBuffer() was incorrect
* ARB vp state.light[n].half value was incorrect
* Fixed a positional light source bug
* Fixed point size attenuation problem
* glPopAttrib didn't restore texture object's LOD bias
* Fixed a TLS / TEXTREL problem
2007-08-12 15:14:46 +00:00
joerg
0428ea6722 Allow MesaLib to be cross-compiled. This is horrible slow, but working
magic.
2007-08-06 13:47:38 +00:00
tnn
41daa1d846 Need to include inttypes.h on Tru64. Submitted upstream in:
<https://bugs.freedesktop.org/show_bug.cgi?id=10635>
2007-04-13 09:12:02 +00:00
joerg
bdebd2f2d9 Require libXext here as well. Doesn't really make a difference as
Mesa/b3.mk is normally included and that gets it via glut.
2007-02-02 17:41:36 +00:00
tv
791f42ddc5 Fix the Interix fix. gcc 3.3 supplies its own <stddef.h>, which shadows
the one in the OS (which happens to be where [u]intptr_t is defined).
Interix 5.2 should fix this, but to support Interix 3.5, a special case is
needed here.

Since this changes glheader.h for all platforms, bump PKGREVISION (but only
for the MesaLib package).
2007-01-24 19:55:01 +00:00
joerg
5e43280b23 Replace mk/bsd.prefs.mk includes with bsd.fast.prefs.mk includes.
The redundant parsing of bsd.prefs.mk is mostly avoided now and
parse time e.g. for x11/kdebase3 gets reduced by up to 10%.
2006-12-12 21:52:34 +00:00
tv
55a0b12b58 Interix doesn't have <inttypes.h>, but <stdlib.h> is guaranteed to pull
in [u]intptr_t.
2006-11-21 21:26:03 +00:00
joerg
f75176b39c Flag a number of packages I use as supporting (user-)destdir.
apg is a bit special as it has some hardcoded ownership, so
mark that as "destdir".
2006-10-09 12:52:34 +00:00
schwarz
69473632be added support for IRIX 5. Including inttypes.h, as introduced through patch-am,
is necessary on IRIX 5 to have int64_t defined whereas it is not needed on
IRIX 6, but should not hurt there either.
2006-10-01 20:31:13 +00:00
jlam
396fe8e4c8 Split Mesa/Makefile.common into Makefile.common and Makefile.lib.
The latter is used by packages that build libraries from the Mesa
sources, while the former is only if the package builds from the Mesa
sources.  Modify the various Mesa packages to include the proper
Makefile, and add some documentation to the Makefiles.

As a side effect, this suppresses the "duplicate target" warning in
graphics/glx-utils that was caused by having the same distfile listed
in DISTFILES more than once.
2006-08-01 21:40:19 +00:00
jlam
7d1f4cca8e "BUILD_ENV" was misnamed. It's actually the environment that is passed
to all internal recursive make processes.  As such, rename it to
"PKGSRC_MAKE_ENV".

XXX Note, some of the usage of this variable in package Makefiles seems
XXX incorrect.  They probably want "MAKE_ENV", which is the environment
XXX passed to the make process when running "make" within ${WRKSRC}.
2006-07-21 14:27:56 +00:00
jlam
c16221a4db Change the format of BUILDLINK_ORDER to contain depth information as well,
and add a new helper target and script, "show-buildlink3", that outputs
a listing of the buildlink3.mk files included as well as the depth at
which they are included.

For example, "make show-buildlink3" in fonts/Xft2 displays:

	zlib
	fontconfig
	    iconv
	    zlib
	    freetype2
	    expat
	freetype2
	Xrender
	    renderproto
2006-07-08 23:10:35 +00:00
jlam
9430e49307 Track information in a new variable BUILDLINK_ORDER that informs us
of the order in which buildlink3.mk files are (recursively) included
by a package Makefile.
2006-07-08 22:38:58 +00:00
markd
eba2f48abd On Solaris with "gcc -m64" make sure int64_t defined correctly.
Bump PKGREVISION
2006-07-06 12:27:43 +00:00
joerg
593d62a9f9 Explicitly add --tag for libtool calls to fix problems on SunOS.
Patch from Andreas Tannert in PR 33588.
2006-06-01 12:56:41 +00:00
reed
5abef9be14 Over 1200 files touched but no revisions bumped :)
RECOMMENDED is removed. It becomes ABI_DEPENDS.

BUILDLINK_RECOMMENDED.foo becomes BUILDLINK_ABI_DEPENDS.foo.

BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo.

BUILDLINK_DEPENDS does not change.

IGNORE_RECOMMENDED (which defaulted to "no") becomes USE_ABI_DEPENDS
which defaults to "yes".

Added to obsolete.mk checking for IGNORE_RECOMMENDED.

I did not manually go through and fix any aesthetic tab/spacing issues.

I have tested the above patch on DragonFly building and packaging
subversion and pkglint and their many dependencies.

I have also tested USE_ABI_DEPENDS=no on my NetBSD workstation (where I
have used IGNORE_RECOMMENDED for a long time). I have been an active user
of IGNORE_RECOMMENDED since it was available.

As suggested, I removed the documentation sentences suggesting bumping for
"security" issues.

As discussed on tech-pkg.

I will commit to revbump, pkglint, pkg_install, createbuildlink separately.

Note that if you use wip, it will fail!  I will commit to pkgsrc-wip
later (within day).
2006-04-06 06:21:32 +00:00
jlam
d71a98aa8e Avoid extra stat() calls by not repeatedly checking whether a file
exists on the disk -- we can just check whether a variable defined by
find-files.mk is "__nonexistent__" or not.
2006-03-30 18:06:17 +00:00
kristerw
faf5e0e678 Include ../../mk/bsd.prefs.mk to ensure that MACHINE_PLATFORM is defined
before it is used.
2006-03-21 22:18:55 +00:00
drochner
f1baa961da Compensate for lossage I've caused by not explicitely linking against
libpthread: link against a stub lib on systems which need it (NetBSD<=2).
Thanks to mlh@goathill.org for testing and reports.
2006-03-21 19:26:31 +00:00
drochner
6c6a9f6a0e don't link libGL explicitely against libpthread, it is not
used by the library itself, the version which comes with X11 doesn't
do it, and it fixes some cases where GL is loaded dynamically
bump PKGREVISION
2006-03-02 20:19:31 +00:00
adam
b5468d064f 6.4.2 February 2, 2006
New:
	- added OSMesaColorClamp() function/feature
	- added wglGetExtensionStringARB() function
    Bug fixes:
	- fixed some problems when building on Windows
	- GLw header files weren't installed by installmesa script (bug 5396)
	- GL/glfbdev.h file was missing from tarballs
	- fixed TNL initialization bug which could lead to crash (bug 5791)
2006-02-09 12:27:42 +00:00
joerg
5911def816 Recursive revision bump / recommended bump for gettext ABI change. 2006-02-05 23:08:03 +00:00
kristerw
c56fea569d Fix some more places where the evil macro RENDER_SPAN prevents this
package from building with gcc 2.95.
2006-01-31 21:44:31 +00:00
rillig
e315e7254a That evil macro RENDER_SPAN is defined twice -- I only catched one in the
first try.
2006-01-30 08:54:55 +00:00
rillig
60a7b37834 Added patch-ak, which fixes the bulk build for NetBSD 1.6.2/i386. 2006-01-26 15:16:16 +00:00
adam
f1fb57c495 Changes 6.4:
New:
	- Added a fast XOR line drawing function in Xlib driver
	- Added support for GL_ARB_texture_mirrored_repeat to savage
	  driver (supported only on Savage4 hardware).
    Changes:
	- Mesa now packaged in three parts: Library, Demos and GLUT
    Bug fixes:
	- GLX_X_RENDERABLE token wasn't accepted by glXChooseFBConfig
	- Some files were present multiple times in the 6.3.2 tarballs
	- r200_vtxtmp_x86.S file was missing from 6.3.2 tarball (bug 4207)
	- glxgears_fbconfig demo didn't work (bug 4237)
	- fixed bug when bilinear sampling 2d textures with borders
	- glXCreatePbuffer() could segfault instead of returning 0 (bug 4235)
	- fixed undefined frexp and rand in X.org libGLcore.a (bug 4242)
	- fixed a few problems with proxy color tables (bug 4270)
	- fixed precision problem in Z clearing (bug 4395)
	- glBitmap, glDraw/CopyPixels mistakenly generated selection hits
	- fixed potential segfault caused by reading pixels outside
	  of renderbuffer bounds
	- glGetTexLevelParameter didn't accept GL_TEXTURE_DEPTH_SIZE_ARB
	- fixed memory corruption bug involving software alpha buffers
	- glReadPixels clipped by window bounds was sometimes broken
	- glDraw/CopyPixels of stencil data ignored the stencil write mask
	- glReadPixels from a texture bound to a framebuffer object didn't work
	- glIsRender/FramebufferEXT weren't totally correct
	- fixed a number of point size attenuation/fade bugs
	- fixed glFogCoord bug 4729
	- GLX encoding for transpose matrix functions was broken
	- fixed broken fragment program KIL and SWZ instructions
	- fragment programs that wrote result.depth.z didn't work

Changes 6.4.1:
    Bug fixes:
	- redefining a vertex program string didn't take effect in TNL module
	- fixed occasional segfault upon vertex/fragment parsing error
	- vertex program LIT instruction didn't handle 0^0=1 correctly
	- fragment program fog option didn't work with glDrawPixels, glBitmap
	- USE_MGL_NAMESPACE didn't work for x86-64
	- OSMesa demos were missing from previous release tarballs
	- fixed problem with float->ushort conversion in glClear (bug 4992)
	- popping of GL_EYE_PLANE texgen state was broken (bug 4996)
	- popping of GL_SPOT_DIRECTION light state was broken (bug 5005)
	- fixed occasional triangle color interpolation problem on VMS
	- work around invalid free() call (bug 5131)
	- fixed BSD X server compilation problem by including stdint.h
2006-01-19 12:53:17 +00:00
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00
tv
924b25bc16 Create template config file for Interix 3.x.
As part of this, do something special for xmesaP.h:  Because XShm.h does
exist on the Interix platform, and Mesa binaries were already buildable,
preserve the ABI by including XShm.h there and keeping the XShmSegmentInfo
field (with -DUSE_XSHM_HDRONLY) -- thus avoiding both flag day and revbump
sweep.  However, all XShm-using code remains turned off (no -DUSE_XSHM)
so that libGL will work.

Bump PKGREVISION of MesaLib only.
2005-11-08 16:41:30 +00:00
kristerw
57bc58ae9d Ensure that the PTHREAD_LDFLAGS gets passed to the linker. 2005-07-13 18:39:58 +00:00
kristerw
0110f098fb Make this pkg compile on DragonFly by applying a patch sent to
tech-pkg by Joerg Sonnenberger.
2005-07-12 21:40:35 +00:00
grant
59324e8c32 no need to force the latest version of MesaLib for pthread change
where IGNORE_RECOMMENDED=YES. set BUILDLINK_RECOMMENDED>=6.2.1nb2.
2005-07-10 10:42:26 +00:00
jlam
77a5120a14 Enable the pthread-based thread-safety code in pkgsrc MesaLib.
Bump the PKGREVISION to 2.  This fixes PR pkg/30537.
2005-06-17 15:54:06 +00:00
minskim
8d6135e7d6 Make the glut library link against required libraries. Bump
PKGREVISION of glut.
2005-06-07 14:31:48 +00:00
minskim
9c4c643d9b Make the GLU library link against libGL. Bump PKGREVISION of glu. 2005-06-07 14:21:42 +00:00
minskim
c168700413 Link against required libraries explicitly, so that dependency_libs in
.la files is set correctly.

Bump PKGREVISION.
2005-06-05 15:39:06 +00:00
jlam
08c60ab83d Coalesce the common makefile code in the builtin.mk file that inspect
the X11 distribution using imake into mk/buildlink3/imake-check.mk.
imake-check.mk calls out to a helper shell script mk/buildlink3/imake-check
that generates the required Imakefiles and runs imake.  Remove the
now extraneous builtin-imake.mk files as the builtin.mk files can now
contain the name of the imake symbol to check.
2005-06-03 19:12:49 +00:00
jlam
c85165ac07 Only check for the existence of the first word of ${IMAKE} since it may
contain a command plus arguments.  We use the standard idiom to extract
the first word of a list stored in a make variable:

	VAR_CMD=	${VAR:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//}

XXX This can be replaced with a more succinct use of variable modifiers
XXX when we update the bootstrap bmake to match the latest NetBSD make
XXX sources, i.e.:
XXX
XXX	VAR_CMD=	${VAR:[1]}
2005-06-03 17:02:36 +00:00
jlam
88aeda0672 Don't require a read-write pkgsrc tree when invoking imake. We avoid
this requirement by using TMPDIR as the read-write location demanded
by using imake.
2005-06-03 16:03:09 +00:00
jlam
7debfabe11 Use IMAKE_MAKE instead of MAKE to process the makefile generated by imake. 2005-06-01 18:33:02 +00:00
jlam
95fd1f6ec9 Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
Several changes are involved since they are all interrelated.  These
changes affect about 1000 files.

The first major change is rewriting bsd.builtin.mk as well as all of
the builtin.mk files to follow the new example in bsd.builtin.mk.
The loop to include all of the builtin.mk files needed by the package
is moved from bsd.builtin.mk and into bsd.buildlink3.mk.  bsd.builtin.mk
is now included by each of the individual builtin.mk files and provides
some common logic for all of the builtin.mk files.  Currently, this
includes the computation for whether the native or pkgsrc version of
the package is preferred.  This causes USE_BUILTIN.* to be correctly
set when one builtin.mk file includes another.

The second major change is teach the builtin.mk files to consider
files under ${LOCALBASE} to be from pkgsrc-controlled packages.  Most
of the builtin.mk files test for the presence of built-in software by
checking for the existence of certain files, e.g. <pthread.h>, and we
now assume that if that file is under ${LOCALBASE}, then it must be
from pkgsrc.  This modification is a nod toward LOCALBASE=/usr.  The
exceptions to this new check are the X11 distribution packages, which
are handled specially as noted below.

The third major change is providing builtin.mk and version.mk files
for each of the X11 distribution packages in pkgsrc.  The builtin.mk
file can detect whether the native X11 distribution is the same as
the one provided by pkgsrc, and the version.mk file computes the
version of the X11 distribution package, whether it's built-in or not.

The fourth major change is that the buildlink3.mk files for X11 packages
that install parts which are part of X11 distribution packages, e.g.
Xpm, Xcursor, etc., now use imake to query the X11 distribution for
whether the software is already provided by the X11 distribution.
This is more accurate than grepping for a symbol name in the imake
config files.  Using imake required sprinkling various builtin-imake.mk
helper files into pkgsrc directories.  These files are used as input
to imake since imake can't use stdin for that purpose.

The fifth major change is in how packages note that they use X11.
Instead of setting USE_X11, package Makefiles should now include
x11.buildlink3.mk instead.  This causes the X11 package buildlink3
and builtin logic to be executed at the correct place for buildlink3.mk
and builtin.mk files that previously set USE_X11, and fixes packages
that relied on buildlink3.mk files to implicitly note that X11 is
needed.  Package buildlink3.mk should also include x11.buildlink3.mk
when linking against the package libraries requires also linking
against the X11 libraries.  Where it was obvious, redundant inclusions
of x11.buildlink3.mk have been removed.
2005-06-01 18:02:37 +00:00
agc
6a7b384635 Add RMD160 digests 2005-02-24 08:45:01 +00:00
veego
5d81c8bb8b Fix the last commit which didn't record the correct rpath for the X11
libraries due too the usage of two -rpath options for libtool:

libtool: link: warning: ignoring multiple `-rpath's for a libtool library

According to the gnu libtool page you have to use -R:
-R libdir
    If output-file is a program, add libdir to its run-time path. If
    output-file is a library, add -Rlibdir to its dependency_libs, so
    that, whenever the library is linked into a program, libdir will be
    added to its run-time path.
2005-02-24 06:24:03 +00:00
grant
20e453e2c1 libglut needs symbols from libXi, so explicitly link against it.
fixes unresolved symbols at runtime on Solaris. bump PKGREVISION
of glut.
2005-02-23 13:57:35 +00:00
adam
c36d3b9ed6 Changes 6.2.1:
Bug fixes:
- don't apply regular fog or color sum when using a fragment program
- glProgramEnvParameter4fARB always generated an error on
  GL_FRAGMENT_PROGRAM_ARB (fdo bug 1645)
- glVertexAttrib3svNV and glVertexAttrib3svARB were broken
- fixed width/height mix-up in glSeparableFilter2D()
- fixed regression in glCopyPixels + convolution
- glReadPixels from a clipped front color buffer didn't always work
- glTexImage didn't accept GL_RED/GREEN/BLUE as the format
- Attempting queries/accesses of VBO 0 weren't detected as errors
- paletted textures failed if the palette had fewer that 256 entries
Changes:
- fixed a bunch of compiler warnings found with gcc 3.4
- bug reports should to go bugzilla.freedesktop.org
2005-01-04 15:49:24 +00:00
minskim
9d94b6fd74 Move PKG_INSTALLATION_TYPES to Makefile.common so that it is defined
before including bsd.prefs.mk.
2004-10-31 00:53:10 +00:00
minskim
41a793d84e Define USE_BUILDLINK3 before including compiler.mk. Otherwise,
buildink3.mk of gcc* packages is not included.
2004-10-29 01:34:39 +00:00
drochner
fe41ec8d7f improve performance for local displays by enabling the XShm extension
(I did measurements using pkgsrc/time/glclock some weeks ago; can't find
the numbers anymore. There was a significant improvement. The result was
still worse than the Mesa-5.x which comes with xfree86, which doesn't
deploy xshm as built in our tree.)
2004-10-27 19:20:33 +00:00
grant
c98b0f7011 Mesa has optimisations for SunPro so use them when SPARC_TARGET_ARCH
is set appropriately (sparcv7, sparcv8, sparcv9).
2004-10-27 10:30:38 +00:00
adam
649b02607d Changes 6.2:
New:
- enabled GL_ARB_texture_rectangle (same as GL_NV_texture_rectangle)
- updated Doxygen support (Jose Fonseca)
Changes:
- some GGI driver updates (Christoph Egger, bug 1025977)
Bug fixes:
- Omit GL_ARB_texture_non_power_of_two from list of OpenGL 1.5 features
- fixed a few compilation issues on IRIX
- fixed a matrix classification bug (reported by Wes Bethel)
- we weren't reseting the vertex/fragment program error state
  before parsing (Dave Reveman)
- adjust texcoords for sampling texture rectangles (Dave Reveman)
- glGet*(GL_MAX_VERTEX_ATTRIBS_ARB) wasn't implemented
- repeated calls to glDeleteTexture(t) could lead to a crash
- fixed potential ref count bugs in VBOs and vertex/fragment programs
- spriteblast demo didn't handle window size changes correctly
- glTexSubImage didn't handle pixels=NULL correctly for PBOs
- fixed color index mode glDrawPixels bug (Karl Schultz)

Changes 6.1:
New:
- Revamped Makefile system
- glXUseRotatedXFont() utility (see xdemos/xuserotfont.c)
- internal driver interface changes related to texture object
  allocation, vertex/fragment programs, BlendEquationSeparate, etc.
- option to walk triangle edges with double-precision floats
  (Justin Novosad of Discreet) (see config.h file)
- support for AUX buffers in software GLX driver
- updated glext.h to version 24 and glxext.h to version 6
- new MESA_GLX_FORCE_ALPHA and MESA_GLX_DEPTH_BITS env vars
- updated BeOS support (Philippe Houdoin)
Changes:
- fragment fog interpolation is perspective corrected now
- new glTexImage code, much cleaner, may be a bit faster
Bug fixes:
- glArrayElement in display lists didn't handle generic vertex attribs
- glFogCoord didn't always work properly
- ARB_fragment_program fog options didn't work
- frag prog TEX instruction no longer incorrectly divides s,t,r by q
- ARB frag prog TEX and TEXP instructions now use LOD=0
- glTexEnviv in display lists didn't work
- glRasterPos didn't do texgen or apply texture matrix
- GL_DOUBLE-valued vertex arrays were broken in some cases
- fixed texture rectangle edge/border sampling bugs
- sampling an incomplete texture in a fragment program would segfault
- glTexImage was missing a few error checks
- fixed some minor glGetTexParameter glitches
- GL_INTENSITY was mistakenly accepted as a  to glTexImage
- fragment program writes to RC/HC register were broken
- fixed a few glitches in GL_HP_occlusion_test extension
- glBeginQueryARB and glEndQueryARB didn't work inside display lists
- vertex program state references were broken
- fixed triangle color interpolation bug on AIX (Shane Blackett)
- fixed a number of minor memory leaks (bug #1002030)
2004-10-26 13:55:17 +00:00
tv
cb1bc94217 INSTALL_DATA -> INSTALL_LIB. 2004-10-13 18:00:08 +00:00
tv
c487cb967a Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
2004-10-03 00:12:51 +00:00
jlam
1a280185e1 Mechanical changes to package PLISTs to make use of LIBTOOLIZE_PLIST.
All library names listed by *.la files no longer need to be listed
in the PLIST, e.g., instead of:

	lib/libfoo.a
	lib/libfoo.la
	lib/libfoo.so
	lib/libfoo.so.0
	lib/libfoo.so.0.1

one simply needs:

	lib/libfoo.la

and bsd.pkg.mk will automatically ensure that the additional library
names are listed in the installed package +CONTENTS file.

Also make LIBTOOLIZE_PLIST default to "yes".
2004-09-22 08:09:14 +00:00
jlam
8d572feba3 Use the new BUILDLINK_TRANSFORM commands to more precisely state the
intended transformation: use "rm" to remove an option, "rmdir" to remove
all options containing a path starting with a given directory name, and
"rename" to rename options to something else.
2004-08-28 06:05:31 +00:00
wiz
4237d54a34 Unused. 2004-07-06 22:41:15 +00:00
snj
3781dcf14c Translate -lMesaGL to -lGL. Suggested by jlam over a month ago. 2004-04-17 03:45:46 +00:00
adam
3e06ae3f80 Changes 6.0.1:
New:
- upgraded glext.h to version 22
- new build targets (Dan Schikore)
- new linux-x86-opteron build target (Heath Feather)
Bug fixes:
- glBindProgramARB didn't update all necessary state
- fixed build problems on OpenBSD
- omit CVS directories from tarballs
- glGetTexImage(GL_COLOR_INDEX) was broken
- fixed an infinite loop in t&l module
- silenced some valgrind warnings about using unitialized memory
- fixed some compilation/link glitches on IRIX (Mike Stephens)
- glBindProgram wasn't getting compiled into display lists
- GLX_FBCONFIG_ID wasn't recognized in glXChooseFBConfig() (bug 888079)
- two-sided lighting and vertex program didn't work (bug 887330)
- stores to program parameter registers in vertex state programs
  didn't work.
- fixed glOrtho bug found with gcc 3.2.2 (RH9)
- glXCreateWindow() wasn't fully implemented (bug 890894)
- generic vertex attribute arrays didn't work in display lists
- vertex buffer objects' default usage and access fields were wrong
- glDrawArrays with start!=0 was broken
- fragment program PK2H, UP2H, UP4B and UP4UB instructions were broken
- linux-osmesa16-static config didn't work
- fixed a few color index rendering problems (bug 910687)
- glInterleavedArrays didn't respect GL_CLIENT_ACTIVE_TEXTURE
- OSMesa RGB and BGR modes were broken
- glProgramStringARB mistakenly required a null-terminated string
- fragment program XPD instruction was incorrect
- glGetMaterial() didn't work reliably
2004-04-09 13:05:52 +00:00
jlam
6d92080aa2 Match the template builtin.mk file in bsd.builtin.mk, and make the two
packages that use builtin.mk files (graphics/xpm and pkgtools/x11-links)
use the new format correctly.
2004-03-29 05:43:28 +00:00
jlam
f63d66e56a Move the definitions of MESA_REQD and _MESA_REQD to Mesa/version.mk and
modify {MesaLib,glu}/{buildlink3,builtin}.mk accordingly.  Also add the
dependency on {MesaLib,glu}>=${_MESA_REQD} to the builtin.mk files so
that we correctly check the built-in Mesa version against the dependency
requirements.
2004-03-15 17:38:10 +00:00
jlam
5cd4e20c5b Fix pasto: s/gcc/MesaLib/g. No functional change. 2004-03-15 16:48:18 +00:00
jlam
d0b4c54eb6 Split out the code that deals with checking whether the software is
built-in or not into a separate builtin.mk file.  The code to deal
checking for built-in software is much simpler to deal with in pkgsrc.

The buildlink3.mk file for a package will be of the usual format
regardless of the package, which makes it simpler for packagers to
update a package.

The builtin.mk file for a package must define a single yes/no variable
USE_BUILTIN.<pkg> that is used by bsd.buildlink3.mk to decide whether
to use the built-in software or to use the pkgsrc software.
2004-03-10 17:57:14 +00:00
snj
c074735a44 Work around what seems to be an optimization bug in gcc3 by transforming
-O[23] out of existence.
2004-03-03 00:20:19 +00:00
jlam
bf6e059da4 Reorder some lines so that BUILDLINK_USE_BUILTIN.<pkg> set in the
environment overrides all other settings.
2004-02-18 16:35:27 +00:00
jlam
d2b62c66fb Create a new variable PREFER_NATIVE that has the opposite semantics
as PREFER_PKGSRC.  Preferences are determined by the most specific
instance of the package in either PREFER_PKGSRC or PREFER_NATIVE.  If
a package is specified in neither or in both variables, then PREFER_PKGSRC
has precedence over PREFER_NATIVE.
2004-02-12 02:35:06 +00:00
jlam
1edfa505ed Reorganize code so that any dependencies are checked as part of deciding
whether the software is built-in or not.  This facilitates implementing
the forthcoming PKGSRC_NATIVE variable.
2004-02-12 01:59:37 +00:00
jlam
7657096bbc Turn MESA_REQD back into a public variable, and make it take a list of
values that MesaLib/buildlink3.mk converts into a single _MESA_REQD that
is the highest version required.  If including the Mesa/buildlink3.mk
file, then require the same version of Mesa as required by glut.
2004-02-11 02:03:41 +00:00