diff --git a/api/Makefile.am b/api/Makefile.am index d94ceeba59..51092568cf 100644 --- a/api/Makefile.am +++ b/api/Makefile.am @@ -48,6 +48,7 @@ libboinc_api_la_LDFLAGS = -version-number $(LIBBOINC_VERSION) if BUILD_GRAPHICS_API lib_LTLIBRARIES += libboinc_graphics2.la +pkgconfig_DATA += libboinc_graphics2.pc libboinc_graphics2_la_SOURCES = $(graphics2_files) libboinc_graphics2_la_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_srcdir)/samples/image_libs libboinc_graphics2_la_LDFLAGS = -version-number $(LIBBOINC_VERSION) -ljpeg diff --git a/api/libboinc_graphics2.pc.in b/api/libboinc_graphics2.pc.in new file mode 100644 index 0000000000..e750bb8f9c --- /dev/null +++ b/api/libboinc_graphics2.pc.in @@ -0,0 +1,15 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: boinc_graphics2 +Description: BOINC graphics API +Version: @PACKAGE_VERSION@ +URL: https://boinc.berkeley.edu/trac/wiki/GraphicsApps + +Cflags: -I${includedir}/boinc +Cflags.private: @GLUT_CFLAGS@ +Libs: -L${libdir} -lboinc_graphics2 +Libs.private: -lm +Requires.private: libjpeg diff --git a/configure.ac b/configure.ac index 77c0601a89..ec2b0cbd7a 100644 --- a/configure.ac +++ b/configure.ac @@ -1339,6 +1339,7 @@ AC_CONFIG_FILES([ version.h api/Makefile api/libboinc_api.pc + api/libboinc_graphics2.pc apps/Makefile clientgui/Makefile clientgui/res/Makefile