Hi guys,

Here is a small patch to make the pkg-config file in
codec2-dev/codec2.pc.in generate the correct library and include
directories. Without the the patch the includedir is hard coded and
does not respect custom prefixes, while the libdir does not include
any prefix at all and will always return "lib"

--- a/codec2.pc.in
+++ b/codec2.pc.in
@@ -1,6 +1,6 @@
 prefix=@CMAKE_INSTALL_PREFIX@
-libdir=@CMAKE_INSTALL_LIBDIR@
-includedir=/usr/include/codec2
+libdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
+includedir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@/

 Name: codec2
 Description: A speech codec for 2400 bit/s and below


Note: The includedir above does not contain "codec2" so one will have to use

#include <codec2/freedv_api.h>

which IMO is the preferred way, but feel free to include it in the includedir.

Alex
OZ9AEC

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to