Commit graph

336 commits

Author SHA1 Message Date
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
jlam
7a1c38c7e9 Don't pass the -DGLX_GLXEXT_LEGACY to the compiler if we're building
another bit of the Mesa package.
2004-02-10 23:23:02 +00:00
jlam
5697154046 Require at least the version of Mesa that's installed by the base system
if it's used.
2004-02-10 22:42:56 +00:00
jlam
aed6de5e1f Privatise MESA_REQD. 2004-02-10 22:23:40 +00:00
jlam
ef43d2cdf0 The pkgsrc version of Mesa that last bumped shlib majors was 6.0. 2004-02-10 22:22:05 +00:00
jlam
7699290f10 If we're passing through MAKEFLAGS variables whose values may contain
spaces, use the :Q modifier instead of double-quoting the value.  This
avoids breakage when executing the just-in-time su targets.
2004-02-06 19:04:24 +00:00
jlam
317cc72791 Make PREFER_PKGSRC just yes/no or a list of packages. This makes it
simpler to understand.
2004-02-05 07:17:14 +00:00
jlam
e7133cac25 Rename BUILDLINK_PREFER_PKGSRC to PREFER_PKGSRC so that we can use its
value outside of buildlink-related files.
2004-02-05 07:06:15 +00:00
jlam
07a9d8dfb2 Support a new global variable:
BUILDLINK_PREFER_PKGSRC
	This variable determines whether or not to prefer the pkgsrc
	versions of software that is also present in the base system.

	This variable is multi-state:
		defined, or "yes"	always prefer the pkgsrc versions
		not defined, or "no"	only use the pkgsrc versions if
					needed by dependency requirements

	This can also take a list of packages for which to prefer the
	pkgsrc-installed software.  The package names may be found by
	consulting the value added to BUILDLINK_PACKAGES in the
	buildlink[23].mk files for that package.
2004-02-05 06:58:02 +00:00
jlam
13b9a4eeef version.mk no longer defines MESA_VERSION. Put the version number of the
required package in its place.  Thanks to Jan Schaumann for diagnosing the
problem.
2004-01-25 17:26:07 +00:00
jlam
01a5abff01 Support BUILDLINK_DEPENDS.<pkg> being a list of values. 2004-01-24 03:12:31 +00:00
jlam
42567b9fa4 If we use the XFree86-supplied GL and GLU libraries, then we are using X11. 2004-01-24 01:53:00 +00:00
adam
ba0b56c0ff Mesa-6.0 packages now use LIBTOOL and finally build 2004-01-22 12:58:07 +00:00
agc
3ad1bdbf06 Move WRKSRC definition away from the first paragraph in a Makefile. 2004-01-20 12:18:15 +00:00
jschauma
918fd1cf8d Re-add checksum for MesaDemos, that somehow got lost along the way.
Noted by Takahiro Kambe.
2004-01-20 03:46:38 +00:00
jschauma
cffc45e2f0 Update Mesa and friends to version 6.0:
Changes since 5.2:
New:
- full OpenGL 1.5 support
- updated GL/glext.h file to version 21
Changes:
- changed max framebuffer size to 4Kx4K (MAX_WIDTH/HEIGHT in config.h)
Bug fixes:
- fixed bug in UNCLAMPED_FLOAT_TO_UBYTE macro; solves a color
clamping issue
- updated suno5-gcc configs
- glColor3 functions sometimes resulted in undefined alpha values
- fixed FP divide by zero error seen on VMS with xlockmore, others
- fixed vertex/fragment program debug problem (bug 873011)
- building on AIX with gcc works now
- glDeleteProgramsARB failed for ARB fragment programs (bug 876160)
- glDrawRangeElements tried to modify potentially read-only storage
- updated files for building on Windows

