#!/bin/sh # # Return information about the local GD library installation # # Modeled for ports: # audio/mp3plot # devel/cvsgraph # graphics/R-cran-GDD # graphics/a2png # graphics/gdtclft # graphics/lua-gd # graphics/mscgen # graphics/p5-GD # math/gnuplot # net-p2p/amule # net-p2p/mldonkey # science/octopus echo "gdlib-config: warning: this script is deprecated;" \ "please use the pkg-config file instead." >&2 sleep 10 # installation directories prefix=%%PREFIX%% exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include bindir=${exec_prefix}/bin usage() { cat <&2 fi while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --libdir) echo "${libdir}" ;; --includedir) echo "${includedir}" ;; --version) echo "%%PORTVERSION%%" ;; --majorversion) echo %%MAJORVERSION%% ;; --minorversion) echo 2 ;; --revision) echo 5 ;; --ldflags) echo " -L${prefix}/lib -fstack-protector-strong " ;; --libs) echo "-lgd" ;; --cflags|--includes) echo "-I${includedir}" ;; --features) echo GD_GIF GD_GIFANIM GD_OPENPOLYGON GD_ZLIB GD_PNG GD_FREETYPE GD_FONTCONFIG GD_JPEG GD_TIFF GD_WEBP ;; --all) echo "GD library 2.2.5" echo "includedir: ${includedir}" echo "cflags: -I${includedir}" echo "ldflags: -L${prefix}/lib -fstack-protector-strong " echo "libs: -lgd" echo "libdir: $libdir" echo "features: GD_GIF GD_GIFANIM GD_OPENPOLYGON GD_ZLIB GD_PNG GD_FREETYPE GD_FONTCONFIG GD_JPEG GD_TIFF GD_WEBP" ;; *) usage 1 1>&2 ;; esac shift done