[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")
"/include/SDL2"
":"
(getenv "CPLUS_INCLUDE_PATH")))
#t))
(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
"/share/licenses"))))))
--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
https://ambrevar.xyz/
signature.asc
Description: PGP signature
- Re: Need help porting eDuke32, (continued)
- Re: Need help porting eDuke32, Marius Bakke, 2019/02/16
- Re: Need help porting eDuke32, HiPhish, 2019/02/17
- Re: Need help porting eDuke32, Pierre Neidhardt, 2019/02/17
- Re: Need help porting eDuke32, HiPhish, 2019/02/21
- Re: Need help porting eDuke32, Pierre Neidhardt, 2019/02/22
- Re: Need help porting eDuke32,
Pierre Neidhardt <=
- Re: Need help porting eDuke32, Pierre Neidhardt, 2019/02/22
- Re: Need help porting eDuke32, HiPhish, 2019/02/24
- Re: Need help porting eDuke32, Pierre Neidhardt, 2019/02/25
- Re: Need help porting eDuke32, Andreas Enge, 2019/02/25
- Re: Need help porting eDuke32, Giovanni Biscuolo, 2019/02/25
- Re: Need help porting eDuke32, Tobias Geerinckx-Rice, 2019/02/26
- Re: Need help porting eDuke32, Pierre Neidhardt, 2019/02/26
- Re: Need help porting eDuke32, HiPhish, 2019/02/26
- Re: Need help porting eDuke32, Ricardo Wurmus, 2019/02/26
- Re: Need help porting eDuke32, Jack Hill, 2019/02/26