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-07-29 23:06:17 +00:00
|
|
|
PORTVERSION?= 3.0.5
|
2002-08-31 05:05:48 +00:00
|
|
|
PORTREVISION?= 3
|
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-07-31 03:50:30 +00:00
|
|
|
MASTER_SITES= ftp://ftp.trolltech.com/qt/source/ \
|
|
|
|
ftp://ftp.chg.ru/pub/X11/qt/source/
|
2002-04-27 04:21:38 +00:00
|
|
|
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-08-17 19:49:44 +00:00
|
|
|
QT_PREFIX?= ${PREFIX}
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
REINPLACE_ARGS= -i ""
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
NO_FILTER_SHLIBS= yes
|
|
|
|
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 \
|
2002-07-29 23:06:17 +00:00
|
|
|
-no-nas-sound -sm \
|
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-05-14 16:37:07 +00:00
|
|
|
.if defined(WITH_DEBUG)
|
2002-07-31 03:50:30 +00:00
|
|
|
CONFIGURE_ARGS+=-debug
|
2001-06-22 08:46:34 +00:00
|
|
|
.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
|
2002-08-04 10:24:20 +00:00
|
|
|
PKGMESSAGE= pkg-message-upgrade
|
2002-04-29 02:28:05 +00:00
|
|
|
PLIST_SUB+= OPENGL="@comment "
|
|
|
|
CONFIGURE_ARGS+=-disable-opengl
|
|
|
|
.endif
|
2002-07-29 23:06:17 +00:00
|
|
|
CONFIGURE_ENV= ${ECHO} yes | QTDIR="${WRKSRC}" \
|
|
|
|
CFLAGS="${CXXFLAGS}"
|
2002-04-21 23:47:50 +00:00
|
|
|
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-06-15 16:16:32 +00:00
|
|
|
.if ${XFREE86_VERSION} < 4
|
|
|
|
BROKEN= "The QT 3.x port does not support any XFree86 < 4.x"
|
|
|
|
.endif
|
|
|
|
|
2002-08-17 19:49:44 +00:00
|
|
|
.if defined(BATCH) || defined(PACKAGE_BUILDING)
|
|
|
|
SLEEP=${TRUE}
|
|
|
|
.else
|
2002-08-04 10:24:20 +00:00
|
|
|
SLEEP=/bin/sleep
|
2002-08-17 19:49:44 +00:00
|
|
|
.endif
|
2002-04-29 02:28:05 +00:00
|
|
|
|
2002-06-15 16:16:32 +00:00
|
|
|
pre-fetch:
|
|
|
|
.if exists(${X11BASE}/include/qt2/qapp.h)
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} " NOTICE"
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "You have QT2 headers installed! Installing this port"
|
|
|
|
@${ECHO} "will result in conflicts between QT3 and QT2!"
|
|
|
|
@${FALSE}
|
|
|
|
.endif
|
|
|
|
|
2002-05-10 13:00:46 +00:00
|
|
|
# Remove unneeded dirs (speedup) and fake netscape files.
|
2002-04-29 02:28:05 +00:00
|
|
|
post-patch:
|
|
|
|
@${FIND} ${WRKSRC} -name CVS | ${XARGS} ${RM} -fr
|
|
|
|
@${RM} -fr ${WRKSRC}/examples ${WRKSRC}/tutorial
|
2002-05-10 13:00:46 +00:00
|
|
|
@cd ${WRKSRC}/include; \
|
|
|
|
${RM} -f jri.h jri_md.h jritypes.h npapi.h npupp.h
|
|
|
|
@cd ${WRKSRC}/extensions/nsplugin/src; \
|
|
|
|
${RM} -f jri.h jri_md.h jritypes.h npapi.h npupp.h \
|
|
|
|
npunix.c npwin.cpp
|
2002-07-29 23:06:17 +00:00
|
|
|
${REINPLACE_CMD} -e 's,-O2,${CXXFLAGS},' \
|
|
|
|
${WRKSRC}/mkspecs/freebsd-g++/qmake.conf
|
2002-08-12 16:18:29 +00:00
|
|
|
@${REINPLACE_CMD} -e 's,gcc,${CC},' \
|
|
|
|
${WRKSRC}/mkspecs/freebsd-g++/qmake.conf
|
|
|
|
@${REINPLACE_CMD} -e 's,g++,${CXX},' \
|
|
|
|
${WRKSRC}/mkspecs/freebsd-g++/qmake.conf
|
2002-08-30 13:52:25 +00:00
|
|
|
@${REINPLACE_CMD} -e 's,release,release thread,' \
|
|
|
|
${WRKSRC}/mkspecs/freebsd-g++/qmake.conf
|
2002-04-27 04:21:38 +00:00
|
|
|
|
2002-08-31 05:05:48 +00:00
|
|
|
post-build:
|
|
|
|
cd ${WRKSRC}/tools/makeqpf/; ${SETENV} ${MAKE_ENV} ${MAKE}
|
|
|
|
cd ${WRKSRC}/tools/mergetr/; ${SETENV} ${MAKE_ENV} ${MAKE}
|
|
|
|
cd ${WRKSRC}/tools/msg2qm/; ${SETENV} ${MAKE_ENV} ${MAKE}
|
|
|
|
cd ${WRKSRC}/tools/qembed/; ${SETENV} ${MAKE_ENV} ${MAKE}
|
|
|
|
cd ${WRKSRC}/tools/qvfb/; ${SETENV} ${MAKE_ENV} ${MAKE}
|
|
|
|
|
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-08-31 05:05:48 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tools/makeqpf/makeqpf ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tools/mergetr/mergetr ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tools/msg2qm/msg2qm ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tools/qembed/qembed ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tools/qvfb/qvfb ${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/findtr ${PREFIX}/bin
|
2002-04-25 18:25:44 +00:00
|
|
|
|
2002-04-29 02:28:05 +00:00
|
|
|
.if exists(${PKGMESSAGE})
|
|
|
|
# Display another GL advisory. This one goes in the package, too.
|
2002-08-04 10:24:20 +00:00
|
|
|
post-install::
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${SLEEP} 10
|
2002-04-29 02:28:05 +00:00
|
|
|
.endif
|
|
|
|
|
2001-03-10 17:06:18 +00:00
|
|
|
.include <bsd.port.post.mk>
|