2002-04-21 23:47:50 +00:00
|
|
|
# New ports collection makefile for: qt-copy
|
|
|
|
# Date created: 2 November 2001
|
|
|
|
# Whom: will@cvs.kde.org
|
1996-07-31 00:20:49 +00:00
|
|
|
#
|
1999-08-30 07:13:00 +00:00
|
|
|
# $FreeBSD$
|
1996-07-31 00:20:49 +00:00
|
|
|
#
|
|
|
|
|
Update QT2 to 2.2.4: Re-add USE_MESA, remove antialiasing patch, remove
default -j2 (but keep MAKE_JOBS var), restore old perl REs as soon as I'd
learned how to do multiple ones, remove QPL license file from packaging,
sync with newest KOI8-U/R stuff (not tested). The biggest bonus: split
QT Designer into its own port, and make the qt22/qt-designer pair a member
of the master-slave ports legion, hopefully to reduce redundancy as much
as possible. This should also save roughly 20 minutes of compile time on
a dual PIII-600 for those that don't need or want QT Designer. UIC is,
however, still installed/compiled by the default Qt 2.2.4 (as it _is_
required for other things e.g. KDE2).
USE_MESA may break KDE2. Hopefully, now that the port does install both
the threaded and non-threaded versions of QT, it won't. But until the
next release of KDE2, I'm not gonna bother testing to see.
USE_MESA repeatedly requested by: sobomax
2001-02-04 04:43:14 +00:00
|
|
|
PORTNAME?= qt
|
2002-04-21 23:47:50 +00:00
|
|
|
PORTVERSION?= 3.0.3
|
2002-04-29 02:28:05 +00:00
|
|
|
PORTREVISION= 4
|
Update QT2 to 2.2.4: Re-add USE_MESA, remove antialiasing patch, remove
default -j2 (but keep MAKE_JOBS var), restore old perl REs as soon as I'd
learned how to do multiple ones, remove QPL license file from packaging,
sync with newest KOI8-U/R stuff (not tested). The biggest bonus: split
QT Designer into its own port, and make the qt22/qt-designer pair a member
of the master-slave ports legion, hopefully to reduce redundancy as much
as possible. This should also save roughly 20 minutes of compile time on
a dual PIII-600 for those that don't need or want QT Designer. UIC is,
however, still installed/compiled by the default Qt 2.2.4 (as it _is_
required for other things e.g. KDE2).
USE_MESA may break KDE2. Hopefully, now that the port does install both
the threaded and non-threaded versions of QT, it won't. But until the
next release of KDE2, I'm not gonna bother testing to see.
USE_MESA repeatedly requested by: sobomax
2001-02-04 04:43:14 +00:00
|
|
|
CATEGORIES?= x11-toolkits
|
2002-04-27 04:21:38 +00:00
|
|
|
MASTER_SITES= ftp://ftp.trolltech.com/qt/source/ \
|
|
|
|
ftp://ftp.chg.ru/pub/X11/qt/source/
|
|
|
|
DISTNAME= qt-x11-free-${PORTVERSION}
|
2001-09-10 20:22:28 +00:00
|
|
|
DIST_SUBDIR= KDE
|
1996-07-31 00:20:49 +00:00
|
|
|
|
2001-09-01 02:45:38 +00:00
|
|
|
MAINTAINER?= kde@FreeBSD.org
|
1998-04-28 02:07:56 +00:00
|
|
|
|
2001-03-10 05:52:33 +00:00
|
|
|
LIB_DEPENDS= mng.1:${PORTSDIR}/graphics/libmng \
|
2001-09-11 03:32:41 +00:00
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
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
2000-07-29 02:44:58 +00:00
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg
|
2002-02-19 02:15:42 +00:00
|
|
|
|
2002-04-29 02:28:05 +00:00
|
|
|
.if defined(WITH_IMAGE_PLUGINS)
|
|
|
|
IMAGELIB_TYPE= plugin
|
|
|
|
PLIST_SUB+= IMAGE_PLUGINS=""
|
|
|
|
.else
|
|
|
|
IMAGELIB_TYPE= qt
|
|
|
|
PLIST_SUB+= IMAGE_PLUGINS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2002-04-21 23:47:50 +00:00
|
|
|
QT_PREFIX?= ${PREFIX}
|
|
|
|
USE_BZIP2= yes
|
1996-07-31 00:20:49 +00:00
|
|
|
USE_GMAKE= yes
|
1998-08-05 09:31:52 +00:00
|
|
|
USE_X_PREFIX= yes
|
2000-03-06 18:24:03 +00:00
|
|
|
USE_NEWGCC= yes
|
1999-08-30 07:13:00 +00:00
|
|
|
HAS_CONFIGURE= yes
|
2002-04-29 02:28:05 +00:00
|
|
|
CONFIGURE_ARGS= -prefix ${QT_PREFIX} \
|
|
|
|
-shared -qt-gif -system-zlib \
|
|
|
|
-no-g++-exceptions -thread -no-stl \
|
|
|
|
-${IMAGELIB_TYPE}-imgfmt-png \
|
|
|
|
-${IMAGELIB_TYPE}-imgfmt-jpeg \
|
|
|
|
-${IMAGELIB_TYPE}-imgfmt-mng \
|
|
|
|
-system-libpng -system-libjpeg -system-libmng \
|
|
|
|
-no-nas-sound -sm -remote \
|
2002-04-27 04:21:38 +00:00
|
|
|
-docdir ${QT_PREFIX}/share/doc/qt \
|
2001-07-05 19:09:55 +00:00
|
|
|
-I${LOCALBASE}/include -L${LOCALBASE}/lib
|
2002-04-21 23:47:50 +00:00
|
|
|
.if !defined(NO_DEBUG)
|
2001-06-22 08:46:34 +00:00
|
|
|
CONFIGURE_ARGS+= -debug
|
|
|
|
.endif
|
2002-04-29 02:28:05 +00:00
|
|
|
.if defined(WITH_OPENGL)
|
|
|
|
USE_MESA= yes
|
|
|
|
PLIST_SUB+= OPENGL=""
|
|
|
|
PKGNAMESUFFIX= -opengl
|
2002-05-02 03:34:05 +00:00
|
|
|
BROKEN= "Using WITH_OPENGL causes DRI to fail in mysterious ways"
|
2002-04-29 02:28:05 +00:00
|
|
|
.else
|
|
|
|
PKGMESSAGE=${NONEXISTENT}
|
|
|
|
PLIST_SUB+= OPENGL="@comment "
|
|
|
|
CONFIGURE_ARGS+=-disable-opengl
|
|
|
|
.endif
|
2002-04-21 23:47:50 +00:00
|
|
|
CONFIGURE_ENV= ${ECHO} yes | QTDIR=${WRKSRC}
|
|
|
|
MAKE_ENV?= QTDIR=${WRKSRC} LD_LIBRARY_PATH=${WRKSRC}/lib
|
|
|
|
ALL_TARGET= symlinks sub-src sub-tools
|
2000-09-17 01:57:06 +00:00
|
|
|
|
2001-03-10 17:06:18 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-04-21 23:47:50 +00:00
|
|
|
.if ${MACHINE_ARCH} == "alpha"
|
2001-03-10 17:06:18 +00:00
|
|
|
CFLAGS+= -O0
|
|
|
|
.endif
|
|
|
|
|
2002-04-29 02:28:05 +00:00
|
|
|
.if defined(WITH_OPENGL)
|
|
|
|
# Display WITH_OPENGL advisory.
|
|
|
|
pre-everything:
|
|
|
|
@${ECHO_MSG} '===> **************************************************'
|
|
|
|
@${ECHO_MSG} '===> NOTE: Use of WITH_OPENGL is not recommended with'
|
|
|
|
@${ECHO_MSG} '===> versions of XFree86 < 4.2.0.'
|
|
|
|
@${ECHO_MSG} '===> **************************************************'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# Remove unneeded dirs (speedup).
|
|
|
|
post-patch:
|
|
|
|
@${FIND} ${WRKSRC} -name CVS | ${XARGS} ${RM} -fr
|
|
|
|
@${RM} -fr ${WRKSRC}/examples ${WRKSRC}/tutorial
|
2002-04-27 04:21:38 +00:00
|
|
|
|
2002-04-29 02:28:05 +00:00
|
|
|
# Work around qmake generated dependencies
|
2002-04-25 18:25:44 +00:00
|
|
|
pre-install:
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/lib/*.prl ${PREFIX}/lib
|
|
|
|
|
2002-04-29 02:28:05 +00:00
|
|
|
.if exists(${PKGMESSAGE})
|
|
|
|
# Display another GL advisory. This one goes in the package, too.
|
|
|
|
post-install:
|
|
|
|
@cat ${PKGMESSAGE}
|
|
|
|
.endif
|
|
|
|
|
2001-03-10 17:06:18 +00:00
|
|
|
.include <bsd.port.post.mk>
|