Commits

Andreas Tscharner  committed da12ac8

Support pkg-config: Add file and let it generate from ./configure

* Also add final liblrc.pc for installation

  • Participants
  • Parent commits c2db6a8

Comments (0)

Files changed (3)

File configure.in

                 src/compiler/tinyxml/Makefile \
                 src/example/Makefile          \
                 src/lib/Makefile              \
+                src/pkgconfig/liblrc.pc       \
                 src/strategies/Makefile       \
                 man/Makefile                  \
                 doc/Makefile)

File src/lib/Makefile.am

 AM_CXXFLAGS = $(DEBUG_CXXFLAGS) -std=c++0x
 
 #
-# Define include headers
+# Define include headers and pkg-config files
 include_HEADERS = ../include/Resource.hxx ../include/ResourceManager.hxx
+pkgconfigdir=$(libdir)/pkgconfig
+pkgconfig_DATA = ../pkgconfig/liblrc.pc
 
 #
 # Define library

File src/pkgconfig/liblrc.pc.in

+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: liblrc
+Description: Extraction library for lrc compiled resources
+Version: @PACKAGE_VERSION@
+URL: https://bitbucket.org/StarFire/lrc/overview
+Requires.private: -lz
+Cflags: -I${includedir}
+Libs: -L${libdir} -llrc
+Libs.private: -lbz2