6 Commits

Author SHA1 Message Date
Hans Ulrich Niedermann
e47c13fd8e Call libgphoto2_port 0.12.1, add pc file requirement
Change the libgphoto2_port version from 0.12.0 to 0.12.1 so that
the libgphoto2 pkgconfig files can require libgphoto2_port >= 0.12.1
due to new symbols added.

This will not catch all possible build/install/link messups, but
will not hurt anyone and could catch some messups.
2022-05-30 22:30:38 +02:00
Hans Ulrich Niedermann
bd5aec38d1 pc files: Fix gphoto2 builds, avoid builds with wrong headers
In the *.pc files, use a C preprocessor include path both with
and without the gphoto2/ path component:

    Cflags: -I${includedir} -I${includedir}/gphoto2

This allows both the preferred way to include gphoto2 headers

    #include <gphoto2/gphoto2.h>
    #include <gphoto2/gphoto2-camera.h>

and also the early 2000s legacy way (still in use by kamera and
others because we did not properly communicate and enforce that
back when we were still stabilizing the API)

    #include <gphoto2.h>
    #include <gphoto2-camera.h>

to produce builds with the libgphoto2 headers actually corresponding
to the *.pc files in use.

Any other option for the *.pc file Cflags either produces
unintended build failures or builds which use the wrong header
files (the `-I${includedir}/gphoto2` option), or breaks the
`#include <...>` part of the libgphoto2 API from the early 2000s
still in use by kamera and others (the `-I${includedir}` option).

For details, see https://github.com/gphoto/libgphoto2/issues/717 and
https://github.com/gphoto/libgphoto2/issues/717#issuecomment-1018040615

Fixes: https://github.com/gphoto/libgphoto2/issues/717
2022-01-22 17:47:01 +01:00
Jeff Smith
a4020b3621 Avoid overlinking of libexif
The dependency on libexif need not be exposed to consumers of this
library.  This is fixed by moving libexif from Requires to
Requires.private in the pkg-config files.
2016-01-13 23:38:04 -06:00
Marcus Meissner
4df39da861 forgotten commit from 2.5.7.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15346 67ed7778-7388-44ab-90cf-0a291f65f57c
2015-01-26 12:53:37 +00:00
Marcus Meissner
566c84a6ce bump libgphoto2_port version need to 0.10.0
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14348 67ed7778-7388-44ab-90cf-0a291f65f57c
2013-04-20 09:00:56 +00:00
Hans Ulrich Niedermann
02960d805a * Introduce FOO-uninstalled.pc files for both libgphoto2 and libgphoto2_port.
* Move FOO.pc to the top source directory.
 * Get rid of obsolete GP_AUTOGEN_SUBDIR macro.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10199 67ed7778-7388-44ab-90cf-0a291f65f57c
2007-05-14 12:17:52 +00:00