Changes since 5.0.2:
New features:
- reorganized directory tree
- GL_ARB_vertex/fragment_program extensions (Michal Krol & Karl Rasche)
- GL_ATI_texture_env_combine3 extension (Ian Romanick)
- GL_SGI_texture_color_table extension (Eric Plante)
- GL_NV_fragment_program extension
- GL_NV_light_max_exponent extension
- GL_EXT_texture_rectangle (identical to GL_NV_texture_rectangle)
- GL_ARB_occlusion_query extension
- GL_ARB_point_sprite extension
- GL_ARB_texture_non_power_of_two extension
- GL_IBM_multimode_draw_arrays extension
- GL_EXT_texture_mirror_clamp extension (Ian Romanick)
- GL_ARB_vertex_buffer_object extension
- new X86 feature detection code (Petr Sebor)
- less memory used for display lists and vertex buffers
- demo of per-pixel lighting with a fragment program (demos/fplight.c)
- new version (18) of glext.h header
- new spriteblast.c demo of GL_ARB_point_sprite
- faster glDrawPixels in X11 driver in some cases (see RELNOTES-5.1)
- faster glCopyPixels in X11 driver in some cases (see RELNOTES-5.1)
Bug fixes:
- really enable OpenGL 1.4 features in DOS driver.
- fixed issues in glDrawPixels and glCopyPixels for very wide images
- glPixelMapf/ui/usv()'s size parameter is GLsizei, not GLint
- fixed some texgen bugs reported by Daniel Borca
- fixed wglMakeCurrent(NULL, NULL) bug (#835861)
- fixed glTexSubImage3D z-offset bug (Cedric Gautier)
- fixed RGBA blend enable bug (Ville Syrjala)
- glAccum is supposed to be a no-op in selection/feedback mode
- fixed texgen bug #597589 (John Popplewell)
Changes:
- dropped API trace feature (src/Trace/)
- documentation overhaul.  merged with website content.  more html.
- glxgears.c demo updated to use GLX swap rate extensions
- glTexImage1/2/3D now allows width/height/depth = 0
- disable SPARC asm code on Linux (bug 852204)
2004-01-20 02:48:33 +00:00
jlam
580a53de35 bl3ify 2004-01-05 11:42:20 +00:00
jlam
d279e6f535 Use S/+$// instead of C/\+$// to save a backslash. Very highly
recommended by seb :)
2004-01-05 11:05:44 +00:00
jlam
c9ff27d270 Sow BUILDLINK_USE_BUILTIN.<pkg> and reap _NEED_<PKG> variables. 2004-01-05 09:31:31 +00:00
jlam
47bb2aae5f Re-arrange to match example buildlink3.mk file in bsd.buildlink3.mk. 2004-01-04 23:34:04 +00:00
salo
f4cfbd40fe Remove references to non-existent files.
From Soren Jacobsen via PR pkg/23537.
2003-11-23 07:22:10 +00:00
jschauma
87938dc3b7 Finally update Mesa and friends after the distfile changed on the website
without a version bump.  Changes made, according to the website, for
libtool/autofoo fixes.

Some changes from Ron Roskens:
glut depends upon graphics/glu (otherwise its linked against X11R6 libs)

MesaDemos:
 rather than using the pre-built distribution makefiles,
 use the automake/configure built makefiles which have
 the build dependencies all setup.

This closes PR pkg/23476.
2003-11-18 16:10:55 +00:00
jschauma
6e2383474d Patch Mesa's Makefile to use '-fno-strict-aliasing' rather than '-fstrict-aliasing',
as the code contains unsafe use of aliased pointers.
As suggested by tls@ in PR pkg/23381, closing said PR.
2003-11-09 02:23:18 +00:00
jlam
57635c2e5d Match the buildlink3.mk guidelines set out in revision 1.22 of
bsd.buildlink3.mk.
2003-09-30 10:18:57 +00:00
jlam
f339438669 Conform to latest buildlink3.mk guidelines using *_BUILDLINK3_MK guards
to protect more parts of buildlink3.mk files against multiple inclusion.
2003-09-30 00:42:32 +00:00
jschauma
b949499421 Update Mesa and friends to latest version 5.0.2:
- fixed texgen problem causing texcoord's Q to be zero (stex3d)
- default GL_TEXTURE_COMPARE_MODE_ARB was wrong
- GL_CURRENT_MATRIX_NV query was wrong
- GL_CURRENT_MATRIX_STACK_DEPTH_NV query was off by one
- GL_LIST_MODE query wasn't correct
- GL_FOG_COORDINATE_SOURCE_EXT query wasn't supported
- GL_SECONDARY_COLOR_ARRAY_SIZE_EXT query returned wrong value
- blended, wide lines didn't always work correctly
- glVertexAttrib4svNV w component was always 1
- fixed bug in GL_IBM_rasterpos_clip (missing return)
- GL_DEPTH_TEXTURE_MODE = GL_ALPHA didn't work correctly
- a few Solaris compilation fixes
- fixed glClear() problem for DRI drivers (non-existant stencil, etc)
- fixed int/REAL mixup in GLU NURBS curve evaluator (Eric Cazeaux)
- fixed delete [] bug in SI GLU (bug 721765) (Diego Santa Cruz)
- glFog() didn't clamp fog colors
- fixed bad float/int conversion for GL_TEXTURE_PRIORITY in the
  gl[Get]TexParameteri[v] functions
  - fixed invalid memory references in glTexGen functions (bug 781602)
  - integer-valued color arrays weren't handled correctly
- glDrawPixels(GL_DEPTH_COMPONENT) with glPixelZoom didn't work
- GL_EXT_texture_lod_bias is part of 1.4, overlooked in 5.0.1
- build GLUT with -fexceptions so C++ apps propogate exceptions

