From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:38519) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iuLCU-00024G-UJ for guix-patches@gnu.org; Wed, 22 Jan 2020 13:58:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iuLCT-0007Sq-Tv for guix-patches@gnu.org; Wed, 22 Jan 2020 13:58:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45352) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iuLCT-0007Si-RI for guix-patches@gnu.org; Wed, 22 Jan 2020 13:58:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iuLCT-0004rW-QX for guix-patches@gnu.org; Wed, 22 Jan 2020 13:58:01 -0500 Subject: [bug#38687] [PATCH] gnu: Add libtcod. Resent-Message-ID: From: Marius Bakke In-Reply-To: <891e12c54b84a6f4caad6b4c72f1ecba@autistici.org> References: <20191220123739.18081-1-goodoldpaul@autistici.org> <875zi6j3c1.fsf@gnu.org> <891e12c54b84a6f4caad6b4c72f1ecba@autistici.org> Date: Wed, 22 Jan 2020 19:57:45 +0100 Message-ID: <87muaftj2u.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: goodoldpaul@autistici.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 38687@debbugs.gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable goodoldpaul@autistici.org writes: > As far as I understood (I'm no C wizard) lodepng, glad and stb are=20 > libraries which are designed to be dropped inside a source tree and=20 > statically built in binaries. Right now I think those are secondary=20 > problems and the main deal is how to effectively replace the included=20 > utf8proc. > > I'm not sure if replacing every "#include ../../vendor/something.h" with= =20 > "#include " ( by including a .patch file or with=20 > substitute* ? Food for thought :D) and then placing something.h inside a= =20 > path known by the C linker is enough but it's the I'm not really sure=20 > where to go from here. Something like (substitute* (find-files "src/libtcod" "\\.(h|cpp)$") (("\\.\\./\\.\\./vendor/") "")) Would make all the header paths relative, i.e. looked up in the compiler search path. In practice you might need to narrow down the substitution so that e.g. vendor/utf8proc is preserved, if it turns out to be difficult to unbundle. There is currently no stb-truetype package, but it should be trivial to add it (see gnu/packages/stb.scm). Lodepng looks fairly easy too. :-) Good luck! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl4omykACgkQoqBt8qM6 VPpmjwf8CG7TILIwqCgkbyo6OP5l3zsvhDgivK7tXR6aRrnS1RRG9+ABuAXAW7sS gxVbyZFeWmSb8fy44A5CwsPnJOFd1ZKkaxUc9vG3DbQlwOu2XJnRenrlI+83imvU 4vD95uHW0TQtnp+kn3krmxPuAoHe0CoA4g7guAXUrs7STP3oGiM1Ah9BcbRUEK+v fkeze3ikUQmlK9m6nMprBmCBYUaYcQpgSdFiG/gixdUh6iuGIV/G37s1SO/AeDHp HwXJupCuZH5MtHyjdyTMpoE60qUuL1/RhhpstyKS4sz5CHhKR8eK8uaRpWuLyKj+ rDozaAJS8ZbfxGIU1u8NlsRr0HHkWw== =I0Yf -----END PGP SIGNATURE----- --=-=-=--