diff options
author | Mark H Weaver <mhw@netris.org> | 2017-05-27 03:39:12 -0400 |
---|---|---|
committer | Mark H Weaver <mhw@netris.org> | 2017-05-27 03:39:12 -0400 |
commit | 54d9479d8adf86e486d02267427829f43e7042b6 (patch) | |
tree | f4f1d7a9e0856bee3dadd1f7e2999159302275cb /gnu/packages/graphics.scm | |
parent | 52cabc6f87eb1ceebd953b423e458e3c48f847ca (diff) | |
parent | d771ba62f8b23cf71ad82b3423da36416e8a1e8d (diff) | |
download | guix-54d9479d8adf86e486d02267427829f43e7042b6.tar guix-54d9479d8adf86e486d02267427829f43e7042b6.tar.gz |
Merge branch 'master' into core-updates
Diffstat (limited to 'gnu/packages/graphics.scm')
-rw-r--r-- | gnu/packages/graphics.scm | 106 |
1 files changed, 53 insertions, 53 deletions
diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index a502f246ff..cc1497cb8d 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm @@ -2,7 +2,7 @@ ;;; Copyright © 2015, 2016 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2015 Tomáš Čech <sleep_walker@gnu.org> ;;; Copyright © 2016 Leo Famulari <leo@famulari.name> -;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net> +;;; Copyright © 2016, 2017 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2016 Andreas Enge <andreas@enge.fr> ;;; @@ -23,7 +23,7 @@ (define-module (gnu packages graphics) #:use-module (guix download) - #:use-module (guix svn-download) + #:use-module (guix git-download) #:use-module (guix packages) #:use-module (guix build-system gnu) #:use-module (guix build-system cmake) @@ -423,66 +423,66 @@ output.") (license (license:non-copyleft "file://LICENSE")))) (define-public brdf-explorer - (package - (name "brdf-explorer") - (version "17") ;svn revision - (source (origin - ;; There are no release tarballs, and not even tags in the repo, - ;; so use the latest revision. - (method svn-fetch) - (uri (svn-reference - (url "https://github.com/wdas/brdf") - (revision (string->number version)))) - (sha256 - (base32 - "1458fwsqxramh0gpnp24x7brfpl9afhvr1wqg6c78xqwf32960m5")) - (file-name (string-append name "-" version "-checkout")))) - (build-system gnu-build-system) - (arguments - `(#:phases (modify-phases %standard-phases - (replace 'configure - (lambda* (#:key outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out"))) - (chdir "trunk") - (zero? (system* "qmake" - (string-append - "prefix=" out)))))) - (add-after 'install 'wrap-program - (lambda* (#:key outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (bin (string-append out "/bin")) - (data (string-append - out "/share/brdf"))) - (with-directory-excursion bin - (rename-file "brdf" ".brdf-real") - (call-with-output-file "brdf" - (lambda (port) - (format port "#!/bin/sh + ;; There are no release tarballs, and not even tags in the repo, + ;; so use the latest revision. + (let ((commit "5b2cd46f38a06e47207fa7229b72d37beb945019") + (revision "1")) + (package + (name "brdf-explorer") + (version (string-append "1.0.0-" revision "." (string-take commit 9))) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/wdas/brdf.git") + (commit commit))) + (sha256 + (base32 + "06vzbiajzbi2xl8jlff5d45bc9wd68i3jdndfab1f3jgfrd8bsgx")) + (file-name (string-append name "-" version "-checkout")))) + (build-system gnu-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (zero? (system* "qmake" + (string-append "prefix=" out)))))) + (add-after 'install 'wrap-program + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (data (string-append + out "/share/brdf"))) + (with-directory-excursion bin + (rename-file "brdf" ".brdf-real") + (call-with-output-file "brdf" + (lambda (port) + (format port "#!/bin/sh # Run the thing from its home, otherwise it just bails out. cd \"~a\" exec -a \"$0\" ~a/.brdf-real~%" - data bin))) - (chmod "brdf" #o555)))))))) - (native-inputs - `(("qt" ,qt-4))) ;for 'qmake' - (inputs - `(("qt" ,qt-4) - ("mesa" ,mesa) - ("glew" ,glew) - ("freeglut" ,freeglut) - ("zlib" ,zlib))) - (home-page "http://www.disneyanimation.com/technology/brdf.html") - (synopsis - "Analyze bidirectional reflectance distribution functions (BRDFs)") - (description - "BRDF Explorer is an application that allows the development and analysis + data bin))) + (chmod "brdf" #o555)))))))) + (native-inputs + `(("qttools" ,qttools))) ;for 'qmake' + (inputs + `(("qtbase" ,qtbase) + ("mesa" ,mesa) + ("glew" ,glew) + ("freeglut" ,freeglut) + ("zlib" ,zlib))) + (home-page "http://www.disneyanimation.com/technology/brdf.html") + (synopsis + "Analyze bidirectional reflectance distribution functions (BRDFs)") + (description + "BRDF Explorer is an application that allows the development and analysis of bidirectional reflectance distribution functions (BRDFs). It can load and plot analytic BRDF functions (coded as functions in OpenGL's GLSL shader language), measured material data from the MERL database, and anisotropic measured material data from MIT CSAIL. Graphs and visualizations update in real time as parameters are changed, making it a useful tool for evaluating and understanding different BRDFs (and other component functions).") - (license license:ms-pl))) + (license license:ms-pl)))) (define-public agg (package |