diff options
Diffstat (limited to 'devel/adacurses/files/adacurses-config')
-rw-r--r-- | devel/adacurses/files/adacurses-config | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/devel/adacurses/files/adacurses-config b/devel/adacurses/files/adacurses-config new file mode 100644 index 000000000000..71f0dfdbe2a6 --- /dev/null +++ b/devel/adacurses/files/adacurses-config @@ -0,0 +1,32 @@ +#! /bin/sh +# +# This script will return the option to add to `gnatmake' for using +# AdaCurses. +# + +prefix=/usr/local +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +VERSION=5.2 + +CFLAGS="-I$libdir/adacurses -L$libdir/adacurses" +LIBS="-L$prefix/lib -lAdaCurses" + +case "x$1" in + x--version) + echo AdaCurses $VERSION + ;; + x--cflags) + echo $CFLAGS + ;; + x--libs) + echo $LIBS + ;; + x) + echo $CFLAGS -largs $LIBS + ;; + *) + echo 'Usage: adacurses-config [--version | --cflags | --libs]' >&2 + exit 1 + ;; +esac |