[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need help porting eDuke32

From: Pierre Neidhardt
Subject: Re: Need help porting eDuke32
Date: Fri, 22 Feb 2019 11:57:31 +0100
User-agent: mu4e 1.0; emacs 26.1

I needed to add a custom 'install phase:

--8<---------------cut here---------------start------------->8---
       (modify-phases %standard-phases
         (delete 'configure)
         (add-after 'set-paths 'set-sdl-paths
           ;; The makefile adds the output of `sdl2-config --cflags` to the
           ;; compiler flags, but sdl2-config gives us the wrong directory to
           ;; include. We have to add the SDL2 header directory ourselves.
           (lambda* (#:key inputs #:allow-other-keys)
             (setenv "CPLUS_INCLUDE_PATH"
                     (string-append (assoc-ref inputs "sdl-union")
                                    (getenv "CPLUS_INCLUDE_PATH")))
         (replace 'install
           (lambda* (#:key outputs #:allow-other-keys)
             (let ((out (assoc-ref outputs "out")))
               ;; TODO: Install custom .desktop file?  Need icon.
               (install-file "eduke32" (string-append out "/bin"))
               (install-file "mapster32" (string-append out "/bin"))
               (install-file "package/common/buildlic.txt" (string-append out 
--8<---------------cut here---------------end--------------->8---

I can merge this in your name, let me know.

Playing Duke now!

"Hail to the king, baby!"

Pierre Neidhardt

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]