Ticket #29901: patch-Portfile.2.diff
File patch-Portfile.2.diff, 1.8 KB (added by pixilla (Bradley Giesbrecht), 13 years ago) |
---|
-
Portfile
28 28 29 29 worksrcdir sendmail-${version} 30 30 31 set arch_flags "${configure.cc_archflags}" 32 post-patch { 33 file copy ${worksrcpath}/devtools/OS/Darwin.10.x \ 34 ${worksrcpath}/devtools/Site/site.config.m4 35 reinplace "s|-DDARWIN=100000|-DDARWIN=${os.major}0000|" \ 36 ${worksrcpath}/devtools/Site/site.config.m4 37 if [variant_isset universal] { 38 reinplace "s|\${Extra_CC_Flags}|${arch_flags}|" \ 39 ${worksrcpath}/devtools/Site/site.config.m4 40 } 41 } 42 31 43 use_configure no 32 44 33 platform darwin 10 {34 pre-build {35 file copy ${worksrcpath}/devtools/OS/Darwin.9.x \36 ${worksrcpath}/devtools/Site/site.config.m437 }38 39 }40 41 42 45 build { 43 46 system "cd ${worksrcpath}/${name} && \ 44 47 ./Build -O ${worksrcpath}/macports" … … 46 49 close [open ${worksrcpath}/include/sm_os.h a] 47 50 48 51 system "cd ${worksrcpath}/macports/*/${name} && \ 49 ${configure.compiler} ${configure.cflags} \52 ${configure.compiler} ${configure.cflags} ${arch_flags}\ 50 53 -fno-common -DNOT_SENDMAIL -Dsm_snprintf=snprintf \ 51 54 -D_THREAD_SAFE -DBIND_8_COMPAT -DXP_MT \ 52 55 -I${worksrcpath}/include \ … … 61 64 62 65 set objects [join ${x} " "] 63 66 64 system "${configure.compiler} ${configure.cflags} -dynamiclib \67 system "${configure.compiler} ${configure.cflags} ${arch_flags} -dynamiclib \ 65 68 -install_name ${prefix}/lib/${name}.dylib \ 66 69 -compatibility_version ${major_version} \ 67 70 -current_version ${version} \ … … 75 78 "${destroot}${prefix}/include/" 76 79 file delete "${destroot}${prefix}/include/${name}/milter.h" 77 80 } 81 82 variant universal { 83 set arch_flags "${configure.universal_cflags}" 84 }