shithub: jbig2

Download patch

ref: 2fdf7ae41a74e5b28d82bf07c61e715f67f7bf3b
parent: a8ed5c84b32c0ba67d1b12a4f4d0a1099d2cf1fa
author: Sebastian Rasmussen <sebras@gmail.com>
date: Wed Apr 10 09:48:05 EDT 2019

jbig2dec: Add pkg-config file and allow for it to be installed.

--- a/Makefile.am
+++ b/Makefile.am
@@ -33,6 +33,9 @@
 	os_types.h config_types.h config_win32.h
 jbig2dec_LDADD = libjbig2dec.la @LIBOBJS@ $(PNG_LIBS)
 
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = jbig2dec.pc
+
 dist_man_MANS = jbig2dec.1
 
 EXTRA_DIST = test_jbig2dec.py msvc.mak LICENSE CHANGES
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -146,5 +146,5 @@
 ])
 
 # generate output
-AC_CONFIG_FILES([Makefile config_types.h])
+AC_CONFIG_FILES([Makefile config_types.h jbig2dec.pc])
 AC_OUTPUT
--- /dev/null
+++ b/jbig2dec.pc.in
@@ -1,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libjbig2dec
+Description:  JBIG2 decoder library.
+Version: @VERSION@
+Libs: -L${libdir} -ljbig2dec
+Libs.private: -lm
+Cflags: -I${includedir}