Ticket #50290: Portfile_84.diff
File Portfile_84.diff, 3.0 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 9 years ago) |
---|
-
Portfile
old new 3 3 4 4 PortSystem 1.0 5 5 PortGroup select 1.0 6 PortGroup muniversal 1.0 6 7 7 8 name postgresql84 8 9 version 8.4.22 … … 56 57 --with-ossp-uuid 57 58 configure.cppflags-append -I${prefix}/include/ossp 58 59 59 if {[variant_isset universal]} {60 post-configure {61 system "cd ${worksrcpath}/src/include \62 && ed - pg_config.h < ${filespath}/pg_config.h.ed \63 && touch stamp-h"64 system "cd ${worksrcpath}/src/interfaces/ecpg/include \65 && ed - ecpg_config.h < ${filespath}/ecpg_config.h.ed \66 && touch stamp-h"67 }68 }69 70 60 build.type gnu 71 61 build.target 72 62 … … 87 77 # prepare the contrib modules 88 78 set contribs {} 89 79 90 post-build { 80 if { ![variant_isset universal] } { 81 post-build { 91 82 set contribdirs [glob -nocomplain -type d ${worksrcpath}/contrib/*] 92 83 foreach d [lsort $contribdirs] { 93 84 if { [file exists $d/Makefile] } { … … 97 88 foreach contrib ${contribs} { 98 89 system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}" 99 90 } 91 } 92 } else { 93 post-build { 94 foreach arch ${universal_archs_to_use} { 95 set contribdirs [glob -nocomplain -type d ${worksrcpath}-${arch}/contrib/*] 96 foreach d [lsort $contribdirs] { 97 if { [file exists $d/Makefile] } { 98 lappend contribs [file tail $d] 99 } 100 } 101 foreach contrib ${contribs} { 102 system "cd ${worksrcpath}-${arch}/contrib/${contrib}/ && ${build.cmd}" 103 } 104 } 105 } 100 106 } 101 107 102 post-destroot { 108 if { ![variant_isset universal] } { 109 post-destroot { 103 110 foreach contrib ${contribs} { 104 111 system "echo contrib: \"${contrib}\"" 105 112 system "cd ${worksrcpath}/contrib/${contrib}/ && \ 106 113 ${destroot.cmd} install ${destroot.destdir} && touch DONE" 107 114 } 115 116 reinplace -E "s#-arch\[\[:space:\]\]+\[\[:alnum:\]_\]+##g" \ 117 ${destroot}${prefix}/lib/postgresql84/pgxs/src/Makefile.global 118 } 119 } else { 120 merger-post-destroot { 121 foreach arch ${universal_archs_to_use} { 122 foreach contrib ${contribs} { 123 system "echo contrib: \"${contrib}\"" 124 system "cd ${worksrcpath}-${arch}/contrib/${contrib}/ && \ 125 ${destroot.cmd} install ${destroot.destdir}-${arch} && touch DONE" 126 } 127 128 reinplace -E "s#-arch\[\[:space:\]\]+\[\[:alnum:\]_\]+##g" \ 129 ${destroot}-${arch}${prefix}/lib/postgresql84/pgxs/src/Makefile.global 130 131 reinplace "s#${worksrcpath}-${arch}#${worksrcpath}#g" \ 132 ${destroot}-${arch}${prefix}/lib/${name}/pgxs/src/Makefile.global 133 } 134 } 135 } 136 137 post-destroot { 108 138 system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql84" 109 139 file delete -force ${destroot}${prefix}/share/doc/postgresql \ 110 140 ${destroot}${prefix}/share/man … … 144 174 post-install { 145 175 ui_msg "\nTo use the postgresql server, install the postgresql84-server port" 146 176 } 147