Ticket #34603: Portfile-6.1.2-universal.diff
File Portfile-6.1.2-universal.diff, 3.5 KB (added by lockhart (Thomas Lockhart), 12 years ago) |
---|
-
Portfile
old new 2 2 # $Id: Portfile 93487 2012-05-24 00:41:47Z ryandesign@macports.org $ 3 3 4 4 PortSystem 1.0 5 PortGroup muniversal 1.0 5 # Disable the full universal support since ACE already does most of this 6 # and the extra stuff in muniversal (including making two build trees 7 # and using libtool to merge libraries) does not work for this case. 8 # PortGroup muniversal 1.0 6 9 7 10 name ace 8 11 set name_package ACE 9 12 version 6.1.2 13 revision 1 10 14 distname ${name_package}-${version} 11 15 categories devel 12 16 maintainers fourpalms.org:lockhart openmaintainer … … 30 34 homepage http://www.cs.wustl.edu/~schmidt/ACE.html 31 35 master_sites http://download.dre.vanderbilt.edu/previous_versions 32 36 37 universal_variant yes 38 39 variant ssl description {Enable SSL} { 40 depends_lib port:openssl 41 } 42 33 43 use_bzip2 yes 34 44 35 45 worksrcdir ACE_wrappers … … 57 67 } 58 68 } 59 69 } 70 set libenv DYLD_LIBRARY_PATH=${worksrcpath}/lib 71 set aceenv ACE_ROOT=${worksrcpath} 72 set makearg INSTALL_PREFIX=${prefix} 73 set subdirs { . } 60 74 61 75 post-patch { 62 76 reinplace "s|@MACOSX@|${os.name}|g" \ 63 77 ${worksrcpath}/ace/config.h \ 64 78 ${worksrcpath}/include/makeinclude/platform_macros.GNU 79 # disable the assignment for compilers in lion and use our environment instead 80 reinplace "s|^\\(CXX:=.*\\)|# \\1|g" \ 81 ${worksrcpath}/include/makeinclude/platform_macosx_lion.GNU 82 reinplace "s|^\\(CC:=.*\\)|# \\1|g" \ 83 ${worksrcpath}/include/makeinclude/platform_macosx_lion.GNU 84 85 if {[variant_exists universal] && [variant_isset universal]} { 86 ui_debug "Enabling a universal build" 87 reinplace "s|buildbits=64|buildbits=universal|g" \ 88 ${worksrcpath}/include/makeinclude/platform_macros.GNU 89 # do not set universal=1 which tries i386 and PPC but fails 90 reinplace "s|universal=0|universal=0|g" \ 91 ${worksrcpath}/include/makeinclude/platform_macros.GNU 92 } 93 94 if {[variant_exists ssl] && [variant_isset ssl]} { 95 ui_debug "Enabling SSL" 96 reinplace "s|ssl=0|ssl=1|g" \ 97 ${worksrcpath}/include/makeinclude/platform_macros.GNU 98 } 65 99 } 66 100 101 depends_lib path:bin/perl:perl5 102 67 103 use_configure no 68 104 69 105 use_parallel_build no 70 106 71 build.env-append "DYLD_LIBRARY_PATH=${worksrcpath}/lib" 72 build.env-append "ACE_ROOT=${worksrcpath}" 73 build.env-append "INSTALL_PREFIX=${prefix}" 74 75 destroot.env-append "DYLD_LIBRARY_PATH=${worksrcpath}/lib" 76 destroot.env-append "ACE_ROOT=${worksrcpath}" 77 destroot.args-append "INSTALL_PREFIX=${prefix}" 107 build.env "${libenv} ${aceenv}" 108 build.args-append CC=${configure.cc} \ 109 CXX=${configure.cxx} \ 110 CPP=${configure.cpp} 111 build.pre_args ${makearg} all 112 build { 113 foreach {subdir} $subdirs { 114 build.dir ${worksrcpath}/${subdir} 115 command_exec build 116 } 117 } 118 119 destroot.env "${libenv} ${aceenv}" 120 destroot.pre_args ${makearg} install 121 destroot { 122 foreach {subdir} $subdirs { 123 destroot.dir ${worksrcpath}/${subdir} 124 command_exec destroot 125 } 126 } 78 127 79 128 livecheck.url ${master_sites} 80 129 livecheck.regex ${name_package}-(\\d+\[0-9a-z.\]*)${extract.suffix}