Commit a0891fde authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz

install pkg-config configuration files

Suggested by Jeroen Meijer.

* spot/libspot.pc.in, spot/ltsmin/libspotltsmin.pc.in: New file.
* spot/Makefile.am, spot/ltsmin/Makefile.am: Distribute them, and
install their derived version.
* spot/.gitignore: Ignore *.pc files.
* debian/libbddx-dev.install, debian/libspot-dev.install: Ship
those *.pc files.
* NEWS: Mention it.
parent a9b056ba
......@@ -14,6 +14,8 @@ New in spot 2.2.2.dev (Not yet released)
* The development Debian packages for Spot now install static
libraries as well.
* We now install configuration files for users of pkg-config.
Tools:
* ltlcross supports translators that output alternating automata in
......
......@@ -3,3 +3,4 @@ usr/include/bvecx.h
usr/include/bddx.h
usr/lib/*-*/libbddx.so
usr/lib/*-*/libbddx.a
usr/lib/*-*/pkgconfig/libbddx.pc
usr/include/spot
usr/lib/*-*/libspot.so
usr/lib/*-*/libspot.a
usr/lib/*-*/pkgconfig/libspot.pc
usr/lib/*-*/libspotltsmin.so
usr/lib/*-*/libspotltsmin.a
usr/lib/*-*/pkgconfig/libspotltsmin.pc
......@@ -6,3 +6,4 @@ libspot.la
_.cc
*.log
*.dir
*.pc
## -*- coding: utf-8 -*-
## Copyright (C) 2009, 2010, 2012, 2013, 2014, 2015, 2016 Laboratoire
## Copyright (C) 2009, 2010, 2012, 2013, 2014, 2015, 2016, 2017 Laboratoire
## de Recherche et Développement de l'Epita (LRDE).
## Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
## département Systèmes Répartis Coopératifs (SRC), Université Pierre
......@@ -48,3 +48,18 @@ libspot_la_LIBADD = \
# Dummy C++ source to cause C++ linking.
nodist_EXTRA_libspot_la_SOURCES = _.cc
_.cc:; touch $@
EXTRA_DIST = $(srcdir)/libspot.pc.in
pkgconfigdir = $(libdir)/pkgconfig
nodist_pkgconfig_DATA = libspot.pc
libspot.pc: $(srcdir)/libspot.pc.in
sed -e 's![@]prefix[@]!$(prefix)!g' \
-e 's![@]exec_prefix[@]!$(exec_prefix)!g' \
-e 's![@]includedir[@]!$(includedir)!g' \
-e 's![@]libdir[@]!$(libdir)!g' \
-e 's![@]PACKAGE_VERSION[@]!$(PACKAGE_VERSION)!g' \
$(srcdir)/libspot.pc.in > $@
DISTCLEANFILES = libspot.pc
prefix=@prefix@
exec_prefix=@exec_prefix@
includedir=@includedir@
libdir=@libdir@
Name: Spot
Description: A library of LTL and omega-automata algorithms for model checking
URL: https://spot.lrde.epita.fr/
Version: @PACKAGE_VERSION@
Cflags: -I${includedir}
Libs: -L${libdir} -lspot
Requires: libbddx
## -*- coding: utf-8 -*-
## Copyright (C) 2011, 2013, 2014, 2015, 2016 Laboratoire de Recherche
## et Developpement de l'Epita (LRDE).
## Copyright (C) 2011, 2013, 2014, 2015, 2016, 2017 Laboratoire de
## Recherche et Developpement de l'Epita (LRDE).
##
## This file is part of Spot, a model checking library.
##
......@@ -34,3 +34,18 @@ libspotltsmin_la_LIBADD = \
$(LIBLTDL) -lpthread
libspotltsmin_la_LDFLAGS = -no-undefined $(SYMBOLIC_LDFLAGS)
libspotltsmin_la_SOURCES = ltsmin.cc
EXTRA_DIST = $(srcdir)/libspotltsmin.pc.in
pkgconfigdir = $(libdir)/pkgconfig
nodist_pkgconfig_DATA = libspotltsmin.pc
libspotltsmin.pc: $(srcdir)/libspotltsmin.pc.in
sed -e 's![@]prefix[@]!$(prefix)!g' \
-e 's![@]exec_prefix[@]!$(exec_prefix)!g' \
-e 's![@]includedir[@]!$(includedir)!g' \
-e 's![@]libdir[@]!$(libdir)!g' \
-e 's![@]PACKAGE_VERSION[@]!$(PACKAGE_VERSION)!g' \
$(srcdir)/libspotltsmin.pc.in > $@
DISTCLEANFILES = libspotltsmin.pc
prefix=@prefix@
exec_prefix=@exec_prefix@
includedir=@includedir@
libdir=@libdir@
Name: Spot-LTSmin
Description: Access to LTSmin-compatible state-space in Spot
URL: https://spot.lrde.epita.fr/
Version: @PACKAGE_VERSION@
Cflags: -I${includedir}
Libs: -L${libdir} -lspotltsmin
Requires: libspot
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment