[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:07:28 PST 2008


#17253: libtasn1 no longer provides libtasn1-config, let's provide one until
depending packages are fixed
-----------------------------+----------------------------------------------
 Reporter:  bugs at capelis.dj  |       Owner:  macports-tickets at lists.macosforge.org
     Type:  enhancement      |      Status:  new                                  
 Priority:  Normal           |   Milestone:  Port Enhancements                    
Component:  ports            |     Version:                                       
 Keywords:                   |        Port:  libtasn1                             
-----------------------------+----------------------------------------------
 See [41968] and #17197 for examples where this is causing problems.
 Since it will take some time to find all the broken packages and make them
 not broken, perhaps the following script should be installed into
 /opt/local/bin/libtasn1-config and set executable as part of the libtasn1
 installation:

 {{{
 #!/bin/bash

 if [[ $1 == "--libs" ]]; then
         echo "-L/opt/local/lib -ltasn1"
 fi
 if [[ $1 == "--cflags" ]]; then
         echo "-I/opt/local/include"
 fi
 if [[ $1 == "--version" ]]; then
         echo "1.6"
 fi
 }}}

 This will allow things to work until ports get tracked down and updated.

 Here's a better version I didn't test as well that should respect people's
 prefixes:
 {{{
 #!/bin/bash
 PREFIX=`cat /opt/local/etc/macports/macports.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>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list