From e28cb93e0473251b75c9c33f08203eaf61cc51e4 Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Wed, 24 Jan 2018 20:58:21 +0000 Subject: - Provide a compatibility cppunit-config. Upstream intends scripts to use pkg-config now, but there are plenty of old cppunit.m4 files that expect to find cppunit-config still, including several ports. PR: 220162 Reported by: Greg V --- devel/cppunit/files/cppunit-config.in | 98 +++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 devel/cppunit/files/cppunit-config.in (limited to 'devel/cppunit/files/cppunit-config.in') diff --git a/devel/cppunit/files/cppunit-config.in b/devel/cppunit/files/cppunit-config.in new file mode 100644 index 000000000000..b4666c182516 --- /dev/null +++ b/devel/cppunit/files/cppunit-config.in @@ -0,0 +1,98 @@ +#!/bin/sh + +prefix=%%PREFIX%% +exec_prefix=%%PREFIX%% +exec_prefix_set=no +includedir=%%PREFIX%%/include + +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 + --prefix=*) + prefix=$optarg + if test $exec_prefix_set = no ; then + exec_prefix=$optarg + fi + ;; + --prefix) + echo_prefix=yes + ;; + --exec-prefix=*) + exec_prefix=$optarg + exec_prefix_set=yes + ;; + --exec-prefix) + echo_exec_prefix=yes + ;; + --version) + echo %%DISTVERSION%% + ;; + --help) + usage 0 + ;; + --cflags) + echo_cflags=yes + ;; + --libs) + echo_libs=yes + ;; + *) + usage 1 1>&2 + ;; + esac + shift +done + +if test "$echo_prefix" = "yes"; then + echo $prefix +fi + +if test "$echo_exec_prefix" = "yes"; then + echo $exec_prefix +fi + +if test "$echo_cflags" = "yes"; then + if test "$includedir" != "/usr/include" ; then + echo -I$includedir + fi +fi + +if test "$echo_libs" = "yes"; then + if test %%PREFIX%%/lib != /usr/lib ; then + my_linker_flags="-L%%PREFIX%%/lib" + fi + echo ${my_linker_flags} -lcppunit +fi + + + + -- cgit v1.2.3