From b973f98afaea8f20afde84309f5ab47dc501584b Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Fri, 1 Jul 2011 09:53:11 +0000 Subject: Make tulip run without hassle. Unfortunately, some operations repeatably crash tulip even when built vs Qt4.6 svn path=/nixpkgs/trunk/; revision=27570 --- .../science/misc/tulip/configure-opengl.patch | 75 ---------------------- pkgs/applications/science/misc/tulip/default.nix | 8 ++- 2 files changed, 6 insertions(+), 77 deletions(-) delete mode 100644 pkgs/applications/science/misc/tulip/configure-opengl.patch (limited to 'pkgs/applications/science/misc') diff --git a/pkgs/applications/science/misc/tulip/configure-opengl.patch b/pkgs/applications/science/misc/tulip/configure-opengl.patch deleted file mode 100644 index e5346ef07283..000000000000 --- a/pkgs/applications/science/misc/tulip/configure-opengl.patch +++ /dev/null @@ -1,75 +0,0 @@ -Remove broken detection of OpenGL and GLEW. See -. - ---- tulip-3.3.1/acinclude.m4 2010-01-18 20:34:02.000000000 +0100 -+++ tulip-3.3.1/acinclude.m4 2010-06-14 16:25:25.000000000 +0200 -@@ -353,68 +353,8 @@ AC_ARG_WITH(gl-libraries, - [ ac_gl_libraries="$withval" - ]) - --AC_CACHE_VAL(ac_cv_have_gl, --[ --if test ${VAR_WIN32} = 1 --then --gl_incdirs=" /mingw/include $ac_gl_includes $GLDIR/include /usr/include /usr/X11R6/include/X11 /usr/X11R6/include $x_includes " --else --gl_incdirs=" $ac_gl_includes $GLDIR/include /usr/include /usr/X11R6/include/X11 /usr/X11R6/include $x_includes " --fi --AC_FIND_FILE(GL/gl.h, $gl_incdirs, gl_incdir) --ac_gl_includes="$gl_incdir" -- --if test ${VAR_WIN32} = 1 --then --gl_libdirs="$GLDIR $ac_gl_libraries $GLLIB /usr/X11R6/lib /usr/lib /usr/local/lib $x_libraries " --else --gl_libdirs="$ac_gl_libraries $GLLIB /usr/X11R6/lib64 /usr/lib64 /usr/local/lib64/usr/X11R6/lib /usr/lib /usr/local/lib $x_libraries " --fi -- --test -n "$GLDIR" && gl_libdirs="$GLDIR/lib64 $GLDIR/lib $GLDIR $gl_libdirs" --test=NONE --gl_libdir=NONE --for dir in $gl_libdirs; do --if test ${VAR_WIN32} = 1 --then -- try="ls -1 $dir/*opengl*" --else -- try="ls -1 $dir/libGL*" --fi -- if test=`eval $try 2> /dev/null`; then -- gl_libdir=$dir -- if test ${VAR_WIN32} = 0 ; then -- try="ls -1 $gl_libdir/libGLEW.*" -- if test=`eval $try 2> /dev/null`; then break; else AC_MSG_ERROR([ libGLEW not found , please install it in $gl_libdir ]); fi -- else -- break -- fi -- else -- echo "tried $dir" >&AC_FD_CC -- fi --done --ac_gl_libraries="$gl_libdir" - ]) - --eval "$ac_cv_have_gl" --if test "$ac_gl_libraries" = NONE; then -- AC_MSG_ERROR([ Not found , put your GLDIR environnement variable to the OpenGL directory ]); --else -- ac_cv_have_gl="have_gl=yes \ -- ac_gl_includes=$ac_gl_includes ac_gl_libraries=$ac_gl_libraries" -- AC_MSG_RESULT([ libraries $ac_gl_libraries, headers $ac_gl_includes ]) -- gl_libraries="$ac_gl_libraries" -- gl_includes="$ac_gl_includes" --if test ${VAR_MACOSX} = 1 --then -- GL_INCLUDES="-I$ac_gl_includes" -- GL_LDFLAGS="" --else -- GL_INCLUDES="-I$ac_gl_includes" -- GL_LDFLAGS="-L$ac_gl_libraries" --fi --fi -- - dnl MAC PORT - if test ${VAR_MACOSX} = 1 - then - diff --git a/pkgs/applications/science/misc/tulip/default.nix b/pkgs/applications/science/misc/tulip/default.nix index 884ac4a4c1cf..b213c14cc1a5 100644 --- a/pkgs/applications/science/misc/tulip/default.nix +++ b/pkgs/applications/science/misc/tulip/default.nix @@ -1,5 +1,5 @@ { fetchurl, stdenv, libxml2, freetype, mesa, glew, qt -, autoconf, automake, libtool, cmake }: +, autoconf, automake, libtool, cmake, makeWrapper }: let version = "3.5.0"; in stdenv.mkDerivation rec { @@ -11,9 +11,13 @@ stdenv.mkDerivation rec { }; buildInputs = [ libxml2 freetype glew ] - ++ [ autoconf automake libtool cmake qt ]; + ++ [ autoconf automake libtool cmake qt makeWrapper ]; propagagedBuildInputs = [ mesa qt ]; + postInstall='' + wrapProgram "$out/bin/tulip" + ''; + # FIXME: "make check" needs Docbook's DTD 4.4, among other things. doCheck = false; -- cgit 1.4.1