more autotool magic

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@599 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2011-10-29 22:44:51 +00:00
parent c1cb30cdc3
commit fc80b5042f
8 changed files with 43 additions and 39 deletions

View File

@@ -13,7 +13,7 @@ do_subst = sed \
-e 's,[@]OPENSC_LIBS[@],$(OPENSC_LIBS),g' \
-e 's,[@]top_srcdir[@],$(top_srcdir),g'
EXTRA_DIST = README.rst Doxyfile.in example.c autotools.rst autotools.rst.in questions.rst questions.rst.in
EXTRA_DIST = README.rst.in README.rst Doxyfile.in example.c autotools.rst autotools.rst.in questions.rst questions.rst.in
.PHONY: doc
doc:
@@ -22,3 +22,4 @@ doc:
touch api.rst
$(do_subst) < autotools.rst.in > autotools.rst
$(do_subst) < questions.rst.in > questions.rst
$(do_subst) < README.rst.in > README.rst

View File

@@ -6,9 +6,9 @@
.. _npa:
***
npa
***
********************************************************************************
@PACKAGE_NAME@
********************************************************************************
:Author:
Frank Morgner <morgner@informatik.hu-berlin.de>
@@ -17,11 +17,11 @@ npa
:Tested Platforms:
Linux (Debian, Ubuntu, OpenMoko)
Welcome to npa. The purpose of npa is to offer an easy to use API for the new
Welcome to the @PACKAGE_NAME@. The purpose of the @PACKAGE_NAME@ is to offer an easy to use API for the new
German identity card (neuer Personalausweis, nPA). The library also implements
secure messaging, which could also be used for other cards.
npa is implemented using OpenPACE_.
The @PACKAGE_NAME@ is implemented using OpenPACE_.
Some fragments of the source code are based on the source code of the OpenSC tools.
The included npa-tool has support for Password Authenticated Connection
@@ -33,7 +33,7 @@ APDUs inside a secure messaging channel established with PACE.
.. include:: autotools.rst
npa has the following dependencies:
The @PACKAGE_NAME@ has the following dependencies:
- OpenSC_
- OpenSSL with OpenPACE_
@@ -57,9 +57,9 @@ an example of how to get the standard installation of OpenSSL with OpenPACE_::
make
make install
Building npa with OpenPACE_ is done best using :command:`pkg-config`. The file
Building the @PACKAGE_NAME@ with OpenPACE_ is done best using :command:`pkg-config`. The file
:file:`libcrypto.pc` should be located in ``$INSTALL/lib/pkgconfig``. Here is how
to configure npa to use it::
to configure the @PACKAGE_NAME@ to use it::
./configure PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
@@ -85,7 +85,7 @@ standard installation of OpenSC_::
make install
Now :file:`libopensc.so` should be located in ``$PREFIX/lib``. Here is how to
configure npa to use it::
configure the @PACKAGE_NAME@ to use it::
./configure OPENSC_LIBS="-L$PREFIX/lib -lopensc"
@@ -111,7 +111,7 @@ Linking against libnpa
----------------------
Following the section `Installation`_ above, you have installed OpenSC_,
OpenPACE_ and npa to :file:`/tmp/install`. To compile a program using libnpa you
OpenPACE_ and the @PACKAGE_NAME@ to :file:`/tmp/install`. To compile a program using libnpa you
need to get the header files from OpenSC_ as well.
Here is how
to compile an external program with these libraries::