Ticket #38090: Portfile.diff
File Portfile.diff, 2.8 KB (added by cooljeanius (Eric Gallager), 12 years ago) |
---|
-
Portfile
old new 32 32 # This was taken from the valgrind portfile; I don't know if it actually applies to valkyrie, too, though... 33 33 pre-configure { 34 34 if {"darwin" == ${os.platform} && (${os.major} < 9 || ${os.major} > 12)} { 35 ui_error "${name} ${version} is only compatible with MacOS X 10.5, 10.6, 10.7 and 10.8"36 return -code error "incompatible MacOS X version"35 ui_error "${name} ${version} is only compatible with OS X 10.5, 10.6, 10.7 and 10.8" 36 return -code error "incompatible OS X version" 37 37 } 38 38 } 39 39 40 # "use_configure no" is a dirty hack used because I couldn't get it to work otherwise41 use_configure no42 # Even though we're not using configure, I left these in, in case someone want to try to remove it43 # and use the configure step properly again44 40 configure.cmd "${qt_qmake_cmd}" 45 configure.args-delete --prefix=/opt/local \ 46 --disable-dependency-tracking 47 configure.args QMAKESPEC=${qt_mkspecs_dir}/macx-g++ 41 configure.args-append QMAKESPEC=${qt_mkspecs_dir}/macx-g++ PREFIX=${prefix} 48 42 configure.pre_args 49 43 configure.post_args 50 44 configure.ldflags 45 configure.universal_args 46 configure.env-append PREFIX=${prefix} 51 47 52 48 depends_build-append port:makeicns 53 49 depends_lib-append path:bin/valgrind:valgrind \ 54 50 port:xpm 55 51 56 52 post-configure { 57 # doing the actual configuring in a post-configure step goes with the dirty hack of58 # using "use_configure no" above59 system -W ${worksrcpath} "${qt_qmake_cmd} QMAKESPEC=${qt_mkspecs_dir}/macx-g++"60 53 # When Qt is installed without +universal, and qmake is called with 61 54 # "QMAKE_LDFLAGS += -arch foo", and "foo" is the native arch, then, at 62 55 # least sometimes, qmake will erroneously remove the second "foo" but … … 75 68 } 76 69 } 77 70 71 # Just in case 72 build.env-append ${configure.env} 73 74 # This variant could have been left empty but I felt like I had to put something in it 78 75 variant debug description {Set for debugging} { 79 76 use_parallel_build no 80 77 } 81 78 82 # Setting destroot.destdir doesn't actually work, but it should though. 79 # Apparently putting stuff in ${applications_dir} counts as violating the mtree... 80 destroot.violate_mtree yes 81 82 # Setting destroot.destdir just in case 83 83 destroot.destdir ${destroot}${prefix} 84 # "make install" by default puts stuff into ${destroot}/usr/local,85 # so we have to move everything into the right places manually86 84 post-destroot { 87 85 xinstall -d ${destroot}${prefix}/share/${name}-${version} 88 copy [glob ${destroot}/usr/local/share/${name}-${version}/*] ${destroot}${prefix}/share/${name}-${version}89 86 xinstall -m 755 -d ${destroot}${applications_dir} 90 87 copy [glob ${destroot}/*/local/bin/*.app] ${destroot}${applications_dir} 91 88 foreach png [glob ${worksrcpath}/icons/*.png] {