QT33 port is screwed up

Daniel Eischen eischen at vigrid.com
Fri May 28 01:16:13 PDT 2004

I have /usr/X11R6 linked to /opt/X11R6 (same for /usr/local).
This stanza from qt33/Makefile is not happening because the
generated Makefile has "/opt/X11R6/" instead of "/usr/X11R6":

		 's|/usr/X11R6/lib/pkgconfig/qt-mt.pc|${PREFIX}/libdata/pkgconfig/qt-mt.pc|g' \

This patch fixes that problem (see below for another problem):

Index: Makefile
RCS file: /opt/FreeBSD/cvs/ports/x11-toolkits/qt33/Makefile,v
retrieving revision 1.168
diff -u -r1.168 Makefile
--- Makefile	25 May 2004 15:16:35 -0000	1.168
+++ Makefile	28 May 2004 07:45:30 -0000
@@ -144,7 +144,7 @@
 	@${REINPLACE_CMD} -e \
-		's|/usr/X11R6/lib/pkgconfig/qt-mt.pc|${PREFIX}/libdata/pkgconfig/qt-mt.pc|g' \
+		's|/lib/pkgconfig/qt-mt.pc|/libdata/pkgconfig/qt-mt.pc|g' \

Also, this port doesn't seem to obey PTHREAD_LIBS.  The configure
stage uses -lc_r when it compiles a few files, and -lc_r also ends
up in the Makefile (work/qt-x11-free-3.3.2/lib/qt-mc.pc and

# grep lc_r work/qt-x11-free-3.3.2/*/*
-L${libdir} -lqt-mt -L/usr/local/lib
-L/usr/local/lib -L/usr/X11R6/lib -L/usr/X11R6/lib -laudio -lXt -lmng -ljpeg
-lpng -lz -lGL -lXmu -lXi -lXrender -lXrandr -lXcursor -lXinerama -lXft
-lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -lc_r 
work/qt-x11-free-3.3.2/src/Makefile:LFLAGS   = -fno-exceptions
-Wl,-rpath,/usr/local/lib -lc_r -shared -Wl,-soname,libqt-mt.so.3

The output from 'make configure' is attached.

Dan Eischen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure
Type: application/octet-stream
Size: 23185 bytes
Desc: Output of 'make configure'
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20040528/14b68e5e/configure.obj

More information about the freebsd-ports mailing list