File: /usr/iports/bin/pdflib-config
#!/bin/sh
#
# Return information about the local PDFlib installation
#
# $Id: pdflib-config.in,v 1.10 2001/04/12 13:33:05 tm Exp $
# installation directories
prefix=/usr/iports
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
bindir=${exec_prefix}/bin
usage()
{
cat <<EOF
Print information on PDFlib's version, configuration, and use.
Usage: pdflib-config [options]
Options:
--bindings # available PDFlib language bindings
--libdir # directory where PDFlib library is installed
--includedir # directory where PDFlib header is installed
--version # complete PDFlib version string
--majorversion # PDFlib major version number
--minorversion # PDFlib minor version number
--revision # PDFlib revision version number
--libversion # PDFlib's libtool interface number (not
# necessarily the shared library file name suffix!)
--pdi # whether or not PDF import library (PDI) is available
--ldflags # options required for linking against PDFlib
--libs # same as --ldflags
--cflags # options required for compiling PDFlib applications
--includes # same as --cflags
--all # print a summary of all PDFlib configure options
EOF
exit $1
}
if test $# -eq 0; then
usage 1 1>&2
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--bindings)
echo c cpp perl
;;
--libdir)
echo $libdir
;;
--includedir)
echo $includedir
;;
--version)
echo 7.0.5
;;
--majorversion)
echo 7
;;
--minorversion)
echo 0
;;
--pdi)
echo no
;;
--revision)
echo 5
;;
--libversion)
echo 6:5:0
;;
--libs|--ldflags)
echo -L${exec_prefix}/lib -lpdf -lm
;;
--cflags|--includes)
echo -I${prefix}/include
;;
--all)
echo "PDFlib 7.0.5"
echo "bindings: c cpp perl"
echo "includedir: $includedir"
echo "libdir: $libdir"
echo "libversion: 6:5:0"
echo "pdi: no"
echo "ldflags: -L${exec_prefix}/lib -lpdf -lm"
echo "cflags: -I${prefix}/include"
;;
*)
usage 1 1>&2
;;
esac
shift
done