Ticket #34616: Portfile-6.1.2-universal.diff
File Portfile-6.1.2-universal.diff, 3.2 KB (added by lockhart (Thomas Lockhart), 12 years ago) |
---|
-
Portfile
old new 2 2 # $Id: Portfile 93489 2012-05-24 05:19:35Z ryandesign@macports.org $ 3 3 4 4 # MacPorts specification for the TAO CORBA package. 5 # Includes ACE even though the libACE packageis available5 # Includes ACE even though the ace port is available 6 6 # since TAO can not be built against an installed version of ACE. 7 7 # Thanks to the boost port maintainers for a great example to follow. 8 8 # Thomas Lockhart 9 9 # 2012-02-06 10 10 11 11 PortSystem 1.0 12 PortGroup muniversal 1.0 12 # Disable the full universal support since TAO already does most of this 13 # and the extra stuff in muniversal (including making two build trees 14 # and using libtool to merge libraries) does not work for this case. 15 # PortGroup muniversal 1.0 13 16 14 17 name tao 15 18 set name_package ACE+TAO 16 19 version 6.1.2 20 revision 1 17 21 distname ${name_package}-${version} 18 22 categories devel 19 23 platforms darwin … … 34 38 master_sites http://download.dre.vanderbilt.edu/previous_versions \ 35 39 ftp://download.dre.vanderbilt.edu/previous_versions 36 40 41 universal_variant yes 42 43 variant ssl description {Enable SSL} { 44 depends_lib port:openssl 45 } 46 37 47 use_bzip2 yes 38 48 39 49 worksrcdir ACE_wrappers … … 81 91 reinplace "s|@MACOSX@|${os.name}|g" \ 82 92 ${worksrcpath}/ace/config.h \ 83 93 ${worksrcpath}/include/makeinclude/platform_macros.GNU 94 # disable the assignment for compilers in lion and use our environment instead 95 reinplace "s|^\\(CXX:=.*\\)|# \\1|g" \ 96 ${worksrcpath}/include/makeinclude/platform_macosx_lion.GNU 97 reinplace "s|^\\(CC:=.*\\)|# \\1|g" \ 98 ${worksrcpath}/include/makeinclude/platform_macosx_lion.GNU 99 100 if {[variant_exists universal] && [variant_isset universal]} { 101 ui_debug "Enabling a universal build" 102 reinplace "s|buildbits=64|buildbits=universal|g" \ 103 ${worksrcpath}/include/makeinclude/platform_macros.GNU 104 # do not set universal=1 which tries i386 and PPC but fails 105 reinplace "s|universal=0|universal=0|g" \ 106 ${worksrcpath}/include/makeinclude/platform_macros.GNU 107 } 108 109 if {[variant_exists ssl] && [variant_isset ssl]} { 110 ui_debug "Enabling SSL" 111 reinplace "s|ssl=0|ssl=1|g" \ 112 ${worksrcpath}/include/makeinclude/platform_macros.GNU 113 } 114 84 115 reinplace "s|@PREFIX@|${prefix}|g" \ 85 116 ${worksrcpath}/org.macports.${taodaemon}.plist 86 117 reinplace "s|@USER@|${taouser}|g" \ … … 104 135 build.pre_args ${makearg} all 105 136 build { 106 137 foreach {subdir} $subdirs { 107 build.dir 138 build.dir ${worksrcpath}/${subdir} 108 139 command_exec build 109 140 } 110 141 } … … 115 146 destroot { 116 147 xinstall -d -o ${taouser} -m 0755 ${logdir} 117 148 foreach {subdir} $subdirs { 118 destroot.dir 149 destroot.dir ${worksrcpath}/${subdir} 119 150 command_exec destroot 120 151 } 121 152 # Files required to build CosEvent classes but not installed