add pkg-config config file
This commit is contained in:
parent
f63901f0cc
commit
caf12045fa
4 changed files with 28 additions and 10 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,6 +3,7 @@
|
||||||
*.d
|
*.d
|
||||||
*.so
|
*.so
|
||||||
*.so.*
|
*.so.*
|
||||||
|
*.pc
|
||||||
/iast
|
/iast
|
||||||
/tests/test
|
/tests/test
|
||||||
/tests/coverage
|
/tests/coverage
|
||||||
|
|
|
@ -25,6 +25,7 @@ bindir = @bindir@
|
||||||
libdir = @libdir@
|
libdir = @libdir@
|
||||||
datarootdir = @datarootdir@
|
datarootdir = @datarootdir@
|
||||||
includedir = @includedir@
|
includedir = @includedir@
|
||||||
|
pkgconfigdir = @pkgconfigdir@
|
||||||
mandir = @mandir@
|
mandir = @mandir@
|
||||||
|
|
||||||
USE_GCOV = @USE_GCOV@
|
USE_GCOV = @USE_GCOV@
|
||||||
|
@ -92,9 +93,10 @@ install-lib:
|
||||||
cp -P $(REALNAME) $(SONAME) $(libdir)
|
cp -P $(REALNAME) $(SONAME) $(libdir)
|
||||||
|
|
||||||
install-dev:
|
install-dev:
|
||||||
$(MKDIR_P) $(includedir)/iast $(libdir)
|
$(MKDIR_P) $(includedir)/iast $(libdir) $(pkgconfigdir)
|
||||||
$(INSTALL_DATA) $(INCLUDES) $(includedir)/iast
|
$(INSTALL_DATA) $(INCLUDES) $(includedir)/iast
|
||||||
$(INSTALL_DATA) iast.h $(includedir)
|
$(INSTALL_DATA) iast.h $(includedir)
|
||||||
|
$(INSTALL_DATA) $(PROGNAME).pc $(pkgconfigdir)
|
||||||
cp -P $(ANAME) $(LINKNAME) $(libdir)
|
cp -P $(ANAME) $(LINKNAME) $(libdir)
|
||||||
|
|
||||||
uninstall: uninstall-prog uninstall-lib uninstall-dev
|
uninstall: uninstall-prog uninstall-lib uninstall-dev
|
||||||
|
@ -108,10 +110,11 @@ uninstall-lib:
|
||||||
|
|
||||||
uninstall-dev:
|
uninstall-dev:
|
||||||
$(RM) -r $(includedir)/iast $(includedir)/iast.h
|
$(RM) -r $(includedir)/iast $(includedir)/iast.h
|
||||||
|
$(RM) $(pkgconfigdir)/$(PROGNAME).pc
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(PROGNAME) tests/test $(PROGNAME).1.gz
|
$(RM) $(PROGNAME) tests/test $(PROGNAME).1.gz
|
||||||
$(RM) -r $(LIBFILES) *.o */*.o */*.d *.d
|
$(RM) -r $(LIBFILES) *.o */*.o */*.d *.d $(PROGNAME).pc
|
||||||
$(RM) *.gcda *.gcno tests/coverage */*.test
|
$(RM) *.gcda *.gcno tests/coverage */*.test
|
||||||
|
|
||||||
clean-aux:
|
clean-aux:
|
||||||
|
|
|
@ -17,6 +17,9 @@ AC_PROG_INSTALL
|
||||||
AC_PROG_LN_S
|
AC_PROG_LN_S
|
||||||
AC_CHECK_TOOL([AR], [ar])
|
AC_CHECK_TOOL([AR], [ar])
|
||||||
|
|
||||||
|
PKG_PROG_PKG_CONFIG
|
||||||
|
PKG_INSTALLDIR
|
||||||
|
|
||||||
# Checks for libraries.
|
# Checks for libraries.
|
||||||
PKG_CHECK_MODULES(CHECK, check)
|
PKG_CHECK_MODULES(CHECK, check)
|
||||||
|
|
||||||
|
@ -56,5 +59,5 @@ AC_SUBST(COVERAGE_CFLAGS)
|
||||||
AC_SUBST(COVERAGE_LFLAGS)
|
AC_SUBST(COVERAGE_LFLAGS)
|
||||||
AC_SUBST(USE_GCOV)
|
AC_SUBST(USE_GCOV)
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile])
|
AC_CONFIG_FILES([Makefile iast.pc])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
11
iast.pc.in
Normal file
11
iast.pc.in
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
prefix=@prefix@
|
||||||
|
exec_prefix=@exec_prefix@
|
||||||
|
libdir=@libdir@
|
||||||
|
includedir=@includedir@
|
||||||
|
|
||||||
|
Name: libiast
|
||||||
|
URL: https://github.com/vlastavesely/sanskrit-iast
|
||||||
|
Description: Library for romanisation of texts written in Devanagari
|
||||||
|
Version: @PACKAGE_VERSION@
|
||||||
|
Libs: -L${libdir} -liast
|
||||||
|
Cflags:
|
Loading…
Add table
Reference in a new issue