Changeset 7547


Ignore:
Timestamp:
Jun 17, 2004, 8:08:20 AM (16 years ago)
Author:
jkh
Message:

Add a macosx-framework variant for those macosx developers who prefer mono
to be installed as an actual system component (complete with symlinks for
the commands in /usr/bin). I might as well also officially take over
maintainership of this since this port has mutated substantially since
I started hacking on it and any bugs that are found are my fault, not mww's.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/mono/Portfile

    r7544 r7547  
    1 # $Id: Portfile,v 1.23 2004/06/17 03:38:19 jkh Exp $
     1# $Id: Portfile,v 1.24 2004/06/17 08:08:20 jkh Exp $
    22
    33PortSystem 1.0
     
    66categories      devel
    77platforms       darwin
    8 maintainers     mww@opendarwin.org
     8maintainers     jkh@opendarwin.org
    99description     Implementation of the .NET Development Framework
    1010long_description        Mono is an effort to create an open source \
     
    2323
    2424configure.env   CPPFLAGS="-I${prefix}/include" \
    25                 LDFLAGS="-L${prefix}/lib"
     25                LDFLAGS="-L${prefix}/lib" \
     26                ACLOCAL_FLAGS="-I ${prefix}/share/aclocal" \
     27                PKG_CONFIG_PATH=${prefix}/lib/pkgconfig:${x11prefix}/lib/pkgconfig
    2628configure.args  --with-gc=included --enable-threads=pthreads
    2729
    28 destroot.destdir        DESTDIR=${destroot}
     30destroot.destdir DESTDIR=${destroot}
     31destroot.env    DYLD_LIBRARY_PATH=${worksrcpath}/mono/mini/.libs:${worksrcpath}/mono/interpreter/.libs:/opt/local/lib:${x11prefix}/lib
    2932
    3033variant darwin {
    3134        configure.args-append   --without-sigaltstack
    32         destroot.env    DYLD_LIBRARY_PATH=${worksrcpath}/mono/mini/.libs:${worksrcpath}/mono/interpreter/.libs
     35}
     36
     37# Build as a framework
     38variant macosx-framework requires darwin {
     39        prefix /Library/Frameworks/Mono.framework/Versions/${version}
    3340}
    3441
     
    4350                ${worksrcpath}/NEWS ${worksrcpath}/README \
    4451                ${destroot}${prefix}/share/doc/${name}
     52        if {[variant_isset macosx-framework]} {
     53                cd ${destroot}/Library/Frameworks/Mono.Framework/Versions
     54                system "ln -s ${version} Current"
     55                cd ..
     56                system "ln -s Versions/Current/lib Libraries"
     57                system "ln -s Versions/Current/include Headers"
     58                system "ln -s Versions/Current/bin Commands"
     59                file mkdir ${destroot}/usr/bin
     60                cd Commands
     61                foreach binfile [glob *] {
     62                        if {[string match *.exe ${binfile}]} continue
     63                        system "ln -s /Library/Frameworks/Mono.Framework/Commands/${binfile} ${destroot}/usr/bin/${binfile}"
     64                }
     65        }
    4566}
Note: See TracChangeset for help on using the changeset viewer.