Install a libfreefare.pc pkg-config module.
This commit is contained in:
parent
967f9822e9
commit
ba8c9b5126
3 changed files with 19 additions and 1 deletions
|
@ -9,3 +9,6 @@ lib_LTLIBRARIES = libfreefare.la
|
||||||
libfreefare_la_SOURCES = mifare_classic.c
|
libfreefare_la_SOURCES = mifare_classic.c
|
||||||
libfreefare_la_HEADERS = mifare_classic.h
|
libfreefare_la_HEADERS = mifare_classic.h
|
||||||
libfreefare_ladir = $(includedir)
|
libfreefare_ladir = $(includedir)
|
||||||
|
|
||||||
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
|
pkgconfig_DATA = libfreefare.pc
|
||||||
|
|
|
@ -27,4 +27,7 @@ AC_FUNC_REALLOC
|
||||||
# Checks for pkg-config modules.
|
# Checks for pkg-config modules.
|
||||||
PKG_CHECK_MODULES([LIBNFC], [libnfc], [], [AC_MSG_ERROR([libnfc is mandatory.])])
|
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
12
libfreefare.pc.in
Normal 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}
|
Loading…
Reference in a new issue