diff --unidirectional-new-file -ru -x PortIndex ports.orig/devel/openssl/Portfile ports.test/devel/openssl/Portfile
|
old
|
new
|
|
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | configure { |
| | 71 | # Save configure.universal_archs because we modify it before |
| | 72 | # each invocation of Configure. |
| | 73 | set tmp_universal_archs ${configure.universal_archs} |
| 71 | 74 | foreach arch ${universal_archs} { |
| | 75 | # We configure for one arch at a time. |
| | 76 | configure.universal_archs ${arch} |
| 72 | 77 | if { [string first 64 $arch] == -1 } { |
| 73 | 78 | set my_cc "darwin-${arch}-cc" |
| 74 | 79 | } else { |
| … |
… |
|
| 79 | 84 | } |
| 80 | 85 | } |
| 81 | 86 | system "cd ${workpath}/${arch} && ./Configure ${my_cc} ${configure.pre_args} ${configure.args}" |
| | 87 | reinplace "s|^\\(CFLAG=.*\\)|\\1 ${configure.cflags} ${configure.universal_cflags}|" \ |
| | 88 | ${workpath}/${arch}/Makefile |
| | 89 | reinplace "s|^\\(SHARED_LDFLAGS=.*\\)|\\1 ${configure.ldflags} ${configure.universal_ldflags}|" \ |
| | 90 | ${workpath}/${arch}/Makefile \ |
| | 91 | ${workpath}/${arch}/Makefile.shared |
| 82 | 92 | } |
| | 93 | # Restore configure.universal_archs. |
| | 94 | configure.universal_archs $tmp_universal_archs |
| 83 | 95 | } |
| 84 | 96 | |
| 85 | 97 | build { |
diff --unidirectional-new-file -ru -x PortIndex ports.orig/graphics/cairo/Portfile ports.test/graphics/cairo/Portfile
|
old
|
new
|
|
| 67 | 67 | --enable-xlib-xrender \ |
| 68 | 68 | --with-x |
| 69 | 69 | |
| | 70 | # This block helps us link correctly and setup our pc files correctly when we are |
| | 71 | # +system_x11 and x11prefix is somewhere non-standard |
| | 72 | if { ![file exists ${prefix}/lib/pkgconfig/x11.pc] && ![file exists ${x11prefix}/lib/pkgconfig/x11.pc] } { |
| | 73 | # AC_X_PATH blindly asks xmkmf where X11 is, and it always uses /usr/X11R6. |
| | 74 | # These next three lines should cause AC_X_PATH to let us setup our CPPFLAGS |
| | 75 | # and LDFLAGS without interference |
| | 76 | configure.args-append --x-include=${prefix}/include --x-lib=${prefix}/lib |
| | 77 | configure.cppflags-append -I${x11prefix}/include |
| | 78 | configure.ldflags-append -L${x11prefix}/lib |
| | 79 | |
| | 80 | # And this will similarly get ports that use pkgconfig to find our pkgconfig-less libX11 |
| | 81 | post-destroot { |
| | 82 | foreach pc [glob ${destroot}${prefix}/lib/pkgconfig/*.pc] { |
| | 83 | reinplace "s:-lX11:-L${prefix}/lib -L${x11prefix}/lib -lX11:g" ${pc} |
| | 84 | } |
| | 85 | } |
| | 86 | } |
| | 87 | |
| 70 | 88 | variant glitz conflicts no_x11 description {Add glitz graphics interface} { |
| 71 | 89 | depends_lib-append \ |
| 72 | 90 | port:glitz |
| … |
… |
|
| 149 | 167 | } |
| 150 | 168 | |
| 151 | 169 | configure { |
| | 170 | # Save configure.universal_archs because we modify it before each |
| | 171 | # invocation of Configure. |
| | 172 | set tmp_universal_archs ${configure.universal_archs} |
| 152 | 173 | foreach arch ${universal_archs} { |
| 153 | | set my_arch_flag "-arch ${arch}" |
| 154 | | set my_cflags "${configure.cflags} -isysroot ${sysroot} ${my_arch_flag}" |
| 155 | | set my_ldflags "${configure.ldflags} ${my_arch_flag}" |
| 156 | | system "cd ${workpath}/${arch} && CFLAGS=\"${my_cflags}\" CXXFLAGS=\"${my_cflags}\" LDFLAGS=\"${my_ldflags}\" ${configure.cmd} ${configure.pre_args} ${configure.args}" |
| | 174 | # We configure for one arch at a time. |
| | 175 | configure.universal_archs ${arch} |
| | 176 | system "cd ${workpath}/${arch} && CPPFLAGS=\"${configure.cppflags} ${configure.universal_cppflags}\" CFLAGS=\"${configure.cflags} ${configure.universal_cflags}\" CXXFLAGS=\"${configure.cflags} ${configure.universal_cxxflags}\" LDFLAGS=\"${configure.ldflags} ${configure.universal_ldflags}\" ${configure.cmd} ${configure.pre_args} ${configure.args} ${configure.universal_args}" |
| 157 | 177 | } |
| | 178 | # Restore configure.universal_archs. |
| | 179 | configure.universal_archs $tmp_universal_archs |
| 158 | 180 | } |
| 159 | 181 | |
| 160 | 182 | build { |
diff --unidirectional-new-file -ru -x PortIndex ports.orig/python/py25-py2app-devel/Portfile ports.test/python/py25-py2app-devel/Portfile
|
old
|
new
|
|
| 26 | 26 | |
| 27 | 27 | depends_lib-append port:py25-setuptools \ |
| 28 | 28 | port:py25-altgraph \ |
| 29 | | path:${prefix}${apymacholibfile}:py25-macholib \ |
| | 29 | port:py25-macholib-devel \ |
| 30 | 30 | port:py25-modulegraph-devel \ |
| 31 | 31 | port:py25-bdist_mpkg |
| 32 | 32 | |
diff --unidirectional-new-file -ru -x PortIndex ports.orig/x11/gtk2/Portfile ports.test/x11/gtk2/Portfile
|
old
|
new
|
|
| 105 | 105 | system "${prefix}/bin/gdk-pixbuf-query-loaders >${prefix}/etc/gtk-2.0/gdk-pixbuf.loaders" |
| 106 | 106 | } |
| 107 | 107 | |
| | 108 | # This block helps us link correctly and setup our pc files correctly when we are |
| | 109 | # +system_x11 and x11prefix is somewhere non-standard |
| | 110 | if { ![file exists ${prefix}/lib/pkgconfig/x11.pc] && ![file exists ${x11prefix}/lib/pkgconfig/x11.pc] } { |
| | 111 | # AC_X_PATH blindly asks xmkmf where X11 is, and it always uses /usr/X11R6. |
| | 112 | # These next three lines should cause AC_X_PATH to let us setup our CPPFLAGS |
| | 113 | # and LDFLAGS without interference |
| | 114 | configure.args-append --x-include=${prefix}/include --x-lib=${prefix}/lib |
| | 115 | configure.cppflags-append -I${x11prefix}/include |
| | 116 | configure.ldflags-append -L${x11prefix}/lib |
| | 117 | |
| | 118 | # And this will similarly get ports that use pkgconfig to find our pkgconfig-less libX11 |
| | 119 | post-destroot { |
| | 120 | foreach pc [glob ${destroot}${prefix}/lib/pkgconfig/*.pc] { |
| | 121 | reinplace "s:-lX11:-L${prefix}/lib -L${x11prefix}/lib -lX11:g" ${pc} |
| | 122 | } |
| | 123 | } |
| | 124 | } |
| | 125 | |
| 108 | 126 | platform darwin 7 { |
| 109 | 127 | depends_build-append port:cups-headers |
| 110 | 128 | } |
diff --unidirectional-new-file -ru -x PortIndex ports.orig/x11/pango/Portfile ports.test/x11/pango/Portfile
|
old
|
new
|
|
| 58 | 58 | |
| 59 | 59 | configure.ldflags-append \ |
| 60 | 60 | -no-undefined \ |
| 61 | | -bind_at_load |
| | 61 | -bind_at_load \ |
| | 62 | "-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib" |
| 62 | 63 | |
| 63 | 64 | configure.args \ |
| 64 | 65 | --enable-static |
| 65 | 66 | |
| | 67 | # This block helps us link correctly and setup our pc files correctly when we are |
| | 68 | # +system_x11 and x11prefix is somewhere non-standard |
| | 69 | if { ![file exists ${prefix}/lib/pkgconfig/x11.pc] && ![file exists ${x11prefix}/lib/pkgconfig/x11.pc] } { |
| | 70 | # AC_X_PATH blindly asks xmkmf where X11 is, and it always uses /usr/X11R6. |
| | 71 | # These next three lines should cause AC_X_PATH to let us setup our CPPFLAGS |
| | 72 | # and LDFLAGS without interference |
| | 73 | configure.args-append --x-include=${prefix}/include --x-lib=${prefix}/lib |
| | 74 | configure.cppflags-append -I${x11prefix}/include |
| | 75 | configure.ldflags-append -L${x11prefix}/lib |
| | 76 | |
| | 77 | # And this will similarly get ports that use pkgconfig to find our pkgconfig-less libX11 |
| | 78 | post-destroot { |
| | 79 | foreach pc [glob ${destroot}${prefix}/lib/pkgconfig/*.pc] { |
| | 80 | reinplace "s:-lX11:-L${prefix}/lib -L${x11prefix}/lib -lX11:g" ${pc} |
| | 81 | } |
| | 82 | } |
| | 83 | } |
| | 84 | |
| 66 | 85 | variant no_x11 { |
| 67 | 86 | depends_lib-delete \ |
| 68 | 87 | lib:libXft.2:Xft2 |