Revision: 69224 http://trac.macports.org/changeset/69224 Author: michaelld@macports.org Date: 2010-06-28 22:01:46 -0700 (Mon, 28 Jun 2010) Log Message: ----------- Fix qt4-mac depends, use of CoreFoundation, and destroot install. Modified Paths: -------------- trunk/dports/gis/qlandkarte/Portfile Modified: trunk/dports/gis/qlandkarte/Portfile =================================================================== --- trunk/dports/gis/qlandkarte/Portfile 2010-06-29 04:16:10 UTC (rev 69223) +++ trunk/dports/gis/qlandkarte/Portfile 2010-06-29 05:01:46 UTC (rev 69224) @@ -1,3 +1,4 @@ +# -*- coding: utf-8; mode: tcl; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 @@ -5,7 +6,7 @@ name qlandkarte categories gis version 0.7.3 -revision 2 +revision 3 platforms darwin maintainers nomaintainer @@ -20,14 +21,28 @@ depends_lib port:proj \ port:libusb-compat \ - path:bin/qmake-mac:qt4-mac + port:qt4-mac configure.args --with-extra-includes=${prefix}/include\ --with-extra-libs=${prefix}/lib \ --with-qt-dir=${prefix}/libexec/qt4-mac +post-patch { + # fix lack of CoreFoundation after libgarmin.a + foreach pro_file { EtrexLegendC/EtrexLegendC.pro \ + EtrexLegendCx/EtrexLegendCx.pro \ + GPSMap60CSx/GPSMap60CSx.pro \ + whatGarmin/whatGarmin.pro } { + reinplace "s|IOKit|IOKit -framework CoreFoundation|" \ + ${worksrcpath}/src/device/${pro_file} + } +} + destroot { - xinstall -d ${destroot}${applications_dir} - copy ${worksrcpath}/bin/${name}.app ${destroot}${applications_dir} - ln -s ${applications_dir}/${name}.app/Contents/MacOS/${name} ${destroot}${prefix}/bin + xinstall -d ${destroot}${applications_dir} + copy ${worksrcpath}/bin/QLandkarte.app ${destroot}${applications_dir} + ln -s ${applications_dir}/QLandkarte.app/Contents/MacOS/QLandkarte ${destroot}${prefix}/bin + foreach plugin [glob -directory ${worksrcpath}/bin/plugins *] { + copy ${plugin} ${destroot}${applications_dir}/QLandkarte.app/Contents/Resources/plugins/ + } }