While here, fix PR pkg/23003 by moving the version number to version.mk
and including that in the buildlink.
2003-09-29 21:30:28 +00:00
jlam
aaa25bfe59 Rewrite buildlink3.mk files to match the updated buildlink3.mk template
in bsd.buildlink3.mk: the *_BUILDLINK3_MK multiple inclusion guards are
removed and we ensure that things that should be defined only once really
are defined only once by using section-specific or variable-specific
guards.
2003-09-28 12:54:52 +00:00
jmmv
6d9ccf016f Specify the category when including other files and when depending on other
packages.  From PR pkg/21864 by ccatrian at eml.cc.
2003-09-18 16:25:08 +00:00
jlam
0aa210c78e Provide definitions for BUILDLINK_PREFIX.<pkg> when the dependency may be
satisfied by a base system (X11R6) component.
2003-09-14 01:47:51 +00:00
jlam
c74a02ee07 Need to use :C instead of :S to get the "pop" action to work properly. 2003-09-13 23:21:19 +00:00
jlam
7c1979750e This is Mesa/GLX, not freetype2. 2003-09-07 19:36:26 +00:00
jlam
440bc402a1 Move BUILDLINK_CHECK_BUILTIN.<pkg> documentation into bsd.buildlink3.mk. 2003-09-05 11:39:02 +00:00
jlam
54f69b4eda Add some buildlink3.mk files needed by x11-links>=0.13. 2003-09-02 07:12:16 +00:00
jschauma
aa0aa518ac Finally remove support of Mesa 3.4.1 completely as discussed at length
on tech-pkg@ at various times.  This means that regardless of what kind of
GL support comes with X11, if a package depends on GL, Mesa 5.0.1 (or higher)
will be installed into ${LOCALBASE}.

Some troubleshooting after the latest patches by Krister Walfridsson.
2003-08-26 01:43:48 +00:00
grant
95ff526d1c kill leading whitespace, remove comment about license (we already
track licenses, and it's GPL'd anyway).
2003-07-30 02:23:42 +00:00
grant
4083b24390 s/netbsd.org/NetBSD.org/ 2003-07-17 21:31:04 +00:00
jschauma
937d21f1b7 Hopefully finally get this right:
Default Mesa Version should be 3.4.2, so that people who don't care and have
GL in XF don't need to build the whole thing.  If MESA_REQD is set to 5.0.1
(as, for example, by MesaDemos), require version 5.0.1 of MesaLib, gl* etc.

If libGL.so.5 is found to be present on the system, force MESA_REQD to be
5.0.1 to avoid accidental downgrades if MESA_REQD was not specified before-
hand.

Changes reviewed by tron@ (thanks!).
2003-07-15 23:31:21 +00:00
jschauma
0ecb99ecd8 If MESA_REQD is not set, but we detect a 5.x library, set MESA_REQD to
the current default of 5.0.1 (rather than 5.0) so that distinfo remains
correct.
2003-07-07 02:05:59 +00:00
tron
28710cc78b Readd checksums for version 3.4.2 destroyed by previous commit. 2003-07-04 11:27:39 +00:00
jschauma
6ce68eec3a Oops, put check for MESA_REQD below where it will be set definitely if unset
before.
2003-07-03 18:47:41 +00:00
jschauma
81e95fd3a9 If MESA_REQD is not set to 5.x and we find libGL.so.5, set MESA_REQD to
5.0.

