diff --git a/configure.ac b/configure.ac index 0d4def58ce..1fc4842187 100644 --- a/configure.ac +++ b/configure.ac @@ -1352,6 +1352,7 @@ AC_CONFIG_FILES([ doc/manpages/Makefile html/Makefile lib/Makefile + lib/libboinc.pc locale/Makefile Makefile py/Boinc/version.py diff --git a/lib/Makefile.am b/lib/Makefile.am index 448a0670a8..7dd5308dbf 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -183,6 +183,7 @@ noinst_HEADERS = \ unix_util.h lib_LTLIBRARIES = libboinc.la +pkgconfig_DATA = libboinc.pc libboinc_la_SOURCES = $(generic_sources) $(mac_sources) $(win_sources) libboinc_la_CFLAGS = $(AM_CFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS) libboinc_la_CXXFLAGS = $(AM_CXXFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS) diff --git a/lib/libboinc.pc.in b/lib/libboinc.pc.in new file mode 100644 index 0000000000..d8b63369e8 --- /dev/null +++ b/lib/libboinc.pc.in @@ -0,0 +1,13 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: boinc +Description: BOINC library +Version: @PACKAGE_VERSION@ + +Cflags: -I${includedir}/boinc +Cflags.private: @PTHREAD_CFLAGS@ +Libs: -L${libdir} -lboinc +Libs.private: @PTHREAD_LIBS@