Changeset 82942
- Timestamp:
- 08/22/11 04:24:21 (4 years ago)
- Location:
- trunk/dports/lang/pypy
- Files:
-
- 2 edited
-
Portfile (modified) (4 diffs)
-
files/darwin.py.diff (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/lang/pypy/Portfile
r78296 r82942 5 5 6 6 name pypy 7 version 1. 57 version 1.6 8 8 categories lang python devel 9 9 license MIT PSF … … 18 18 19 19 homepage http://pypy.org/ 20 master_sites http ://pypy.org/download/20 master_sites https://bitbucket.org/pypy/pypy/get/ 21 21 use_bzip2 yes 22 distname ${name}-${version}-src 22 distname release-${version} 23 worksrcdir ${name}-${name}-release-${version} 23 24 24 checksums md5 cb9ada2c50666318c3a2863da1fbe487 \ 25 sha1 0ebcecaa4c725bf1a48272033d9f429b8a82b7e1 \ 26 rmd160 9c7d479ac5cd51c3789f3db99674b4c2936d88e0 25 checksums rmd160 74170120f53d13ed931b56ae8dbf1a27ec7649d3 \ 26 sha256 83060354ab1ea2a068e28ab2a61f0d17020e20530a3f83a46f4af0bb0751acac 27 27 28 28 depends_build port:pkgconfig … … 31 31 32 32 patchfiles darwin.py.diff 33 post-patch {34 reinplace "s|__MDT__|${macosx_deployment_target}|g" ${worksrcpath}/pypy/translator/platform/darwin.py35 }36 33 37 34 use_configure no 38 35 39 platform darwin 10 { 40 # 4.2 is known not to work, sigh... 36 # use pypy to build if it's already installed 37 # XXX 1.5 segfaults building 1.6 38 #if {[file executable ${prefix}/lib/pypy/pypy-c]} { 39 # build.cmd ${prefix}/lib/pypy/pypy-c 40 #} else { 41 build.cmd ${prefix}/bin/python2.7 42 #} 43 platform darwin { 44 # gcc-4.2 and llvm are known not to work, sigh... 41 45 configure.compiler gcc-4.0 42 46 # and Xcode 4 doesn't have gcc-4.0... 43 pre-fetch { 44 if {![file executable ${configure.cc}]} { 45 ui_error "$name must be compiled with ${configure.compiler}" 46 error "${configure.cc} not found" 47 } 47 if {![file executable ${configure.cc}]} { 48 depends_lib-append port:gcc45 49 configure.compiler macports-gcc-4.5 50 } 51 # use arch -foo if available 52 if {${os.major} >= 9} { 53 build.cmd arch -${build_arch} ${build.cmd} 48 54 } 49 55 } 50 51 56 build.dir ${worksrcpath}/pypy/translator/goal 52 # use pypy to build if it's already installed53 if {[file executable ${prefix}/lib/pypy/pypy-c]} {54 build.cmd ${prefix}/lib/pypy/pypy-c55 } else {56 build.cmd ${prefix}/bin/python2.757 }58 57 build.args --batch --cc=${configure.cc} --opt=jit \ 59 58 --make-jobs=${build.jobs} \ … … 66 65 build.args-delete --opt=jit 67 66 build.args-append --opt=3 68 }69 70 platform darwin {71 # use arch -foo if available72 if {${os.major} >= 9} {73 build.cmd arch -${build_arch} ${build.cmd}74 }75 67 } 76 68 -
trunk/dports/lang/pypy/files/darwin.py.diff
r78296 r82942 16 16 def check___thread(self): 17 17 # currently __thread is not supported by Darwin gccs 18 @@ -68,12 +70,12 @@19 20 class Darwin_i386(Darwin):21 name = "darwin_i386"22 - link_flags = ('-arch', 'i386', '-mmacosx-version-min=10.4')23 + link_flags = ('-arch', 'i386', '-mmacosx-version-min=__MDT__')24 cflags = ('-arch', 'i386', '-O3', '-fomit-frame-pointer',25 - '-mmacosx-version-min=10.4')26 + '-mmacosx-version-min=__MDT__')27 28 class Darwin_x86_64(Darwin):29 name = "darwin_x86_64"30 - link_flags = ('-arch', 'x86_64', '-mmacosx-version-min=10.4')31 + link_flags = ('-arch', 'x86_64', '-mmacosx-version-min=__MDT__')32 cflags = ('-arch', 'x86_64', '-O3', '-fomit-frame-pointer',33 - '-mmacosx-version-min=10.4')34 + '-mmacosx-version-min=__MDT__')
Note: See TracChangeset
for help on using the changeset viewer.

