Ticket #14619: combined_updated_universal.patch
File combined_updated_universal.patch, 2.8 KB (added by kevin@…, 15 years ago) |
---|
-
opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/postgresql83/Portfile
livecheck.regex (8.3.\[0-9\]+) 63 63 64 64 set contribs "adminpack dblink fuzzystrmatch lo uuid-ossp pg_buffercache pg_trgm pgcrypto tsearch2 vacuumlo xml2" 65 65 66 pre-build { 67 if {[variant_isset universal]} { 68 copy ${portpath}/files/ld.sh ${worksrcpath}/ld.sh 69 70 if {![info exists universal_archs]} { 71 set universal_archs {i386 x86_64 ppc ppc64} 72 } 73 74 set out [open "${worksrcpath}/ld.sh" "a"] 75 foreach arch $universal_archs { 76 puts ${out} "/usr/bin/ld -r -arch ${arch} -o \${output_name}.${arch} \${newargs}" 77 } 78 # 79 puts -nonewline ${out} "/usr/bin/lipo -create " 80 foreach arch $universal_archs { 81 puts -nonewline ${out} "\${output_name}.${arch} " 82 } 83 # 84 puts ${out} "-output \${output_name}" 85 close ${out} 86 system "chmod +x ${worksrcpath}/ld.sh" 87 88 system "cd ${worksrcpath}/src && mv Makefile.global Makefile.global.orig && sed 's#LD =.*#LD = ${worksrcpath}/ld.sh#' Makefile.global.orig > Makefile.global" 89 90 system "cd ${worksrcpath} && patch -p0 < ${portpath}/files/patch_pg_config_h" 91 } 92 } 93 66 94 post-build { 67 95 foreach contrib ${contribs} { 68 96 system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}" … … variant tcl description {add Tcl support} { 101 129 configure.env-append TCLSH=${prefix}/bin/tclsh 102 130 } 103 131 132 variant gcc42 description {compile with gcc42} { 133 configure.cc /usr/bin/gcc-4.2 134 } 135 104 136 post-install { 105 137 ui_msg "\nTo use the postgresql server, install the postgresql83-server port" 106 138 } -
/
old new 1 #!/bin/sh 2 newargs="" 3 output_flag=0 4 output_name="" 5 6 for arg in $@ 7 do 8 if [ "$output_flag" -eq "1" ] 9 then 10 output_flag=2 11 output_name=$arg 12 13 elif [ $arg == "-o" ] && [ "$output_flag" -eq "0" ] 14 then 15 output_flag=1 16 17 elif `echo $arg | grep -E -e "^-o" > /dev/null` && [ "$output_flag" -eq "0" ] 18 then 19 output_name=`echo $arg | sed "s/^-o//"` 20 output_flag=2 21 22 else 23 newargs+="$arg " 24 fi 25 done 26 -
/
old new 1 --- src/include/pg_config.h.orig 2008-12-16 21:32:17.000000000 +0100 2 +++ src/include/pg_config.h 2008-12-16 21:33:05.000000000 +0100 3 @@ -642,7 +642,11 @@ 4 #define SIZEOF_SIZE_T 8 5 6 /* The size of a `unsigned long', as computed by sizeof. */ 7 -#define SIZEOF_UNSIGNED_LONG 8 8 +#if defined (__LP64__) 9 + #define SIZEOF_UNSIGNED_LONG 8 10 +#else 11 + #define SIZEOF_UNSIGNED_LONG 4 12 +#endif 13 14 /* Define to 1 if you have the ANSI C header files. */ 15 #define STDC_HEADERS 1