From 1b115963198f5325628ccec91dbc8db73985f8b1 Mon Sep 17 00:00:00 2001 From: "Thomas \"Cakeisalie5\" Touhey" Date: Wed, 25 Apr 2018 23:50:40 +0200 Subject: [PATCH] A few minor things for packaging. --- README.rst | 4 ++-- configure | 6 ++---- man/libcasio-config.1.txt | 45 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+), 6 deletions(-) create mode 100644 man/libcasio-config.1.txt diff --git a/README.rst b/README.rst index eeb84bb..1ff4029 100644 --- a/README.rst +++ b/README.rst @@ -1,5 +1,5 @@ -libcasio - Library and utilitiess for using CASIO's protocols and file formats -============================================================================== +libcasio - Library and utilities for using CASIO's protocols and file formats +============================================================================= This is the main repository for the P7 project, a project to free software surrounding CASIO calculators. It aims at being able to manage CASIO's diff --git a/configure b/configure index 16a0b58..40f6970 100755 --- a/configure +++ b/configure @@ -41,11 +41,9 @@ default_storage=fls0 # Installation directories. root='' -[ x"$indev" != x ] && prefix='${root}/opt/p7-project' \ - || prefix='${root}/usr' +prefix='${root}/usr' prefix_set= -[ x"$indev" != x ] && hprefix='${root}/opt/p7-project' \ - || hprefix='${root}/usr' +hprefix='${root}/usr' bindir='${prefix}/bin' hbindir='${hprefix}/bin' libdir='${prefix}/lib'"$platform" diff --git a/man/libcasio-config.1.txt b/man/libcasio-config.1.txt new file mode 100644 index 0000000..6474892 --- /dev/null +++ b/man/libcasio-config.1.txt @@ -0,0 +1,45 @@ +LIBCASIO-CONFIG(1) +================== +Thomas "Cakeisalie5" Touhey +:Email: thomas@touhey.fr +:man source: libcasio +:man manual: libcasio manual + +NAME +---- +libcasio-config - script to get info about the installed version of libcasio + +SYNOPSIS +-------- +*libcasio-config* [--version] [--cflags] [--libs] + +DESCRIPTION +----------- +*libcasio-config* is a tool that is used to configure and determine the +compiler and linker flags that should be used to compile and link programs, +libraries, and plugins that use libcasio. + +OPTIONS +------- +*--cflags*:: + Print the compiler flags that are necessary to compile a program or library + that uses libcasio. +*--libs*:: + Print the linker flags that are necessary to link a program that + uses libcasio. +*--version*:: + Prints the currently installed version of libcasio on standard output. + +EXAMPLES +-------- +gcc -o main.o $(libcasio-config --cflags) main.c:: + is how you might use *libcasio-config* to compile a C source file for an + executable program. +gcc -o my_app $(libcasio-config --libs) main.o util.o:: + is how you might use *libcasio-config* to link compiled objects into an + executable program. + +SEE ALSO +-------- +*libcasio*(3), +*pkg-config*(1)