From 05624c9a714c1bec192832e5bc9cd05763e0ab34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anna=20=E2=80=9CCyberTailor=E2=80=9D?= Date: Wed, 10 Nov 2021 00:19:00 +0500 Subject: [PATCH] Add libboinc_api.pc pkg-config file --- api/Makefile.am | 1 + api/libboinc_api.pc.in | 13 +++++++++++++ configure.ac | 1 + 3 files changed, 15 insertions(+) create mode 100644 api/libboinc_api.pc.in 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