Problem with a Qt application portfile
Ryan Schmidt
ryandesign at macports.org
Wed Dec 5 12:29:40 PST 2007
On Dec 5, 2007, at 10:26, Linc Davis wrote:
> I'm trying to port evolvotron:
>
> http://sourceforge.net/projects/evolvotron
>
> It build with qmake. Works in Fink.
>
> So far, I have this:
>
> PortSystem 1.0
> name evolvotron
> version 0.4.0
> categories graphics x11
> platforms darwin
> maintainers nomaintainer at macports.org
> homepage http://sourceforge.net/projects/evolvotron
> master_sites http://downloads.sourceforge.net/evolvotron/
> checksums md5 ab6f3a3247e36ca0024d3837f78bdf6b
> description "Generative art" image evolver, based on Qt
> long_description "Generative art" software to evolve images/
> textures/patterns through an \
> iterative process of random mutation and user-
> selection driven evolution.
> depends_lib port:qt3
> depends_build port:graphviz port:doxygen
> patchfiles patch-common.pro patch-evolvotron.pro
> worksrcdir ${name}
> configure.args --mandir=${prefix}/share/man
> destroot.destdir INSTALL_ROOT=${destroot}
> configure.env QTDIR=${prefix} INSTALLBASE=${prefix}
> INSTALLPATH=${destroot}${prefix}
> build.env QTDIR=${prefix} INSTALLBASE=${prefix}
> INSTALLPATH=${destroot}${prefix}
> destroot.env QTDIR=${prefix} INSTALLBASE=${prefix}
> INSTALLPATH=${destroot}${prefix}
>
> The patches are as follows:
>
> --- common.pro.orig 2005-05-11 11:23:36.000000000 -0700
> +++ common.pro 2007-10-10 09:31:18.000000000 -0700
> @@ -10,7 +10,7 @@
> # INSTALLPATH = /usr/local/bin
> # For a personal install use something like the next line
>
> -INSTALLPATH = /home/$(USER)/bin
> +#INSTALLPATH = /home/$(USER)/bin
>
> ##################
> # Improved optimisation options from qmake defaults.
> @@ -79,8 +79,8 @@
> # This probably wouldn't be usable until all the strings were
> moved out of the app - see Qt I18N docs.
> # Also add gcc threading option (not entirely clear whether this
> is needed but it doesn't seem to hurt)
>
> -QMAKE_CXXFLAGS_RELEASE += -DQT_NO_ASCII_CAST -pthread
> -QMAKE_CXXFLAGS_DEBUG += -DQT_NO_ASCII_CAST -pthread
> +QMAKE_CXXFLAGS_RELEASE += -DQT_NO_ASCII_CAST
> +QMAKE_CXXFLAGS_DEBUG += -DQT_NO_ASCII_CAST
>
> ######################################
> # Hide those crufty moc_ files away
>
> --- evolvotron/evolvotron.pro.orig 2007-10-06 21:02:12.000000000 -0700
> +++ evolvotron/evolvotron.pro 2007-10-06 21:03:32.000000000 -0700
> @@ -10,6 +10,7 @@
>
> QMAKE_CXXFLAGS_RELEASE += -I../libevolvotron
> QMAKE_CXXFLAGS_DEBUG += -I../libevolvotron
> +QMAKE_LFLAGS_RELEASE += -undefined dynamic_lookup
>
> target.path = $$INSTALLPATH
>
> I get as far as this:
>
> ---> Fetching evolvotron
> ---> Verifying checksum(s) for evolvotron
> ---> Extracting evolvotron
> ---> Applying patches to evolvotron
> ---> Configuring evolvotron
> ---> Building evolvotron with target all
> ---> Staging evolvotron into destroot
> ---> Packaging tgz archive for evolvotron 0.4.0_0
>
> And then I get this:
>
> Error: Target org.macports.archive returned: error copying "/opt/
> local/var/macports/build/
> _opt_local_var_macports_sources_local_graphics_evolvotron/
> work/.macports.evolvotron.state" to "/opt/local/var/macports/build/
> _opt_local_var_macports_sources_local_graphics_evolvotron/work/
> destroot/+STATE": no such file or directory
> Error: Status 1 encountered during processing.
>
> The destroot directory appears momentarily in the work directory,
> then disappears. Apparently it's being deleted just before the tgz
> archive is created. I have no idea why.
>
> Passing the -d option to 'port install' has no effect on the build
> output. MacPorts 1.520, Mac OS 10.4.11 PPC, Xcode 2.4.1.
Why are you "Packaging tgz archive"? Does it work if you skip that step?
More information about the macports-users
mailing list