diff --git a/api/Makefile.am b/api/Makefile.am index 074f7ed81e..d94ceeba59 100644 --- a/api/Makefile.am +++ b/api/Makefile.am @@ -42,6 +42,7 @@ AM_CXXFLAGS += @GLUT_CFLAGS@ endif lib_LTLIBRARIES = libboinc_api.la +pkgconfig_DATA = libboinc_api.pc libboinc_api_la_SOURCES = $(api_files) libboinc_api_la_LDFLAGS = -version-number $(LIBBOINC_VERSION) diff --git a/api/libboinc_api.pc.in b/api/libboinc_api.pc.in new file mode 100644 index 0000000000..a986cca0d4 --- /dev/null +++ b/api/libboinc_api.pc.in @@ -0,0 +1,13 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: boinc_api +Description: BOINC API +Version: @PACKAGE_VERSION@ +URL: https://boinc.berkeley.edu/trac/wiki/BasicApi + +Cflags: -I${includedir}/boinc +Cflags.private: @GLUT_CFLAGS@ +Libs: -L${libdir} -lboinc_api diff --git a/configure.ac b/configure.ac index 728b8a31f9..77c0601a89 100644 --- a/configure.ac +++ b/configure.ac @@ -1338,6 +1338,7 @@ AC_SUBST(FULLNAME) AC_CONFIG_FILES([ version.h api/Makefile + api/libboinc_api.pc apps/Makefile clientgui/Makefile clientgui/res/Makefile