--- codec2.pc.in.orig	2017-08-03 21:22:16 UTC
+++ codec2.pc.in
@@ -1,6 +1,6 @@
 prefix=@CMAKE_INSTALL_PREFIX@
-libdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
-includedir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@/codec2
+libdir=${prefix}/lib
+includedir=${prefix}/include/codec2
 
 Name: codec2
 Description: A speech codec for 2400 bit/s and below
