Commit graph

77 commits

Author SHA1 Message Date
Alexey Dokuchaev
c4e35c08eb Correct previous fix: required prototypes were removed from <sys/systm.h>
not that long ago.  Check for suitable OSVERSION so the port is buildable
on 6.x/5.x again.

Approved by:	portmgr (pav)
Pointy hat to:	danfe
2007-12-03 10:10:42 +00:00
Alexey Dokuchaev
99e04bc803 - Fix `agpvar.h' location on recent -CURRENT
- Building with -Werror requires prototype for suser()

Based on PR:	ports/118063
Submitted by:	Yuri Pankov
Approved by:	portmgr (linimon)
2007-11-24 21:55:46 +00:00
Alexey Dokuchaev
b4d369724e - Chase another nVidia update (100.x -> 1419, legacy versions -> 7186/9643)
- Convert NVVERSION to brave new order (makes them ugly, I know)
- Fix the emulation of semaphores implemented in `nvidia_os.c'.  The problem
  with nVidia's code was that it tries to use a spin mutex with a condition
  variable, which is explicitely disallowed [1]
- Remove X.org-related path hacks since nVidia handles it correctly now
- Fix symlinks when installing from package (plist change)
- Stop saying FILESDIR when PATCHDIR was meant
- Simplify some Makefile logic: remove always-true check

Submitted by:	mux, Craig Boston (independently) [1]
2007-10-30 08:16:58 +00:00
Mark Linimon
136ae8d835 Attempt to silence warnings that show up with 'make ignorelist'.
Hat:		portmgr
2007-09-17 05:22:23 +00:00
Alexey Dokuchaev
814368e7d3 Fix an edge case of "make describe".
Reported by:	portsnap buildbox
2007-08-20 14:59:46 +00:00
Alexey Dokuchaev
a59adb76f9 Long-awaited NVidia driver update:
- Update the driver to the latest version, 100.14.11
- Update legacy driver versions to 1.0-7185 and 1.0-9639
- Prevent the port from messing with system configuration files (e.g.
  /boot/loader.conf) and doing automatic module loading/unloading.  This
  functionality would be lost in package anyway, and might cause undesired
  side effects [*]
- Register proper @exec/@unexec for ldconfig(8) calls for Linux libraries
- Kill NVidia's afterinstall banner, our pkg-message tells the same but is
  more detailed and accurate
- Require X server being installed
- INSTALLS_SHLIB -> USE_LDCONFIG, seems to be OK nowadays
- Respect NOPORTDOCS user setting
- Throw in couple of comments + other minor tweaks

100.14.11 Release Hightlights:

- GeForce 7050 PV/NVidia nForce 630a
- GeForce 7025/NVidia nForce 630a
- Fixed console restore problems in several different configurations, e.g.
  VESA console, notebook LCD displays
- Improved interaction with ATi RS480/482 based mainboards
- Improved support for House Sync with G-Sync II
- Improved NVidia X driver interaction with ACPI daemon

Requested by:	several [*]
2007-08-20 12:56:07 +00:00
Alexey Dokuchaev
75a7683de8 More cleanups:
- Simplify SHLIB_VERSION handling, it's not that bad after all
- Better and cleaner PORTDOCS handling, less hacks in Makefile
- Fix non-root installation (use pre-su-install)
- Miscellaneous Makefile nits
2007-07-24 09:10:57 +00:00
Alexey Dokuchaev
bd0b7743ac - Make plist substitution knobs named coherently with X system used,
previously they were somewhat misleading (logic remains the same) [1]
- Take xorg-server-snap into account, previously having it installed
  would break pkg-list logic (libglx.so wasn't backed up/restored
  properly) [2]
- Utilize DOCSDIR macro in pkg-message.in
- Drop currently noop USE_X_PREFIX

Discussed with:	flz [1]
Suggested by:	flz [2]
2007-07-23 15:46:06 +00:00
Alexey Dokuchaev
5bbb51a00f In sight of upcoming update, overhaul things slightly:
- NVVERSION is no longer user settable.  nVidia changed their versioning
  scheme, which made my life a bit harder.  Since this is master port and
  cares about legacy version slaves as well, derive NVVERSION from DIST-
  VERSION as doing so required less intrusive changes.  Update the comment
  accordingly.  UPDATING note will be committed separately
