Alexandru Csete
2017-03-13 15:45:39 UTC
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
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