Ticket #29901: patch-Portfile.diff
File patch-Portfile.diff, 1.8 KB (added by pixilla (Bradley Giesbrecht), 13 years ago) |
---|
-
Portfile
1 1 # $Id$ 2 2 3 3 PortSystem 1.0 4 5 4 name libmilter 6 5 set major_version 8.14 7 6 version ${major_version}.5 … … 28 27 29 28 worksrcdir sendmail-${version} 30 29 31 use_configure no 30 set configure_universal_cflags "" 31 if [variant_isset universal] { 32 set configure_universal_cflags "${configure.universal_cflags}" 33 } 34 post-patch { 35 file copy ${worksrcpath}/devtools/OS/Darwin.10.x \ 36 ${worksrcpath}/devtools/Site/site.config.m4 37 reinplace "s|-DDARWIN=100000|-DDARWIN=${os.major}0000|" \ 38 ${worksrcpath}/devtools/Site/site.config.m4 39 if [variant_isset universal] { 40 reinplace "s|\${Extra_CC_Flags}|${configure_universal_cflags}|" \ 41 ${worksrcpath}/devtools/Site/site.config.m4 42 } 43 } 32 44 33 platform darwin 10 { 34 pre-build { 35 file copy ${worksrcpath}/devtools/OS/Darwin.9.x \ 36 ${worksrcpath}/devtools/Site/site.config.m4 37 } 38 39 } 40 45 configure {} 41 46 42 47 build { 43 48 system "cd ${worksrcpath}/${name} && \ … … 46 51 close [open ${worksrcpath}/include/sm_os.h a] 47 52 48 53 system "cd ${worksrcpath}/macports/*/${name} && \ 49 ${configure.compiler} ${configure.cflags} \54 ${configure.compiler} ${configure.cflags} ${configure_universal_cflags} \ 50 55 -fno-common -DNOT_SENDMAIL -Dsm_snprintf=snprintf \ 51 56 -D_THREAD_SAFE -DBIND_8_COMPAT -DXP_MT \ 52 57 -I${worksrcpath}/include \ … … 61 66 62 67 set objects [join ${x} " "] 63 68 64 system "${configure.compiler} ${configure.cflags} -dynamiclib \69 system "${configure.compiler} ${configure.cflags} ${configure_universal_cflags} -dynamiclib \ 65 70 -install_name ${prefix}/lib/${name}.dylib \ 66 71 -compatibility_version ${major_version} \ 67 72 -current_version ${version} \