Changeset 79973
- Timestamp:
- 06/30/11 20:59:12 (4 years ago)
- File:
-
- 1 edited
-
trunk/dports/devel/dbus-glib/Portfile (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/devel/dbus-glib/Portfile
r79200 r79973 3 3 4 4 PortSystem 1.0 5 PortGroup muniversal 1.06 5 7 6 name dbus-glib … … 45 44 46 45 variant test description {Enable building of test code} { 47 if { ! [variant_isset universal] } { 48 configure.args-append --enable-tests 49 } else { 50 # Do not enable test when cross-compiling. 51 foreach arch ${cross_archs} { 52 lappend merger_configure_args(${arch}) --enable-tests 53 } 54 } 55 } 56 57 if { [variant_isset universal] } { 58 # Find architectures which will not run on build platform. 59 if { ${os.arch}=="i386" } { 60 if { ${os.major} >= 10 } { 61 set cross_archs "ppc ppc64" 62 } else { 63 set cross_archs "ppc64" 64 } 65 } else { 66 set cross_archs "i386 x86_64" 67 } 68 69 set run_arch [lindex ${universal_archs} 0] 70 if { [variant_isset universal] && [lsearch ${cross_archs} ${run_arch}] >= 0 } { 71 ui_msg "When building a universal binary of ${name}, make sure none of {${cross_archs}} is first in universal_archs in ${prefix}/etc/macports/macports.conf" 72 error "incompatible universal_archs value" 73 } 74 75 foreach arch ${cross_archs} { 76 if {[lsearch ${universal_archs} ${arch}] >= 0} { 77 lappend merger_configure_env(${arch}) \ 78 ac_cv_func_posix_getpwnam_r=yes \ 79 ac_cv_have_abstract_sockets=no 80 } 81 } 82 83 post-configure { 84 foreach arch ${cross_archs} { 85 if {[lsearch ${universal_archs} ${arch}] >= 0} { 86 reinplace "s|--mode=execute \$(top_builddir)/dbus/dbus-binding-tool|--mode=execute ${worksrcpath}-${run_arch}/dbus/dbus-binding-tool|" \ 87 ${worksrcpath}-${arch}/dbus/examples/Makefile \ 88 ${worksrcpath}-${arch}/dbus/examples/statemachine/Makefile 89 90 reinplace "s|\$(top_builddir)/dbus/dbus-binding-tool --mode=glib-client|${worksrcpath}-${run_arch}/dbus/dbus-binding-tool --mode=glib-client|" \ 91 ${worksrcpath}-${arch}/tools/Makefile 92 } 93 } 94 } 46 configure.args-append --enable-tests 95 47 } 96 48
Note: See TracChangeset
for help on using the changeset viewer.

