forked from mirrors/nixpkgs
freeglut: 2.8.1 -> 3.0.0
* Upstream switched to cmake => remove autoreconfHook * Makefile.am is gone => remove darwin specific patch (untested) The new version has a pkg-config file. Yay! Tested locally with `nox-review wip`; no regressions found.
This commit is contained in:
parent
e1f7e7128b
commit
38880d19cb
|
@ -1,27 +1,15 @@
|
|||
{ stdenv, lib, fetchurl, libXi, libXrandr, libXxf86vm, mesa, x11, autoreconfHook }:
|
||||
{ stdenv, fetchurl, libXi, libXrandr, libXxf86vm, mesa, x11, cmake }:
|
||||
|
||||
let version = "2.8.1";
|
||||
let version = "3.0.0";
|
||||
in stdenv.mkDerivation {
|
||||
name = "freeglut-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/freeglut/freeglut-${version}.tar.gz";
|
||||
sha256 = "16lrxxxd9ps9l69y3zsw6iy0drwjsp6m26d1937xj71alqk6dr6x";
|
||||
sha256 = "18knkyczzwbmyg8hr4zh8a1i5ga01np2jzd1rwmsh7mh2n2vwhra";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
libXi libXrandr libXxf86vm mesa x11
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
autoreconfHook
|
||||
];
|
||||
|
||||
postPatch = lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace Makefile.am --replace \
|
||||
"SUBDIRS = src include progs doc" \
|
||||
"SUBDIRS = src include doc"
|
||||
'';
|
||||
|
||||
configureFlags = [ "--enable-warnings" ];
|
||||
buildInputs = [ libXi libXrandr libXxf86vm mesa x11 cmake ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Create and manage windows containing OpenGL contexts";
|
||||
|
|
Loading…
Reference in a new issue