[MacPorts] #17253: libtasn1 no longer provides libtasn1-config, let's provide one until depending packages are fixed
MacPorts
noreply at macports.org
Fri Nov 14 18:33:50 PST 2008
#17253: libtasn1 no longer provides libtasn1-config, let's provide one until
depending packages are fixed
------------------------------+---------------------------------------------
Reporter: bugs at capelis.dj | Owner: sfiera at macports.org
Type: enhancement | Status: new
Priority: Normal | Milestone: Port Enhancements
Component: ports | Version:
Resolution: | Keywords:
Port: libtasn1 |
------------------------------+---------------------------------------------
Comment(by bugs at capelis.dj):
Actually this one is substantially better as it will try and find the
actual configuration file instead of just assuming it's at the standard
prefix. The advantage to this being that we can actually try and actually
respect prefixes instead of just pretending to. :)
{{{
#!/bin/bash
IFS=":"
for dir in $PATH; do
if [ -e `echo ${dir}/etc/macports/macports.conf | sed s/\\\/bin//` ]; then
CONF=`echo ${dir}/etc/macports/macports.conf | sed s/\\\/bin//`
fi
done
if [ ! -e ${CONF} ]; then
echo "No configuration for macports found"
exit
fi
PREFIX=`cat ${CONF} | grep ^prefix | cut -f 2- | xargs -n 1 echo`
if [[ $1 == "--libs" ]]; then
echo "-L${PREFIX}/lib -ltasn1"
fi
if [[ $1 == "--cflags" ]]; then
echo "-I${PREFIX}/include"
fi
if [[ $1 == "--version" ]]; then
echo "1.6"
fi
}}}
--
Ticket URL: <http://trac.macports.org/ticket/17253#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list