Commit 04d52916 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Generate pkgconfig belr.pc file

parent dfb6bd89
# This is a comment
prefix=@CMAKE_INSTALL_PREFIX@
Name: @PROJECT_NAME@
Description: Belr is Belledonne Communications' language recognition library
Version: @PROJECT_VERSION@
Libs: -L@CMAKE_INSTALL_FULL_LIBDIR@ -lbelr
Libs.private: @LIBS_PRIVATE@
Cflags: -I@CMAKE_INSTALL_FULL_INCLUDEDIR@
...@@ -3,12 +3,31 @@ ...@@ -3,12 +3,31 @@
AC_PREREQ([2.69]) AC_PREREQ([2.69])
AC_INIT([belr], [0.1.1], [simon.morlat@linphone.org]) AC_INIT([belr], [0.1.1], [simon.morlat@linphone.org])
BELR_SO_CURRENT=0 dnl increment this number when you add/change/remove an interface
BELR_SO_REVISION=1 dnl increment this number when you change source code, without changing interfaces; set to 0 when incrementing CURRENT
BELR_SO_AGE=1 dnl increment this number when you add an interface, set to 0 if you remove an interface
BELR_SO_VERSION=$BELR_SO_CURRENT:$BELR_SO_REVISION:$BELR_SO_AGE
AC_SUBST(BELR_SO_CURRENT, $BELR_SO_CURRENT)
AC_SUBST(BELR_SO_VERSION)
AC_CONFIG_SRCDIR([src/]) AC_CONFIG_SRCDIR([src/])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h]) AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE AC_CANONICAL_SYSTEM
LT_INIT([shared disable-static])
dnl initialize pkg-config so that we can use it within if else fi statements.
PKG_PROG_PKG_CONFIG()
AM_INIT_AUTOMAKE(subdir-objects)
AM_SILENT_RULES(yes) AM_SILENT_RULES(yes)
LT_INIT(disable-static win32-dll)
# Checks for programs. # Checks for programs.
AC_PROG_CXX AC_PROG_CXX
...@@ -40,6 +59,24 @@ AC_SUBST(BCTOOLBOX_LIBS) ...@@ -40,6 +59,24 @@ AC_SUBST(BCTOOLBOX_LIBS)
# Checks for typedefs, structures, and compiler characteristics. # Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SSIZE_T AC_TYPE_SSIZE_T
dnl substitute variables used by .pc files
if test "$prefix" = "NONE" ; then
install_prefix=/usr
else
install_prefix=$prefix
fi
PROJECT_VERSION=$VERSION
CMAKE_INSTALL_PREFIX=$install_prefix
CMAKE_INSTALL_FULL_LIBDIR=${install_prefix}/lib
CMAKE_INSTALL_FULL_INCLUDEDIR=${install_prefix}/include
AC_SUBST(PROJECT_VERSION)
AC_SUBST(CMAKE_INSTALL_PREFIX)
AC_SUBST(CMAKE_INSTALL_FULL_LIBDIR)
AC_SUBST(CMAKE_INSTALL_FULL_INCLUDEDIR)
AC_SUBST(TESTER_REQUIRES_PRIVATE)
# Checks for library functions. # Checks for library functions.
AC_CONFIG_FILES( AC_CONFIG_FILES(
Makefile Makefile
...@@ -47,6 +84,7 @@ src/Makefile ...@@ -47,6 +84,7 @@ src/Makefile
tools/Makefile tools/Makefile
include/Makefile include/Makefile
include/belr/Makefile include/belr/Makefile
belr.pc
) )
AC_OUTPUT AC_OUTPUT
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment