On Oct 8, 2007, at 22:09, Linc Davis wrote:
I'm trying to port the QT3-X11 application evolvotron:
http://sourceforge.net/projects/evolvotron
There's a Fink package for it, so I thought it would be a simple matter to write a portfile. But I'm getting hung up by the following lines in the makefile for the first build target:
$(MOC): ( cd $(QTDIR)/src/moc && $(MAKE) )
I have QTDIR set to ${prefix}/lib/qt3, but there is no directory $ (QTDIR)/src/moc. A similar problem was reported by an OpenBSD user on a Trolltech mailing list, with the following response:
---
In the makefile there is a label MOC which has as its first command cd $QTDIR/src/moc. ========================================== mocables: $(SRCMOC) uicables: $(UICDECLS) $(UICIMPLS)
$(MOC): ( cd $(QTDIR)/src/moc && $(MAKE) ) ========================================== There is no such directory on my system where I am running a packaged version of QT. QT files are in 3 different places in the installed version built for OpenBSD.
Ah, OK. I thought you meant Qt 3 relies on obsolete system files. The problem here is just that OpenBSD haven't packaged Qt correctly.
---
http://lists.trolltech.com/qsa-interest/2005-08/msg00013.html
So there seems to be a problem with the qt3 port.
I would rather say that it sounds like the evolvotron software package requires the *source* of qt3 in order to build. MacPorts ports do not install their source; they only install the libraries and other binaries and other files resulting from compiling the source. Sounds like you may have to download the qt3 source again in your port and extract it and use that. I believe there are some examples of ports that do this kind of thing... but I can't think of them off the top of my head.