Re: How to provide header files for 0compile
Thomas Leonard <[email protected]> Thu, 6 Jul 2017 20:43:42 +0100
| Newsgroups | gmane.comp.file-systems.zero-install.devel |
|---|---|
| Message-ID | <CAG4opy8sVQwyLnxjeS9TGcsBfPH0goPVO82rewgEO6mE+Qay-g@mail.gmail.com> |
On 5 July 2017 at 14:57, Eric Duhamel <[email protected]> wrote: > I've gotten pretty handy with 0install when it comes to packaging binaries > with required libraries, but I don't yet know how to do the same for > 0compile. > > Documentation for 0compile says "For header files (-dev packages), there > will often be a source implementation that generates the header files...". > In my case I don't think there is a source implementation and I'm not sure > how to make one. > > I want to write a feed that can tell 0compile how to build a program from > source. The program source uses Make, but it requires several -dev packages. > I have access to said packages and the header files inside. How do I tell > 0compile to use the header files when compiling from source? Just use <requires> as for any other dependency, and depend on the interface that provides the header files. You can either add the headers to the include path directly with an environment variable or, if the header files use pkg-config, add the .pc file to the pkg-config path. Make sure you use relative paths in the .pc files in that case (e.g. ${pcfiledir}/../../include). Whether the headers are generated from some source package or not doesn't make any difference to how you use them. -- talex5 (GitHub/Twitter) http://roscidus.com/blog/ GPG: 5DD5 8D70 899C 454A 966D 6A51 7513 3C8F 94F6 E0CC ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot