freebsd-ports/devel/adacurses/files/adacurses-config
Yen-Ming Lee a27e27b753 Update to 5.3 and get rid of BROKEN
PR:		59534
Submitted by:	Clement Laforet <sheepkiller@cultdeadsheep.org>
2003-11-21 09:06:44 +00:00

32 lines
587 B
Bash

#! /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.3
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