From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Need help porting eDuke32 Date: Fri, 22 Feb 2019 11:57:31 +0100 Message-ID: <871s40jdk4.fsf@ambrevar.xyz> References: <4082254.2VInIakpOu@aleksandar-ixtreme-m5740> <3942569.6XaQy4PdK7@aleksandar-ixtreme-m5740> <87imxdj6ew.fsf@ambrevar.xyz> <1778948.l3vIaAGMXl@aleksandar-ixtreme-m5740> <8736ogjeis.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:46792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gx8Wu-0001m6-IO for help-guix@gnu.org; Fri, 22 Feb 2019 05:58:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gx8Wt-0001dH-DA for help-guix@gnu.org; Fri, 22 Feb 2019 05:58:08 -0500 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:50149) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gx8Wt-00017K-1u for help-guix@gnu.org; Fri, 22 Feb 2019 05:58:07 -0500 In-reply-to: <8736ogjeis.fsf@ambrevar.xyz> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: HiPhish Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I needed to add a custom 'install phase: =2D-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 o= ut "/share/licenses")))))) =2D-8<---------------cut here---------------end--------------->8--- I can merge this in your name, let me know. Playing Duke now! "Hail to the king, baby!" =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlxv1ZsACgkQm9z0l6S7 zH/OPwgAjW7mVEY78ro5aZLpekWHBMBPsYaSYkaJMJnZsByUATC1YUa18ordmJmI x5UQ/yiykhJIO8ZBfWi3Ce65IHn5/WlYLy6pB3ajqswuUgjSdHyJ6Xues9f4Uf5c YqkkmfgFHa4sjeAYfZuPZhOsSaf5j39yUyKAZQtUyZdMCYzLH/3ig92oGKfO26MD FgbiJRwTVt/rGVfyBDYP5YzPp532u/WwR6F9gHIeKWq386AOPFouj9uD9TBytIVy g/vf2zJUm/Tc8XPJsFQAAUC+cMTGto4I+gXuTPN1z3PK/yKean86YiA92xIIN4I8 9DLwnBGD/ThJsQTjPFPfwCvU8+IwwA== =TrZp -----END PGP SIGNATURE----- --=-=-=--