If MESA_REQD is set to 5.x, pass -DGLX_GLXEXT_LEGACY to CPPFLAGS, to avoid
breakage if a package looks for glx_ext.h.
2003-07-03 18:27:29 +00:00
grant
2def9f6d3a do not use the included sparc asm on sparc64, as it doesn't build. 2003-05-21 08:40:06 +00:00
drochner
fe29855bec update to 5.0.1
mostly a bugfix release
other changes:
- updated GL/gl_mangle.h file
- use glPolygonOffset in gloss demo to avoid z-fighting artifacts
- updated winpos and pointblast demos to use ARB extensions
- disable SPARC normal transformation code
2003-05-10 16:37:11 +00:00
jmmv
4ff0d8546c Move the installed mesa.conf file to the examples tree, and do not install
it into PKG_SYSCONFDIR (it's useless for now).  Bump PKGREVISION to 2.
Ok'ed by rh.
2003-04-17 22:15:44 +00:00
jschauma
9b827e7fc0 "PKGREVISION++, since more files are installed..."
- Wiz
2003-03-24 18:54:21 +00:00
jschauma
795177db77 Fix PR pkg/20685 by changing the if-statements to allow creation of a fake
package for clean-depends-list purposes.
While here, also remove the no longer necessary CFLAGS after previous commit
in MesaLib and also add distinfo for MesaLib for non Mesa-5.0.
2003-03-24 18:07:07 +00:00
jschauma
d0c3378eef Also install glxext.h, as suggested by Joachim Koenig-Baltes in
PR pkg/20878.
2003-03-24 18:03:33 +00:00
tron
8ba42278c5 Create fake libtool archives to fix build problems on XFree86 4.x system
when programs are supposed to be linked with the included Mesa libraries.
These changes by Johnny C. Lam fix PR pkg/20649 by myself.
2003-03-13 07:01:01 +00:00
jschauma
12c7eda41d Update Mesa and friends to version 5.0, using patches provided in PR pkg/19302.
At the same time, move Mesa and friends to LOCALBASE rather than X11BASE, so
that they can be installed regardless of XF version.  Introduce MESA_REQD variable
that can be set to 5.0, thus allowing systems with XF4 to indicate that the
provided version is not good enough.

All packages using Mesa, MesaLib, glu or glut will get a PKGREVISION bump
over the next few days.
2003-03-09 19:04:52 +00:00
schmonz
0a1bd5acad Replace IGNORE with PKG_FAIL_REASON or PKG_SKIP_REASON as appropriate. 2002-12-07 02:38:52 +00:00
jschauma
da20b44d24 Back out update of Mesa, MesaLib, glu and glut to Mesa version 5.0,
until we figure out how to properly solve the conflict of XF4.x's own
GL.  As discussed with tron.
2002-12-06 17:03:23 +00:00
jschauma
b05065a3d6 Update of Mesa, MesaLib, glu and glut to version 5.0 of Mesa.
Our previous version was 3.4.1, so here goes the changelog (ready to scroll?):

New in 3.4.2:
Bug fixes:
- deleting the currently bound texture could cause bad problems
- using fog could result in random vertex alpha values
- AA triangle rendering could touch pixels outside right window bound
- fixed byteswapping problem in clear_32bit_ximage() function
- fixed bugs in wglUseFontBitmapsA(), by Frank Warmerdam
- fixed memory leak in glXUseXFont()
- fragment sampling in AA triangle function was off by 1/2 pixel
- Windows: reading pixels from framebuffer didn't always work
- glConvolutionFilter2D could segfault or cause FP exception
- fixed segfaults in FX and X drivers when using tex unit 1 but not 0
- GL_NAND logicop didn't work right in RGBA mode
- fixed a memory corruption bug in vertex buffer reset code
- clearing the softwara alpha buffer with scissoring was broken
- fixed a few color index mode fog bugs
- fixed some bad assertions in color index mode
- fixed FX line 'stipple' bug #420091
Changes:
- optimized writing mono-colored pixel spans to X pixmaps
- increased max viewport size to 2048 x 2048

New in 3.5:
New:
- internals of Mesa divided into modular pieces (Keith Whitwell)
- 100% OpenGL 1.2 conformance (passes all conformance tests)
- new AA line algorithm
- GL_EXT_convolution extension
- GL_ARB_imaging subset
- OSMesaCreateContextExt() function
- GL_ARB_texture_env_add extension (same as GL_EXT_texture_env_add)
- GL_MAX_TEXTURE_UNITS_ARB now defaults to eight
- GL_EXT_fog_coord extension (Keith Whitwell)
- GL_EXT_secondary_color extension (Keith Whitwell)
- GL_ARB_texture_env_add extension (same as GL_EXT_texture_env_add)
- GL_SGIX_depth_texture extension
- GL_SGIX_shadow and GL_SGIX_shadow_ambient extensions
- demos/shadowtex.c demo of GL_SGIX_depth_texture and GL_SGIX_shadow
- GL_ARB_texture_env_combine extension
- GL_ARB_texture_env_dot3 extension
- GL_ARB_texture_border_clamp (aka GL_SGIS_texture_border_clamp)
- OSMesaCreateContextExt() function
- libOSMesa.so library, contains the OSMesa driver interface
- GL/glxext.h header file for GLX extensions
- somewhat faster software texturing, fogging, depth testing
- all color-index conformance tests now pass (only 8bpp tested)
- SPARC assembly language TCL optimizations (David Miller)
- GL_SGIS_generate_mipmap extension
Bug Fixes:
- fbiRev and tmuRev were unitialized when using Glide3
- fixed a few color index mode conformance failures; all pass now
- now appling antialiasing coverage to alpha after texturing
- colors weren't getting clamped to [0,1] before color table lookup
- fixed RISC alignment errors caused by COPY_4UBV macro
- drawing wide, flat-shaded lines could cause a segfault
- vertices now snapped to 1/16 pixel to fix rendering of tiny triangles
Changes:
- SGI's Sample Implementation (SI) 1.3 GLU library replaces Mesa GLU
- new libOSMesa.so library, contains the OSMesa driver interface

New in 4.0:
New:
- Mesa 4.0 implements the OpenGL 1.3 specification
- GL_IBM_rasterpos_clip extension
- GL_EXT_texture_edge_clamp extension (aka GL_SGIS_texture_edge_clamp)
- GL_ARB_texture_mirrored_repeat extension
- WindML UGL driver (Stephane Raimbault)
- added OSMESA_MAX_WIDTH/HEIGHT queries
- attempted compiliation fixes for Solaris 5, 7 and 8
- updated glext.h and glxext.h files
- updated Windows driver (Karl Schultz)
Bug fixes:
- added some missing GLX 1.3 tokens to include/GL/glx.h
- GL_COLOR_MATRIX changes weren't recognized by teximage functions
- glCopyPixels with scale and bias was broken
- glRasterPos with lighting could segfault
- glDeleteTextures could leave a dangling pointer
- Proxy textures for cube maps didn't work
- fixed a number of 16-bit color channel bugs
- fixed a few minor memory leaks
- GLX context sharing was broken in 3.5
- fixed state-update bugs in glPopClientAttrib()
- fixed glDrawRangeElements() bug
- fixed a glPush/PopAttrib() bug related to texture binding
- flat-shaded, textured lines were broken
- fixed a dangling pointer problem in the XMesa code (Chris Burghart)
- lighting didn't always produce the correct alpha value
- fixed 3DNow! code to not read past end of arrays (Andrew Lewycky)

New in 4.0.1:
New:
- better sub-pixel sample positions for AA triangles (Ray Tice)
- slightly faster blending for (GL_ZERO, GL_ONE) and (GL_ONE, GL_ZERO)
Bug fixes:
- added missing break statements in glGet*() for multisample cases
- fixed uninitialized hash table mutex bug (display lists / texobjs)
- fixed bad teximage error check conditional (bug 476846)
- fixed demos readtex.c compilation problem on Windows (Karl Schultz)
- added missing glGet() query for GL_MAX_TEXTURE_LOD_BIAS_EXT
- silence some compiler warnings (gcc 2.96)
- enable the #define GL_VERSION_1_3 in GL/gl.h
- added GL 1.3 and GLX 1.4 entries to gl_mangle.h and glx_mangle.h
- fixed glu.h typedef problem found with MSDev 6.0
- build libGL.so with -Bsymbolic (fixes bug found with Chromium)
- added missing 'const' to glXGetContextIDEXT() in glxext.h
- fixed a few glXGetProcAddress() errors (texture compression, etc)
- fixed start index bug in compiled vertex arrays (Keith)
- fixed compilation problems in src/SPARC/glapi_sparc.S
- fixed triangle strip "parity" bug found in VTK medical1 demo (Keith)
- use glXGetProcAddressARB in GLUT to avoid extension linking problems
- provoking vertex of flat-shaded, color-index triangles was wrong
- fixed a few display list bugs (GLUT walker, molecule, etc) (Keith)
- glTexParameter didn't flush the vertex buffer (Ray Tice)
- feedback attributes for glDraw/CopyPixels and glBitmap were wrong
- fixed bug in normal length caching (ParaView lighting bug)

New in 4.0.2:
New:
- New DOS (DJGPP) driver written by Daniel Borca
- New driver interface functions for TCL drivers (such as Radeon DRI)
- GL_RENDERER string returns "Mesa Offscreen16" or "Mesa Offscreen32"
if using deep color channels
- latest GL/glext.h and GL/glxext.h headers from SGI
Bug fixes:
- GL_BLEND with non-black texture env color wasn't always correct
- GL_REPLACE with GL_RGB texture format wasn't always correct (alpha)
- glTexEnviv( pname != GL_TEXTURE_ENV_COLOR ) was broken
- glReadPixels was sometimes mistakenly clipped by the scissor box
- glDraw/ReadPixels didn't catch all the errors that they should have
- Fixed 24bpp rendering problem in Windows driver (Karl Schultz)
- 16-bit GLchan mode fixes (m_trans_tmp.h, s_triangle.c)
- Fixed 1-bit float->int conversion bug in glDrawPixels(GL_DEPTH_COMP)
- glColorMask as sometimes effecting glXSwapBuffers()
- fixed a potential bug in XMesaGarbageCollect()
- N threads rendering into one window didn't work reliably
- glCopyPixels didn't work for deep color channels
- improved 8 -> 16bit/channel texture image conversion (Gerk Huisma)
- glPopAttrib() didn't correctly restore user clip planes
- user clip planes failed for some perspective projections (Chromium)

New in 4.0.3:
New:
- updated GL/glext.h file (version 15)
- corrected MMX blend code (Jose Fonseca)
- support for software-based alpha planes in Windows driver
- updated GGI driver (Filip Spacek)
Bug fixes:
- glext.h had wrong values for GL_DOT3_RGB[A]_EXT tokens
- OSMesaMakeCurrent() didn't recognize buffer size changes
- assorted conformance fixes for 16-bit/channel rendering
- texcombine alpha subtraction mode was broken
- fixed lighting bug with non-uniform scaling and display lists
- fixed bug when deleting shared display lists
- disabled SPARC cliptest assembly code (Mesa bug 544665)
- fixed a couple Solaris compilation/link problems
- blending clipped glDrawPixels didn't always work
- glGetTexImage() didn't accept packed pixel types
- glPixelMapu[is]v() could explode given too large of pixelmap
- glGetTexParameter[if]v() didn't accept GL_TEXTURE_MAX_ANISOTROPY_EXT
- glXCopyContext() could lead to segfaults
- glCullFace(GL_FRONT_AND_BACK) didn't work (bug 572665)
Changes:
- lots of C++ (g++) code clean-ups
- lots of T&L updates for the Radeon DRI driver
Known bugs:
- mipmap LOD computation (fixed for Mesa 4.1)

New in 4.0.4:
New:
- GL_NV_texture_rectangle extension
- updated glext.h header (version 17)
- updated DOS driver (Daniel Borca)
- updated BeOS R5 driver (Philippe Houdoin)
- added GL_IBM_texture_mirror_repeat
- glxinfo now takes -l option to print interesting OpenGL limits info
- GL_MESA_ycbcr_texture extension
- GL_APPLE_client_storage extension (for some DRI drivers only)
- GL_MESA_pack_invert extension
Bug fixes:
- fixed GL_LINEAR fog bug by adding clamping
- fixed FP exceptions found using Alpha CPU
- 3dfx MESA_GLX_FX=window (render to window) didn't work
- fixed memory leak in wglCreateContest (Karl Schultz)
- define GLAPIENTRY and GLAPI if undefined in glu.h
- wglGetProcAddress didn't handle all API functions
- when testing for OpenGL 1.2 vs 1.3, check for GL_ARB_texture_cube_map
- removed GL_MAX_CONVOLUTION_WIDTH/HEIGHT from glGetInteger/Float/etc()
- error checking in compressed tex image functions had some glitches
- fixed AIX compile problem in src/config.c
- glGetTexImage was using pixel unpacking instead of packing params
- auto-mipmap generation for cube maps was incorrect
Changes:
- max texture units reduced to six to accomodate texture rectangles
- removed unfinished GL_MESA_sprite_point extension code
- if you are reading this, I'm really surprised

New in 4.1:
New:
- GL_NV_vertex_program extension
- GL_NV_vertex_program1_1 extension
- GL_ARB_window_pos extension
- GL_ARB_depth_texture extension
- GL_ARB_shadow extension
- GL_ARB_shadow_ambient extension
- GL_EXT_shadow_funcs extension
- GL_ARB_point_parameters extension
- GL_ARB_texture_env_crossbar
- GL_NV_point_sprite extension
- GL_NV_texture_rectangle extension
- GL_EXT_multi_draw_arrays extension
- GL_EXT_stencil_two_side extension
- GLX_SGIX_fbconfig and GLX_SGIX_pbuffer extensions
- GL_ATI_texture_mirror_once extension (Ian Romanick)
- massive overhaul/simplification of software rasterizer module,
many contributions from Klaus Niederkrueger
- faster software texturing in some cases (i.e. trilinear filtering)
- new OSMesaGetProcAddress() function
- more blend modes implemented with MMX code (Jose Fonseca)
- added glutGetProcAddress() to GLUT
- added GLUT_FPS env var to compute frames/second in glutSwapBuffers()
- pbinfo and pbdemo PBuffer programs
- glxinfo -v prints transprent pixel info (Gerd Sussner)
Bug fixes:
- better mipmap LOD computation (prevents excessive blurriness)
- OSMesaMakeCurrent() didn't recognize buffer size changes
- assorted conformance fixes for 16-bit/channel rendering
- texcombine alpha subtraction mode was broken
- fixed some blend problems when GLchan==GLfloat (Gerk Huisma)
- clamp colors to [0,1] in OSMesa if GLchan==GLfloat (Gerk Huisma)
- fixed divide by zero error in NURBS tessellator (Jon Perry)
- fixed GL_LINEAR fog bug by adding clamping
- fixed FP exceptions found using Alpha CPU
- 3dfx/glide driver render-to-window feature was broken
- added missing GLX_TRANSPARENT_RGB token to glx.h
- fixed error checking related to paletted textures
- fixed reference count error in glDeleteTextures (Randy Fayan)
Changes:
- New spec file and Python code to generate some GL dispatch files
- Glide driver defaults to "no" with autoconf/automake
- floating point color channels now clamped to [0,inf)
- updated demos/stex3d with new options

New in 5.0:
New:
- OpenGL 1.4 support (glGetString(GL_VERSION) returns "1.4")
- removed some overlooked debugging code
- glxinfo updated to support GLX_ARB_multisample
- GLUT now support GLX_ARB_multisample
- updated DOS driver (Daniel Borca)
Bug fixes:
- GL_POINT and GL_LINE-mode polygons didn't obey cull state
- fixed potential bug in _mesa_align_malloc/calloc()
- fixed missing triangle bug when running vertex programs
- fixed a few HPUX compilation problems
- FX (Glide) driver didn't compile
- setting GL_TEXTURE_BORDER_COLOR with glTexParameteriv() didn't work
- a few EXT functions, like glGenTexturesEXT, were no-ops
- a few OpenGL 1.4 functions like glFogCoord*, glBlendFuncSeparate,
glMultiDrawArrays and glMultiDrawElements were missing
- glGet*(GL_ACTIVE_STENCIL_FACE_EXT) was broken
- Pentium 4 Mobile was mistakenly identified as having 3DNow!
- fixed one-bit error in point/line fragment Z calculation
- fixed potential segfault in fakeglx code
- fixed color overflow problem in DOT3 texture env mode

Phew!
2002-12-05 15:11:48 +00:00
jlam
9377a2aeab Compute version of built-in Mesa without using "glxinfo", which is broken
when the capabilities of the running X11 server differ from the X11 server
on the system for which the package is meant.  We now try to guess the
Mesa version number based on which OpenGL specification is implemented.

Separate out the logic into its own file, Mesa/version.mk, and use it in
MesaLib's and glu's buildlink2.mk files.

Note that Mesa/version.mk should only be used by the Mesa packages and is
_not_ for general use.
2002-11-20 22:13:21 +00:00
tron
aaa4491f86 Don't try to run "glxinfo" outside a X11 session which would produce lots
of error message.
2002-11-19 09:19:36 +00:00
jlam
db3a779c2d Alter Mesa/GL packages so that they may always be installed if
X11PREFIX != X11BASE (xpkgwedge is installed).  Introduce a new variable
MESA_REQD that defaults to "3.4.2" and represents the version of Mesa/GL
needed by a package.  MESA_REQD is intended to be used by package Makefiles
or by buildlink2.mk files.

It should now be possible to update this package to the latest release
(5.0), and have it work on:

	* XF86-3.x with or without xpkgwedge
	* XF86-4.x with xpkgwedge
2002-11-18 07:49:24 +00:00
bouyer
7d38a52534 MesaLib is part of XFree 4 on solaris too. 2002-10-27 13:50:09 +00:00
wiz
33329b14b3 Unused. 2002-10-09 22:26:16 +00:00
tron
dc618de551 Fix problem with XFree86 checks under Solaris. 2002-09-01 11:49:42 +00:00
jlam
e2afa97f51 Merge changes in packages from the buildlink2 branch that have
buildlink2.mk files back into the main trunk.  This provides sufficient
buildlink2 infrastructure to start merging other packages from the
buildlink2 branch that have already been converted to use the buildlink2
framework.
2002-08-25 18:38:05 +00:00
jlam
aa6c28e1a9 Give the parts of Mesa their own buildlink.mk files and have Mesa's
buildlink.mk simply include the others.  This allows distributing the
various tests for whether that part of Mesa is in the base X11R6 into the
relevant buildlink.mk file.
2002-06-26 05:36:29 +00:00
skrll
08bdd44549 mkdir -> ${MKDIR}
rmdir -> ${RMDIR}
rm -> ${RM} (${RM} added to PLIST_SUBST)
chmod -> ${CHMOD}
chown -> ${CHOWN}
2002-02-15 10:12:28 +00:00
zuntum
d038a73ebd Move pkg/ files into package's toplevel directory 2001-10-31 22:52:58 +00:00
tron
f21d2ac951 Remove "ftp.mesa3d.org" from master list because it is an alias name for
"download.sourceforge.net" these days.
2001-05-31 05:54:45 +00:00
drochner
1bebbc2217 MesaLib's diskfile has changed on the server.
(found by David Brownlee)
2001-05-30 10:53:06 +00:00
drochner
93ca91b6eb update Mesa to 3.4.2
Bug fixes:
        - deleting the currently bound texture could cause bad problems
        - using fog could result in random vertex alpha values
         - AA triangle rendering could touch pixels outside right window bound
        - fixed byteswapping problem in clear_32bit_ximage() function
        - fixed bugs in wglUseFontBitmapsA(), by Frank Warmerdam
        - fixed memory leak in glXUseXFont()
        - fragment sampling in AA triangle function was off by 1/2 pixel
        - Windows: reading pixels from framebuffer didn't always work
        - glConvolutionFilter2D could segfault or cause FP exception
        - fixed segfaults in FX and X drivers when using tex unit 1 but not 0
        - GL_NAND logicop didn't work right in RGBA mode
        - fixed a memory corruption bug in vertex buffer reset code
        - clearing the softwara alpha buffer with scissoring was broken
        - fixed a few color index mode fog bugs
        - fixed some bad assertions in color index mode
        - fixed FX line 'stipple' bug #420091
Changes:
        - optimized writing mono-colored pixel spans to X pixmaps
        - increased max viewport size to 2048 x 2048
2001-05-30 07:53:01 +00:00
wiz
a4f21a5507 Move to sha1 digests, and/or add distfile sizes. 2001-04-21 09:54:06 +00:00
agc
fb467f5ac2 + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-04-17 11:22:34 +00:00
hubertf
31f5ce665c Trivia - What's wrong in this picture:
smaug% grep 'MesaLib.*3.4' */*/Makefile*
graphics/Mesa/Makefile:DEPENDS+=	MesaLib-3.4:../../graphics/MesaLib
graphics/MesaLib/Makefile:DISTNAME=	MesaLib-3.4.1

Invent a variable MESA_VERSION in Mesa/Makefile.common and use it.
2001-04-12 20:38:25 +00:00
drochner
5000ff6534 update to 3.4.1
Changes:
  New:
    - fixed some Linux build problems
    - fixed some Windows build problems
    - GL_EXT_texture_env_dot3 extension (Gareth Hughes)
  Bug fixes:
    - added RENDER_START/RENDER_FINISH macros for glCopyTexImage in DRI
    - various state-update code changes needed for DRI bugs
    - disabled pixel transfer ops in glColorTable commands, not needed
    - fixed bugs in glCopyConvolutionFilter1D/2D, glGetConvolutionFilter
    - updated sources and fixed compile problems in widgets-mesa/
    - GLX_PBUFFER enum value was wrong in glx.h
    - fixed a glColorMaterial lighting bug
    - fixed bad args to Read/WriteStencilSpan in h/w stencil clear function
    - glXCopySubBufferMESA() Y position was off by one
    - Error checking of glTexSubImage3D() was broken (bug 128775)
    - glPopAttrib() didn't restore all derived Mesa state correctly
    - Better glReadPixels accuracy for 16bpp color - fixes lots of OpenGL
      conformance problems at 16bpp.
    - clearing depth buffer with scissoring was broken, would segfault
    - OSMesaGetDepthBuffer() returned bad bytesPerValue value
    - fixed a line clipping bug (reported by Craig McDaniel)
    - fixed RGB color over/underflow bug for very tiny triangles
  Known problems:
    - NURBS or evaluator surfaces inside display lists don't always work
2001-03-23 12:36:53 +00:00
wiz
a2a4d06c6f Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-16 15:22:13 +00:00
agc
9c2d582fc9 The way that shared objects were handled in the PLISTs and bsd.pkg.mk was
out of date - it was based on a.out OBJECT_FMT, and added entries in the
generated PLISTs to reflect the symlinks that ELF packages uses. It also
tried to be clever, and removed and recreated any symbolic links that were
created, which has resulted in some fun, especially with packages which
use dlopen(3) to load modules. Some recent changes to our ld.so to bring
it more into line with other Operating Systems also exposed some cracks.

+ Modify bsd.pkg.mk and its shared object handling, so that PLISTs now contain
the ELF symlinks.
+ Don't mess about with file system entries when handling shared objects in
bsd.pkg.mk, since it's likely that libtool and the BSD *.mk processing will
have got it right, and have a much better idea than we do.
+ Modify PLISTs to contain "ELF symlinks"
+ On a.out platforms, delete any "ELF symlinks" from the generated PLISTs
+ On ELF platforms, no extra processing needs to be done in bsd.pkg.mk
+ Modify print-PLIST target in bsd.pkg.mk to add dummy symlink entries on
a.out platforms
+ Update the documentation in Packages.txt

With many thanks to Thomas Klausner for keeping me honest with this.
2001-01-04 15:10:17 +00:00
drochner
29faa22ee1 update HOMEPAGE
need to install GL/glext.h explicitely
2000-12-12 19:16:56 +00:00
drochner
422b29d263 update to Mesa 3.4
Changes:
    New:
    - optimized glDrawPixels for glPixelZoom(1,-1)
    Bug Fixes:
    - widgets-mesa/src/*.c files were missing from 3.3 distro
    - include/GL/mesa_wgl.h file was missing from 3.3 distro
    - fixed some Win32 compile problems
    - texture object priorities weren't getting initialized to 1.0
    - glAreTexturesResident return value was wrong when using hardware
    - glXUseXFont segfaulted when using 3dfx driver (via MESA_GLX_FX)
    - glReadPixels with GLushort packed types was broken
    - fixed a few bugs in the GL_EXT_texture_env_combine texture code
    - glPush/PopAttrib(GL_ENABLE_BIT) mishandled multi-texture enables
    - fixed some typos/bugs in the VB code
    - glDrawPixels(GL_COLOR_INDEX) to RGB window didn't work
    - optimized glDrawPixels paths weren't being used
    - per-fragment fog calculation didn't work without a Z buffer
    - improved blending accuracy, fixes Glean  blendFunc test failures
    - glPixelStore(GL_PACK/UNPACK_SKIP_IMAGES) wasn't handled correctly
    - glXGetProcAddressARB() didn't always return the right address
    - gluBuild[12]DMipmaps() didn't grok the GL_BGR pixel format
    - texture matrix changes weren't always detected (GLUT projtex demo)
    - fixed random color problem in vertex fog code
    - fixed Glide-related bug that let Quake get a 24-bit Z buffer
    Changes:
    - finished internal support for compressed textures for DRI
2000-12-12 17:22:38 +00:00
tron
5feac46ad5 Use "${MASTER_SITE_SOURCEFORGE}". 2000-11-11 17:49:22 +00:00
rh
a8e422ac06 Initial import of MesaLib-3.2.1, the library part of the new split-up Mesa
system.  This is the part of Mesa that's present on XFree86-4.x and
therefore only required for XFree86-3.x
2000-10-15 11:41:17 +00:00