Add pkg-config file

This commit is contained in:
Ignacio Martinez Vazquez 2018-04-30 16:43:34 -03:00 committed by Holger Vogt
parent 406f812db5
commit b6c4f85602
3 changed files with 17 additions and 0 deletions

View File

@ -20,6 +20,11 @@ MAINTAINERCLEANFILES = Makefile.in aclocal.m4 ar-lib compile config.guess \
ACLOCAL_AMFLAGS = -I m4
if SHARED_MODULE
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = ngspice.pc
endif SHARED_MODULE
dist-hook:
rm -rf `find $(distdir)/xgraph -name .deps`
rm -rf `find $(distdir)/xgraph -name config.status`

View File

@ -1071,6 +1071,7 @@ fi
AC_CONFIG_FILES([Makefile
man/Makefile
man/man1/Makefile
ngspice.pc
src/Makefile
src/spicelib/Makefile
src/spicelib/analysis/Makefile

11
ngspice.pc.in Normal file
View File

@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: libngspice
Description: General-purpose circuit simulator
Version: @VERSION@
Libs: -L${libdir} -lngspice
Cflags: -I${includedir}