Install a libfreefare.pc pkg-config module.

This commit is contained in:
Romain Tartiere 2009-12-18 21:31:45 +00:00
parent 967f9822e9
commit ba8c9b5126
3 changed files with 19 additions and 1 deletions

View file

@ -9,3 +9,6 @@ lib_LTLIBRARIES = libfreefare.la
libfreefare_la_SOURCES = mifare_classic.c
libfreefare_la_HEADERS = mifare_classic.h
libfreefare_ladir = $(includedir)
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libfreefare.pc

View file

@ -27,4 +27,7 @@ AC_FUNC_REALLOC
# Checks for pkg-config modules.
PKG_CHECK_MODULES([LIBNFC], [libnfc], [], [AC_MSG_ERROR([libnfc is mandatory.])])
AC_OUTPUT([Makefile])
PKG_CONFIG_REQUIRES="libnfc"
AC_SUBST([PKG_CONFIG_REQUIRES])
AC_OUTPUT([Makefile libfreefare.pc])

12
libfreefare.pc.in Normal file
View file

@ -0,0 +1,12 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: libfreefare
Description: MIFARE contactless tag access library
Version: @VERSION@
URL: http://code.google.com/p/nfc-tools
Requires: @PKG_CONFIG_REQUIRES@
Libs: -L${libdir} -lfreefare
Cflags: -I${includedir}