[144013] trunk/dports/gis/qlandkartegt/Portfile
Ryan Schmidt
ryandesign at macports.org
Sat Jan 2 12:52:09 PST 2016
> On Dec 29, 2015, at 8:43 PM, khindenburg at macports.org wrote:
>
> Revision
> 144013
> Author
> khindenburg at macports.org
> Date
> 2015-12-29 18:43:19 -0800 (Tue, 29 Dec 2015)
> Log Message
>
> qlandkartegt: add qt4 portgroup, enable cmake.out_of_source build maintainer #49432
> Modified: trunk/dports/gis/qlandkartegt/Portfile (144012 => 144013)
> @@ -33,9 +35,11 @@
>
> patchfiles patch-src-main.cpp.diff
>
> +cmake.out_of_source yes
> +
> destroot {
> xinstall -d ${destroot}${applications_dir}
> - copy "${worksrcpath}/bin/QLandkarte GT.app" ${destroot}${applications_dir}
> + copy "${workpath}/build/bin/QLandkarte GT.app" ${destroot}${applications_dir}
> }
You probably should not assume that the build directory is ${workpath}/build. That's an implementation detail of the cmake portgroup. You should use the ${destroot.dir} variable instead.
There's also no need here to create ${destroot}${applications_dir}. MacPorts creates this and other standard directories for you automatically before the destroot phase runs.
More information about the macports-dev
mailing list