libpython.dylib sym link ?
Chris Jones
jonesc at hep.phy.cam.ac.uk
Mon Sep 12 13:32:09 PDT 2011
Hi,
I am trying to fix a problem with the root port and the python26 variant. The code for the variant is below.
As far as I can tell, the configure step for the build fails because the python-libdir directory does not have a lib libpython.dylib file. It only has the versioned file libpython2.6.dylib.
Chris-Jones-Macbook-Pro ~ > ls /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config/
Makefile Setup.config config.c install-sh libpython2.6.dylib python.o
Setup Setup.local config.c.in libpython2.6.a makesetup
Is there anyway I can create this versionless version, via a sym link for instance (which is how the /Developer/SDKs areas handle this) ? Or any other advice on how to fix this ?
cheers Chris
variant python26 description {Builds port with python 2.6 support} {
configure.args-delete --disable-python
configure.args-append --enable-python \
--with-python-incdir="${prefix}/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6" \
--with-python-libdir="${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config"
depends_lib-append port:python26
post-destroot {
file mkdir ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
move ${destroot}${prefix}/lib/root/ROOT.py ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
move ${destroot}${prefix}/lib/root/ROOT.pyc ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
move ${destroot}${prefix}/lib/root/ROOT.pyo ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
move ${destroot}${prefix}/lib/root/ROOTwriter.py ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
move ${destroot}${prefix}/lib/root/python/genreflex ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
move ${destroot}${prefix}/lib/root/writer.py ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2966 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20110912/c47ff9e8/attachment.bin>
More information about the macports-users
mailing list