summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/qt31/Makefile
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2000-07-29 02:44:58 +0000
committerwill <will@FreeBSD.org>2000-07-29 02:44:58 +0000
commit866418e857e7080ce1cfa1fbe749c79049a0a7c6 (patch)
treee9129c87b067d09454a8b779e48479221c54be0c /x11-toolkits/qt31/Makefile
parent3a4bac246da6c0ae26f0942d851bf17637de83d0 (diff)
downloadFreeBSD-ports-866418e857e7080ce1cfa1fbe749c79049a0a7c6.zip
FreeBSD-ports-866418e857e7080ce1cfa1fbe749c79049a0a7c6.tar.gz
Update to 20000724A (custom-rolled snapshot). Rejoice, because now
Konqueror can load HTML documents, KOffice works semi-well, and KDE2 in general seems less buggy. Only kdeutils was left out of this mega-update. However, it should return soon. :-) The massive reduction in patches is mostly the result of using perl regex replacement. This reduces the amount of time it will take in the future to upgrade these ports, and load on the repository. QT 2.2.0beta0 (aka qt-copy) is officially enabled for the express purpose of allowing KDE2 to compile. It is available in the qt22 port. Additionally, GIF support is re-enabled in both Qt2 ports, so that people can now read GIF images. GIF support is enabled through an internal GIF reader in Qt, and requires no patented libraries. Special effort was made to ensure that people do not install both qt21 and qt22 ports at the same time. I'd like to take a moment to thank the following people for their help: Alex Zepeda <jazepeda@pacbell.net>, Stephan Kulow <coolo@kde.org>, Harri Porten <porten@kde.org>, Waldo Bastian <waba@kde.org>, Marc G. Fournier <scrappy@hub.org>, Arun Sharma <adsharma@sharmas.dhs.org>, Matthias Hoelzer-Kluepfel <mhk@caldera.de>, and many others. Over 150 hours of hard work, testing, etc. were put into this update. Another couple hundred of hours were spent by CPUs trying to compile this behemoth. :-> Special thanks to: Physics Computer Network @ Purdue staff, especially C. Stephen Gunn <csg@physics.purdue.edu>, for giving me access to an extremely fast machine for doing test builds (it performed 12 full builds of the entire suite in the last 7 days). PR: 18838 Submitted by: Arun Sharma <adsharma@sharmas.dhs.org> Approved by: imura, asami
Diffstat (limited to 'x11-toolkits/qt31/Makefile')
-rw-r--r--x11-toolkits/qt31/Makefile52
1 files changed, 30 insertions, 22 deletions
diff --git a/x11-toolkits/qt31/Makefile b/x11-toolkits/qt31/Makefile
index ec167dc..70beda5 100644
--- a/x11-toolkits/qt31/Makefile
+++ b/x11-toolkits/qt31/Makefile
@@ -1,4 +1,4 @@
-# New ports collection makefile for: qt21
+# New ports collection makefile for: qt22
# Date created: 17 Jul 1999
# Whom: imura@kml.cs.titech.ac.jp
#
@@ -6,49 +6,58 @@
#
PORTNAME= qt
-PORTVERSION= 2.1.1
+PORTVERSION= 20000724A
CATEGORIES= x11-toolkits
-MASTER_SITES= ftp://ftp.trolltech.com/qt/source/
-DISTNAME= ${PORTNAME}-x11-${PORTVERSION}
+MASTER_SITES= ${MASTER_SITE_KDE}
+MASTER_SITE_SUBDIR= snapshots/current
-MAINTAINER= imura@FreeBSD.org
+MAINTAINER= will@FreeBSD.org
-LIB_DEPENDS= png.4:${PORTSDIR}/graphics/png \
- jpeg.9:${PORTSDIR}/graphics/jpeg \
- GL.14:${PORTSDIR}/graphics/Mesa3
+LIB_DEPENDS= png.3:${PORTSDIR}/graphics/png \
+ jpeg.9:${PORTSDIR}/graphics/jpeg
+WRKSRC= ${WRKDIR}/${PORTNAME}
+USE_BZIP2= yes
NO_LATEST_LINK= yes
USE_GMAKE= yes
-INSTALLS_SHLIB= yes
USE_X_PREFIX= yes
USE_NEWGCC= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= -system-zlib -system-libpng -system-jpeg -sm \
- -I${LOCALBASE}/include -L${LOCALBASE}/lib
+ -gif -I${LOCALBASE}/include -L${LOCALBASE}/lib
CONFIGURE_ENV= QTDIR=${WRKSRC}
MAKE_ENV= QTDIR=${WRKSRC}
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
CONFIG= ${WRKSRC}/configs/freebsd-g++-shared
-.if defined(QT_GIF_AVAILABLE) || defined(HAVE_UNISYS_LICENSE)
-CONFIGURE_ARGS+=-gif
-RESTRICTED= 'Requires a license from UNISYS'
-.endif
-
.if !defined(NOPORTDOCS)
.include "${.CURDIR}/files/manpages"
.endif
+pre-fetch:
+.if exists(${X11BASE}/lib/libqt2.so.3)
+ @${ECHO} "An older version of QT2 is installed. To avoid clobbering"
+ @${ECHO} "that installation, deinstall it and then install this port."
+ @${ECHO} "Note that this port contains beta-quality source code and"
+ @${ECHO} "must be used only wherever absolutely needed, such as for"
+ @${ECHO} "KDE2 snapshot 20000724A and later."
+ @${FALSE}
+.endif
+
pre-configure:
- @${PERL} -pi -e "s,gcc,${CC},g" ${CONFIG}
- @${PERL} -pi -e "s,g\+\+,${CXX},g" ${CONFIG}
- @${PERL} -pi -e "s,/usr/X11R6,${X11BASE},g" ${CONFIG}
- @${PERL} -pi -e "s,-pipe -O2,${CXXFLAGS},g" ${CONFIG}
+ ${PERL} -pi -e "s,gcc,${CC},g" ${CONFIG}
+ ${PERL} -pi -e "s,g\+\+,${CXX},g" ${CONFIG}
+ ${PERL} -pi -e "s,/usr/X11R6,${X11BASE},g" ${CONFIG}
+ ${PERL} -pi -e "s,-pipe -O2,${CXXFLAGS},g" ${CONFIG}
+ ${PERL} -pi -e "s@VER_MAJ = 2@VER_MAJ = 4@g" ${WRKSRC}/src/Makefile.in
+ ${PERL} -pi -e "s@TARGET = qt@TARGET = qt2@g" ${WRKSRC}/src/Makefile.in
post-configure:
@(cd ${WRKSRC} ; ${GMAKE} symlinks)
+pre-install:
+ @(find ${WRKSRC} -name CVS | xargs rm -rf)
+
do-install:
${MKDIR} ${PREFIX}/include/qt2
(cd ${WRKSRC} ; \
@@ -63,6 +72,7 @@ do-install:
${INSTALL_DATA} lib/libqxt.a ${PREFIX}/lib ; \
${INSTALL_DATA} lib/libqt2.so.3 ${PREFIX}/lib )
${LN} -sf libqt2.so.3 ${PREFIX}/lib/libqt2.so
+ ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/qt2/html
(cd ${WRKSRC} ; \
@@ -72,8 +82,6 @@ do-install:
${INSTALL_DATA} PORTING ${PREFIX}/share/doc/qt2 ; \
${INSTALL_DATA} README ${PREFIX}/share/doc/qt2 ; \
${INSTALL_DATA} README.QT ${PREFIX}/share/doc/qt2 ; \
- ${INSTALL_DATA} changes-2.1.0 ${PREFIX}/share/doc/qt2 ; \
- ${INSTALL_DATA} changes-2.1.1 ${PREFIX}/share/doc/qt2 ; \
${INSTALL_DATA} doc/html/* ${PREFIX}/share/doc/qt2/html ; \
${INSTALL_MAN} doc/man/man3/q* ${PREFIX}/man/man3 )
.endif
OpenPOWER on IntegriCloud