source: trunk/dports/devel/openssl/Portfile @ 30017

Last change on this file since 30017 was 30017, checked in by mww@…, 11 years ago

remove 'cd' command (#12903)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# $Id: Portfile 30017 2007-10-18 08:16:28Z mww@macports.org $
2
3PortSystem 1.0
4name                    openssl
5version                 0.9.8f
6platforms               darwin freebsd
7categories              devel security
8maintainers             mww
9homepage                http://www.openssl.org/
10description             OpenSSL SSL/TLS cryptography library
11
12long_description \
13        The OpenSSL Project is a collaborative effort to develop a robust, \
14        commercial-grade, full-featured, and Open Source toolkit implementing \
15        the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security \
16        (TLS v1) protocols as well as a full-strength general purpose \
17        cryptography library.
18
19master_sites    http://www.openssl.org/source/
20checksums               md5 114bf908eb1b293d11d3e6b18a09269f \
21                                sha1 e8716370093b112763ace0c66c06a0d6049e413b \
22                                rmd160 ad0d9d8b238dbede1aa6b76256d11038bd281e05
23
24depends_lib             port:zlib
25
26platform darwin {
27        patchfiles      patch-Makefile.org patch-crypto-Makefile
28}
29
30configure.cmd   ./config
31configure.args  -L${prefix}/lib --openssldir=${prefix}/etc/openssl zlib no-asm no-krb5 shared
32
33platform darwin 6 {
34        depends_lib-append      port:dlcompat
35}
36
37platform darwin 8 {
38        build.args      CC=/usr/bin/gcc-4.0
39}
40
41destroot.destdir        INSTALL_PREFIX=${destroot}
42destroot.args           MANDIR=${prefix}/share/man
43
44test.run                yes
45
46livecheck.check regex
47livecheck.url   ${master_sites}
48livecheck.regex ${name}-(0.9.8\[a-z\])
49
50variant universal {
51   
52# port-specific procedure
53    proc clean {} {
54        system "make clean"
55        foreach f [glob lib*.a lib*.*.*.*.dylib] {
56            file delete ${f}
57        }
58    }
59
60# i386
61    # configure
62    pre-configure {
63        system "./Configure darwin-i386-cc ${configure.pre_args} ${configure.args} && \
64                patch < ${filespath}/patch-Makefiles-universal-i386"
65        reinplace "s|^PROCESSOR=.*|PROCESSOR=|" ${worksrcpath}/Makefile
66    }
67    # build
68    configure {
69        system "make"
70    }
71    # backup, clean up
72    post-configure {
73        # get list of files to be backed up - only needs to be done once
74        fs-traverse file . {
75          if {![string equal [string range [file tail $file] end-1 end] .o]} {
76            set type [exec file -b $file]
77            if {[regexp {(Mach-O|ar archive)} $type]} {
78              global universal_filelist
79              lappend universal_filelist $file
80            }
81          }
82        }
83
84        backup i386
85
86        clean
87    }
88# ppc
89    # configure
90    pre-build {
91        system "./Configure darwin-ppc-cc ${configure.pre_args} ${configure.args} && \
92                patch < ${filespath}/patch-Makefiles-universal-ppc"
93    }
94    # build
95    build {
96        system "make"
97    }
98    # backup
99    post-build {
100        # there's already a list of files to be backed up
101
102        global fileList
103
104        backup ppc
105
106        clean
107    }
108
109# universal
110    pre-destroot {
111        global fileList
112        system "make openssl.pc libssl.pc libcrypto.pc"
113        lipo
114        system "patch < ${filespath}/patch-Makefile-universal-install"
115    }
116    destroot.target     install_docs install_sw
117
118    # the test suite can only be run *after* destrooting
119    test.run            yes
120    test.dir            ${worksrcpath}/test
121    test.target         alltests
122}
Note: See TracBrowser for help on using the repository browser.