unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: John Kehayias via Guix-patches via <guix-patches@gnu.org>
To: "56806@debbugs.gnu.org" <56806@debbugs.gnu.org>
Subject: [bug#56806] [PATCH 5/9] gnu: Add mikktspace.
Date: Thu, 28 Jul 2022 04:10:20 +0000	[thread overview]
Message-ID: <-SOYDPbYrBg0NM1yceWAD9ce-EZEBGIZPvbH8NlKBtyfPWxXrOR2t9AO65XwSEGnjBfMLMkOt6yX-X0iQOcQY9E__nBU-Ajzc4Lwi4aqw0E=@protonmail.com> (raw)
In-Reply-To: <9PX8REXHYFolHkT-TXF_SZcRFDEe1-1KwK9riBoz1tnsKV2raznmLO3YTlzbpdyJ9dBOqnpcaUomHmLfOWjytFrkLEvIW_upqCAA_-byN50=@protonmail.com>

[-- Attachment #1: Type: text/plain, Size: 13 bytes --]

Empty Message

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0005-gnu-Add-mikktspace.patch --]
[-- Type: text/x-patch; name=0005-gnu-Add-mikktspace.patch, Size: 2442 bytes --]

From 441a3faaa94688ff01313644d7ee0bd83cf067e9 Mon Sep 17 00:00:00 2001
From: John Kehayias <john.kehayias@protonmail.com>
Date: Wed, 27 Jul 2022 23:32:42 -0400
Subject: [PATCH 5/9] gnu: Add mikktspace.

* gnu/packages/graphics.scm (mikktspace): New variable.
---
 gnu/packages/graphics.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index c193be1efb..1acec5ea76 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -584,6 +584,45 @@ (define-public assimp
 more.")
     (license license:bsd-3)))
 
+(define-public mikktspace
+  ;; The latest commit is used as there is no release.
+  (let ((commit   "3e895b49d05ea07e4c2133156cfa94369e19e409")
+        (revision "0"))
+    (package
+      (name "mikktspace")
+      (version (git-version "0.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/mmikk/MikkTSpace")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "1rjh9zflx51hdhnfadal87v4hhkrbprkv692hjkg9wkxx0ch39zi"))))
+      (build-system gnu-build-system)
+      (arguments
+       (list #:tests? #f
+             #:phases
+             #~(modify-phases %standard-phases
+                 (delete 'configure)
+                 (replace 'build
+                   (lambda* (#:key make-flags parallel-build? #:allow-other-keys)
+                     (invoke #$(cc-for-target) "mikktspace.c" "-O2" "-g" "-fPIC"
+                             "-shared" "-o" "libmikktspace.so")))
+                 (replace 'install
+                   (lambda _
+                     (install-file "mikktspace.h"
+                                   (string-append #$output "/include"))
+                     (install-file "libmikktspace.so"
+                                   (string-append #$output "/lib")))))))
+      (home-page "http://www.mikktspace.com/")
+      (synopsis "Library for a common standard for tangent spaces")
+      (description
+       "This package provides a common standard tangent space library used in
+baking tools to produce normal maps.")
+      (license license:zlib))))
+
 (define-public openshadinglanguage
   (package
     (name "openshadinglanguage")
-- 
2.37.1


  parent reply	other threads:[~2022-07-28  4:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-28  4:06 [bug#56806] [PATCH 0/9] Add the Haxe language and tools John Kehayias via Guix-patches via
2022-07-28  4:08 ` [bug#56806] [PATCH 1/9] gnu: Add ocaml-luv John Kehayias via Guix-patches via
2022-07-28  4:09 ` [bug#56806] [PATCH 2/9] gnu: Add ocaml-ptmap John Kehayias via Guix-patches via
2022-07-28  4:09 ` [bug#56806] [PATCH 3/9] gnu: Add ocaml-sha John Kehayias via Guix-patches via
2022-07-28  4:10 ` [bug#56806] [PATCH 4/9] gnu: Add ocaml-xml-light John Kehayias via Guix-patches via
2022-07-28  4:10 ` John Kehayias via Guix-patches via [this message]
2022-07-28  4:10 ` [bug#56806] [PATCH 6/9] gnu: Add minimp3 John Kehayias via Guix-patches via
2022-07-28  4:10 ` [bug#56806] [PATCH 7/9] gnu: Add neko John Kehayias via Guix-patches via
2022-07-28  4:11 ` [bug#56806] [PATCH 8/9] gnu: Add haxe John Kehayias via Guix-patches via
2022-07-28  4:11 ` [bug#56806] [PATCH 9/9] gnu: Add hashlink John Kehayias via Guix-patches via
2022-08-03  6:53 ` bug#56806: [PATCH 0/9] Add the Haxe language and tools 宋文武 via Guix-patches via
2022-08-03 18:04   ` [bug#56806] " John Kehayias via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='-SOYDPbYrBg0NM1yceWAD9ce-EZEBGIZPvbH8NlKBtyfPWxXrOR2t9AO65XwSEGnjBfMLMkOt6yX-X0iQOcQY9E__nBU-Ajzc4Lwi4aqw0E=@protonmail.com' \
    --to=guix-patches@gnu.org \
    --cc=56806@debbugs.gnu.org \
    --cc=john.kehayias@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).