#!/bin/sh
prefix=@@HOMEBREW_CELLAR@@/pdal/2.10.1_1
exec_prefix=@@HOMEBREW_CELLAR@@/pdal/2.10.1_1/bin
libdir=@@HOMEBREW_CELLAR@@/pdal/2.10.1_1/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@@HOMEBREW_CELLAR@@/pdal/2.10.1_1/lib -lpdalcpp
    ;;

  --plugin-dir)
    echo lib
    ;;

  --prefix)
    echo ${prefix}
     ;;

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

  --defines)
    echo 
    ;;

  --includes)
    echo -I@@HOMEBREW_CELLAR@@/pdal/2.10.1_1/include -I@@HOMEBREW_PREFIX@@/include/libxml2
    ;;

  --cflags)
    echo -I@@HOMEBREW_PREFIX@@/opt/libunwind/include
    ;;

  --cxxflags)
    echo -I@@HOMEBREW_PREFIX@@/opt/libunwind/include
    ;;

  --version)
    echo 2.10.1
    ;;

  *)
    usage 1 1>&2
    ;;

esac