- Retire OSVERSION hack since it's no longer needed.  PORTREVISION are now
  set in all three nvidia-driver ports independently.  Previously it was
  not really safe because NVVERSION was user settable variable
- Introduce new variable, SHLIB_VERSION, and use it in PLIST_SUB, because
  it's not always equal to NVVERSION these days
- Mute MKDIR along the way

For slave ports:

- Rename port directory names to reflect future reality: their versions
  going to bump as well.  No repo copy since there's no history to preserve
2007-07-23 13:24:27 +00:00
Mark Linimon
8c91d898a6 Populate the 'kld' virtual category, for ports that install Kernel Loadable
modules.

Hat:		portmgr
2007-06-29 09:16:42 +00:00
Florent Thoumie
9e98d77440 Indent fix.
Approved by:	portmgr (implicit)
2007-05-20 14:03:16 +00:00
Florent Thoumie
99f8b985a0 Fix legacy nvidia-drivers.
Submitted by:	Stefan Ehmann <shoesoft@gmx.net>
Approved by:	portmgr (pav), maintainer (implicit)
2007-05-20 14:01:22 +00:00
Florent Thoumie
d4f0d0048a - Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
2007-05-19 20:36:56 +00:00
Alexey Dokuchaev
88c8b624ed Fix the build on recent -CURRENT.
Reported by:	piso
2007-02-26 11:29:34 +00:00
Alexey Dokuchaev
4017e1e7eb - Add a patch by Christian Zander from nVidia that fixes crashes reported by
users on recent 6.X and -CURRENT systems.  This applies to both versions,
  9631 and 9746
- Optimize REINPLACE_CMD invocation while here
2007-02-08 17:49:13 +00:00
Alexey Dokuchaev
feb679cb9e Quickly fix package list for earlier versions while no one notices. 2007-02-08 15:11:12 +00:00
Alexey Dokuchaev
8949d849fc - Utilize MASTER_SITE_NVIDIA macro
- Drop support for WITH_LEGACY_GPU_SUPPORT knob, instead allow to specify
  needed NVVERSION (move towards being master port) [*]
- Update related comment

Prodded by:	many [*]
2007-02-08 14:54:43 +00:00
Alexey Dokuchaev
64a1a2c484 - Update to version 9746, the latest from nVidia, which adds support for
GeForce 8800 GTS and GeForce 8800 GTX boards [1]
- More proper WITHOUT_LINUX knob handling [1] [2]
- Update an old patch to be more consistent with current way of doing
  Linux-compat things (should be no-op change though)

PR:		ports/107307 [1]
Submitted by:	Eygene Ryabinkin [1]
Reported by:	Rostislav Krasny [2]
2007-01-07 18:47:16 +00:00
Alexey Dokuchaev
b28bc3788a Fix PLIST (remove superfluous file). 2006-12-17 10:22:28 +00:00
Alexey Dokuchaev
976e3176b0 - Update to most recent version from nVidia, 9631
- As threatened, drop support for FreeBSD 4.X
- Apply minor fix for master sites [*]
- Add last padding line for pkg-message for prettier output

Tested on:	FreeBSD 6.2-PRERELEASE (i386)

[*] alepulver@ will take care of master sites in separate commit
2006-12-06 21:46:44 +00:00
Alexey Dokuchaev
ad55271af0 Update to most recent versions available from nVidia (8776, 7184 for legacy
GPUs) and thus unforbid.

Approved by:	portmgr (erwin)
2006-10-23 15:44:33 +00:00
Simon L. B. Nielsen
334584d543 Mark FORBIDDEN due to arbitrary root code execution vulnerability.
Security:	http://vuxml.FreeBSD.org/a6d9da4a-5d5e-11db-8faf-000c6ec775d9.html
With hat:	secteam
Approved by:	portmgr (secteam blanket)
2006-10-16 22:02:05 +00:00
Alexey Dokuchaev
763d6c3044 Advise how to deal with common "not enough shared memory" problem that has
troubled many FreeBSD+nVidia users.

