[23465] trunk/dports/devel/openssl/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Sun Apr 1 11:55:35 PDT 2007


Revision: 23465
          http://trac.macosforge.org/projects/macports/changeset/23465
Author:   pipping at macports.org
Date:     2007-04-01 11:55:34 -0700 (Sun, 01 Apr 2007)

Log Message:
-----------
 * remove traces of a universal variant

an experimental patch to re-add this functionality will be made available at

http://trac.macports.org/projects/macports/wiki/UniversalOpenssl

Modified Paths:
--------------
    trunk/dports/devel/openssl/Portfile

Modified: trunk/dports/devel/openssl/Portfile
===================================================================
--- trunk/dports/devel/openssl/Portfile	2007-04-01 18:53:45 UTC (rev 23464)
+++ trunk/dports/devel/openssl/Portfile	2007-04-01 18:55:34 UTC (rev 23465)
@@ -46,99 +46,3 @@
 livecheck.check	regex
 livecheck.url	${master_sites}
 livecheck.regex	${name}-(0.9.8\[a-z\])
-
-variant universal {
-
-    post-configure {
-        cd ${worksrcpath}
-
-        # prepare building for ppc
-        if [variant_isset darwin_i386] {
-            reinplace "s|darwin-i386-cc|darwin-ppc-cc|g" Makefile
-            reinplace "s| 386||g" Makefile
-            reinplace "s|DL_ENDIAN|DB_ENDIAN|g" Makefile
-            reinplace "s|-O3 -fomit-frame-pointer -fno-common|-O3 -DB_ENDIAN|g" Makefile
-        }
-        reinplace "s|-O3 -DB_ENDIAN$|-O3 -DB_ENDIAN -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk|" Makefile
-        reinplace "s|^LDFLAGS=.*|LDFLAGS=-arch ppc|g" Makefile.shared
-    }
-
-    build {
-        cd ${worksrcpath}
-
-        # build for ppc
-        system [command build]
-
-        # determine which files will need to be lipo'ed together
-        set lList {}
-        foreach s {0.9.8.dylib a} {
-            foreach n {crypto ssl} {
-                lappend lList lib${n}.${s}
-            }
-        }
-        set eList {}
-        foreach f [glob engines/*.so] {
-            lappend eList ${f}
-        }
-        set bList apps/openssl
-        set tList {}
-        foreach f [glob test/*test] {
-            lappend tList ${f}
-        }
-        lappend tList test/sha256t
-        lappend tList test/sha512t
-
-        # define a backup procedure to a temporary location
-        proc backup {bakPath} {
-            xinstall -d ${bakPath}    
-            foreach a {l e b t} b {. engines apps test} {
-                upvar 1 [set a]List [set a]List 
-                xinstall -d ${bakPath}/$b
-                foreach n [set [set a]List] {
-                    xinstall ${n} ${bakPath}/${b}
-                }
-            }
-        }
-        # backup the output of the first run (ppc)
-        set ppcPath ${workpath}/ppc
-        backup ${ppcPath}
-
-        # cleanup the worksrcdir
-        system "make clean"
-        foreach f [glob lib*.0.9.8.dylib] {
-            delete ${f}
-        }
-
-        # prepare building for i386
-        reinplace "s|darwin-ppc-cc|darwin-i386-cc|g" ${worksrcpath}/Makefile
-        reinplace "s|DB_ENDIAN|DL_ENDIAN|g" ${worksrcpath}/Makefile
-        reinplace "s|-arch ppc|-arch i386|g" ${worksrcpath}/Makefile
-        reinplace "s|-arch ppc|-arch i386|g" Makefile.shared
-
-        # build for i386
-        system [command build]
-
-        # backup the output of the second run (i386)
-        set i386Path ${workpath}/i386
-        backup ${i386Path}
-
-        # run lipo on the output of both runs
-        foreach n {l e b t} {
-            foreach m [set [set n]List] {
-                delete ${m}
-                system "lipo \
-                -arch i386 ${i386Path}/${m} \
-                -arch  ppc  ${ppcPath}/${m} \
-                -create -output ${m}"
-            }
-        }
-
-        # make sure installing won't rebuild
-        reinplace "s|install: all |install: |g" Makefile
-    }
-
-    # make sure we don't build a third time
-    post-build {}
-}
-
-platform darwin i386 {}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070401/5696eb6d/attachment.html


More information about the macports-changes mailing list