#!/bin/sh
prefix=/usr/pkg
exec_prefix=/usr/pkg/bin
libdir=/usr/pkg/lib

usage()
{
	cat <<EOF
Usage: pdal-config [OPTIONS]
Options:
	[--cflags]
	[--cxxflags]
	[--defines]
	[--includes]
	[--libs]
	[--plugin-dir]
	[--version]
EOF
	exit $1
}

if test $# -eq 0; then
	usage 1 1>&2
fi

case $1 in
  --libs)
    echo -L/usr/pkg/lib -lpdalcpp
    ;;

  --plugin-dir)
    echo lib
    ;;

  --prefix)
    echo ${prefix}
     ;;

  --ldflags)
    echo -L${libdir}
    ;;

  --defines)
    echo 
    ;;

  --includes)
    echo -I/usr/pkg/include -I/pbulk/work/geography/pdal-lib/work/.buildlink/include/libxml2
    ;;

  --cflags)
    echo -O2 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libxml2
    ;;

  --cxxflags)
    echo -O2 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libxml2
    ;;

  --version)
    echo 2.10.1
    ;;

  *)
    usage 1 1>&2
    ;;

esac