PR:		ports/95122
2006-09-07 12:18:02 +00:00
Alexey Dokuchaev
c8ebf26932 Update to version 8774, the latest from nVidia. 2006-09-05 10:38:22 +00:00
Alexey Dokuchaev
9d2be9a5f0 - Stop deleting `lib/modules/extensions/libglx.so' upon pkg_delete
- Update to version 1.0-8762, the latest from nVidia

Changes from version 1.0-8178 (previous in Ports Collection):

  - Added support for new GPUs, such as QuadroFX 4500 X2, Quadro FX 5500,
    Quadro FX 3500, and Quadro FX 1500
  - Added support for GeForce 7300, GeForce 7400 Go, GeForce 7600, and
    GeForce 7900 GPUs
  - Improved Quadro FX 3450/4000 SDI support
  - Added support for running OpenGL applications while the Composite X
    extension is enabled; see "The X Composite Extension" appendix for details
  - Enabled hardware acceleration of the Render X extension by default
  - Added new "nvidia-auto-select" mode entry for use in the X configuration
    file; see description in the "Programming Modes" appendix
  - Added support for GLX 1.4
  - Added "AddARGBGLXVisuals" X configuration option, so that OpenGL
    applications can render to X Windows' alpha channel
  - Added ability for OpenGL applications to span greater than 4096 pixels
    when in Xinerama
  - Fixed video memory reporting with GeForce 6200 Turbo Cache
  - Fixed a problem with Overlay support when in TwinView
  - Fixed several issues with mode selection for CRTs and DFPs
  - Fixed a corruption problem with Rotation and large desktops on older GPUs
    including GeForce4 MX
  - Fixed a system crash starting X with TwinView on certain GPUs
  - Addressed an NV-CONTROL compatibility issue; please see the Known Issues
    section of the README for details
  - Improved G-Sync support
  - Fixed interlaced modes on CRTs

PR:		ports/96385
Submitted by:	Sean Farley <sean-freebsd(at)farley.org>
2006-05-29 14:19:32 +00:00
Alexey Dokuchaev
ed6dd533f5 - Remove unneeded PKGMESSAGE override (SUB_FILEs does it automatically)
- Add a dependency to the native xorg-libraries when the LINUX option is
  enabled (it causes USE_XLIB to depend on Linux libraries instead of the
  native ones).  This should aid in updating process.

PR:		ports/96883
Submitted by:	alepulver
2006-05-29 13:39:09 +00:00
Alexey Dokuchaev
e020d422ee - Xorg 6.9 uses the .so extension instead of .a for the server extensions.
Fix the pkg-plist for that [1]
- Remove the USE_REINPLACE since it is no longer needed [1]

Please note that 4.X users will probably suffer from this as a side
effect, however, taking them into account will further complicate the
Makefile logic, which is already pretty hard to follow.  Since I warned
4.X users about removing support for that old release of FreeBSD (and
since I'd be really suprised to find out there's someone still using
4.X as their desktop) more than 8 months ago, plus we're not obliged to
support ports on 4.X anymore, I think we can live with it.

Once again, I'm encouraging people using this port use it with modern
FreeBSD version and modern graphics card.

PR:		ports/92862 [1]
Submitted by:	Sean Farley <sean-freebsd(at)farley.org> [1]
2006-03-20 16:08:46 +00:00
Alexey Dokuchaev
3abf3049db Good news, everyone! There's a crate to deliver^W^W^Wnew release from
nVidia, 1.0-8178.  This release highlights:

  - Improved stability with the Composite X extension
  - Fixed a corruption bug with RenderAccel and the Composite X
    extension when using wide desktops
  - Fixed a problem validating HDTV modes on GeForce 6200
  - Fixed detection of certain older TV encoders
2005-12-26 03:19:22 +00:00
Alexey Dokuchaev
ade78ba123 Deal with non-standard DOCSDIR in a sane manner. 2005-12-21 16:01:33 +00:00
Alexey Dokuchaev
5937b8a28a Update to version 1.0-8174, the latest from nVidia. Release highlights:
- Fixed GeForce 7800 GTX clocking problem that affected 3D performance
  - Added support for new GPUs such as the GeForce 6100 and GeForce 6150
  - Added support for Stereo Digital Flat Panels such as the SeeReal and
    Sharp3D DFPs
  - Added support for static Rotation; see the "Rotate" X config option in
    the README
2005-12-15 12:53:50 +00:00
Alexey Dokuchaev
ffa05628cf Use smarter regexps. 2005-12-14 10:39:55 +00:00
Alexey Dokuchaev
ac327e0777 Fix missing misc/compat5x dependency in WITH_LEGACY_GPU_SUPPORT case.
PR:		ports/90304
Submitted by:	Bjoern Koenig <bkoenig(at)cs.tu-berlin.de>
2005-12-14 10:32:18 +00:00
Alexey Dokuchaev
000931d3c9 Add SHA256 hashes to my ports. 2005-11-30 13:35:03 +00:00
Alexey Dokuchaev
34beeaea38 Do not install nvidia-settings, there's native version available in
`x11/nvidia-settings' port.

Based on PR:	ports/84969
Submitted by:	jylefort
2005-11-09 16:26:51 +00:00
Alexey Dokuchaev
0982920874 Once again. nVidia's libGL depends on libm.so.3 which is not available
since ${OSVERSION} >= 600033.  Get one via `misc/compat5x' port.

Reported by:	several
2005-09-12 13:44:28 +00:00
Alexey Dokuchaev
a2af49333c Update to version 1.0-7676, the latest from nVidia, which fixes GeForce 7800
GTX clocking problem that affected 3D performance.

I've decided not to rename patches to ease on CVS repo's life.  This is
bug-fix release, and I hope nVidia will incorporate our patches into next
"major" release.
2005-08-31 13:34:41 +00:00
Alexey Dokuchaev
a49971069e Unbreak on recent -CURRENT/6.X.
Based on PR:	ports/84481
Submitted by:	Andrej Zverev <az(at)inec.ru>
Approved by:	portmgr (marcus)
2005-08-02 17:37:55 +00:00
Alexey Dokuchaev
99a8c0e087 Introduce WITH_LEGACY_GPU_SUPPORT option, which sticks us to previous
version of NVidia driver release for the sake of supporting some "legacy"
GPUs.  Note that this options is unsupported, and presumably would only be
needed for a few unlucky souls out there.

PR:		ports/82758
2005-06-30 04:18:22 +00:00
Alexey Dokuchaev
2571ce9ac7 - Update to 1.0.7667 [1]
- Fixed assignment of PORTREVISION.  It needs to be set before including
  bsd.port.pre.mk [1]
- Disabled exit upon failure to kldunload and kldload of NVidia driver
  for 7667 driver.  This would break an upgrade of an earlier install [1]
- Fix PREFIX expansion in pkg-message

PR:		ports/82554 [1]
Submitted by:	Sean Farley <sean-freebsd(at)farley.org>
2005-06-28 06:28:45 +00:00
Alexander Leidinger
23b3bc4b0d Mega-patch to cleanup the ports infrastructure regarding our linux bits:
- USE_LINUX now implies NO_FILTER_SHLIBS=yes. It also doesn't use FreeBSD
    tools to strip binaries anymore, so it's not neccesary anymore to override
    STRIP and STRIP_CMD.
  - USE_LINUX_PREFIX implies NO_MTREE now.
  - In the USE_LINUX case, USE_XLIB now depends upon the linux X11 libraries
    instead upon the native FreeBSD libraries.
  - The variable LINUX_BASE_PORT contains a string which is suitable as an
    item in *_DEPENDS, so if a port BATCH_DEPENDS or FETCH_DEPENDS upon the
    default (or overriden) linux base, ${LINUX_BASE_PORT} should be used
    instead of a hardcoded reference.
  - Change all ports to comply to the "new world order".
  - The Ports Collection now allows to override the default linux_base port.
    Specify e.g. OVERRIDE_LINUX_BASE_PORT=rh-9 in /etc/make.conf to use
    ${PORTSDIR}/emulators/linux_base-rh-9 (the logic is to use
    ${PORTSDIR}/emulators/linux_base-${OVERRIDE_LINUX_BASE_PORT}).
  - If USE_LINUX or OVERRIDE_LINUX_BASE doesn't point to an existing linux_base
    port and if USE_LINUX isn't set to "yes" (case insensitive), the port will
    be marked as IGNORE. [1]
  - Readd USE_LINUX knobs into several ports and make several uses of a
    conditional dependency ("USE_LINUX?=") into an unconditional one
    ("USE_LINUX=") which where removed/changed by Trevor to allow the use of
    alternative linux_base ports. While this is a nice goal, the implementation
    resulted in missing dependencies. The OVERRIDE_LINUX_BASE_PORT knob
    in this commit is supposed to fix the problem while keeping the feature.
    Basicaly this includes a backout of Trevor's commit, to prevent confusion
    I mention it here explicitely.
  - Use the correct prefix (X11- instead of LOCAL- or LINUX-) for some ports.
    Chase dependencies for this.
  - Changes to make linux_devtools installable on amd64, remove some stray
    device nodes (they don't work on recent OS versions and aren't really
    needed).
  - Make linux_base-8 PREFIX clean and remove some stray device nodes.
    Additionally tell a little bit more about how to setup NIS/YP [2].
  - Update the PGSQL dependency in the linux-opengroupware port to a recent
    version (the old one isn't available anymore), I don't know if this
    works (at least it isn't more broken than before).
  - Use PREFIX/usr/share/doc instead of PREFIX/usr/doc in the divx4linux
    ports, the former path exists already and gets populated by other
    packages too (PREFIX=LINUXPREFIX!).
  - Fix some obvious (non-linuxolator) bugs in some linux ports while being
    there.
  - Bump PORTREVISION where neccesary.

Requested by:	portmgr (linimon) [1]
Submittted by:	Gerrit Kuehn <gerrit_huehn@gruft.fido.de [2]
Approved by:	portmgr (kris, linimon), maintainers (or maintainer timeout)
Tested on:	ports cluster (kris)
Reviewed by:	silence on emulation@
Superseedes PR:	69997

Maintainer approval from:
	chris@chrisburkert.de
	cracauer@cons.org
	des
	girgen
	jamie@bishopston.net
	mezz
	mi
	nivit@users.sf.net
        pat
	simond@irrelevant.org
	riggs@rrr.de
	Udo.Schweigert@Siemens.com
2005-06-17 22:59:29 +00:00
Alexey Dokuchaev
b9159074e4 Stop patching nvidia_subr.c when building version 7174 of driver, correct
locking is already there.  Bump PORTREVISION.

This should fix recursive panics reported on 5.4-STABLE.

Reported by:	green
Submitted by:	sam
Reviewed by:	alc, dfr
2005-06-15 09:17:40 +00:00
Alexey Dokuchaev
67d180c2f4 Fix pkg-plist.
Based on PR:	ports/81041
Submitted by:	Sean Farley <sean-freebsd(at)farley.org>
2005-05-24 15:57:37 +00:00
Alexey Dokuchaev
447983b59c - Convert to OPTIONS
- Fix 6113-case of extra patching
2005-05-24 15:42:43 +00:00
Alexey Dokuchaev
5ff603dbf2 Long anticipated update to version 1.0-7174, the latest from nVidia.
Release Highlights:

    * Supports FreeBSD 5-STABLE (5.3-RELEASE or later).  For FreeBSD 4.x
      and 5.2.1 users we stick to previous version (6113), since 7174 does
      not play nicely with legacy FreeBSD releases
    * Added support for the latest NVIDIA GPUs, including the GeForce 6600
      and 6200 with TurboCache(TM)
    * Added support for the KSE threading libraries

Prodded by:	many
Tested by:	several
Tested on:	FreeBSD 4.11 and 5.3
2005-05-11 08:52:37 +00:00
Trevor Johnson
e66743b7d5 Respect the user's USE_LINUX setting. 2005-03-01 21:51:48 +00:00
Alexey Dokuchaev
733a52902b It turns out there's a call to vm_page_wakeup() that does not hold the
object lock across the call.  It shows up with INVARIANTS turned on.

PR:		ports/77750
Submitted by:	Frank Mayhar <frank(at)exit.com>
2005-02-24 05:28:21 +00:00
Alexey Dokuchaev
af02a82fb5 IGNORE string should not be quoted.
Part of PR:	ports/76095
2005-01-11 14:28:49 +00:00
Alexander Leidinger
64cf27c85d Say hello to the linux mega patch, it consolidates our linux bits a
little bit and allows to proceed to a more recent linux_base from
a stable (read as: the major bugs should be ironed out or identified
and most linux ports build just fine) source.

It also allows to ship 4.11 with a working linuxolator (the EOLed
linux_base is marked forbidden because of a security hole).

This is a major update, please read UPDATING (and CHANGES if you
develop linux ports).

Changes:
 - change the default linux_base from v7 to v8
 - add a newer freetype to linux_base-8 for nicer fonts display [1]
 - don't let cpio use hardlinks in the linux_base-8 port to quiet some
   warnings in some cases [2]
 - fix a cut&past error in the linux_base-8 pkg-install script [3]
 - convert the binary knob "USE_LINUX" to a version specifier, e.g.
   USE_LINUX=<value> specifies a dependency upon
   emulators/linux_base-<value>, exceptions are a value of "7" (which
   does what you want and adds a dependency to linux_base) and any
   value without a corresponding port in
   PORTSDIR/emulators/linux_base-<value> (which adds a dependency to
   the default linux_base)
 - don't implicitly add USE_LINUX with the USE_LINUX_PREFIX knob,
   this allows us to use the USE_LINUX_PREFIX knob for linux_base and
   paves the way for splitting up future linux base ports into
   individual pieces
 - remove RESTRICTED from some GPL licensed ports, even when we only
   distribute binaries, we get them from official linux sites, so
   anyone can grab them there if he needs to
 - add a dependency upon the linux X11 bits where necessary (based upon
   guesswork)
 - don't use USE_X_PREFIX in some linux ports since it adds a dependency
   to the FreeBSD X11 libs, as a workaround use PREFIX?= (the clean
   solution would be to remove the implicit USE_XLIB from USE_X_PREFIX)
 - bump the portrevision of the linux ports ("better safe than sorry"
   algorithm)
 - pass maintainership of the important linux infrastructure to a
   mailinglist, hijack freebsd-emulation@ for this purpose (if somebody
   doesn't like this: tell us your bikeshed color at freebsd-emulation@,
   my color would be "linuxolator@" in case someone cares...)
 - add a pkg-install script for linux-fontconfig, but don't use it;
   everything should work without it (the FreeBSD fc-cache program should
   do all the work), but in case we need it we just need to decomment the
   pkg-install part in the Makefile
 - fix some dependencies
 - fix some bugs
 - add some static plists
 - unbreak the ports with dependecies to more than one linux_base

This also fixes some ports which are marked BROKEN because of dependencies
to v7 and v8 of linux_base at the same time.

Known bugs:
 - the linux-mesa and linux-devtools ports install libGL*.so symlinks
 - some "minor" plist bugs (e.g. ld.so.{conf,cache} are modified by
   the linux X11 port, so linx_Base-8 moans at deinstall time)

Future work (interested souls should coordinate with freebsd-emulation@):
 - add some kind of USE_LINUX_X11 knob to streamline the X11 dependencies,
   or modify the behavior of USE_XLIB in the USE_LINUX case
   AFAIK trevor has some patches.
 - make USE_XLIB and USE_X_PREFIX orthogonal to be able to get rid of
   the PREFIX?= workaround in some linux ports
   Should be discussed/coordinated on/with x11@.
 - move the RPM bits from x11-toolkits/linux-gtk/Makefile to PORTSDIR/Mk/
 - update to a more recent linux base

PR:			69997, 70539 (and maybe others)
Discussed with/on:	java@, x11@, trevor, portmgr
Tested by:		mezz, portmgr, pointyhat
RPM hunted down by:	Joseph Gelinas <scirocco@tasam.com> [1]
Requested by:		portmgr [2]
Submitted by:		kris [3]
Approved by:		portmgr
2004-12-31 18:24:10 +00:00
Alexey Dokuchaev
71990e22f8 nVidia's libGL depends on libm.so.2 which is not available since 5.3-BETA7.
Get one via `misc/compat4x' port.

PR:		ports/74130
Submitted by:	Marius Nuennerich <marius.nuennerich(at)gmx.de>
2004-12-27 02:53:25 +00:00
Alexey Dokuchaev
11e3f6da5a Mark as for i386 only.
Suggested by:	remko
2004-12-27 02:27:28 +00:00