2003-01-06 16:05:36 +01:00
|
|
|
# -*-mode: makefile-*-
|
2002-04-22 01:47:50 +02:00
|
|
|
# New ports collection makefile for: qt-copy
|
|
|
|
# Date created: 2 November 2001
|
|
|
|
# Whom: will@cvs.kde.org
|
1996-07-31 02:20:49 +02:00
|
|
|
#
|
1999-08-30 09:13:00 +02:00
|
|
|
# $FreeBSD$
|
1996-07-31 02:20:49 +02:00
|
|
|
#
|
|
|
|
|
2003-12-16 11:02:08 +01:00
|
|
|
PORTNAME= qt
|
2004-08-14 00:46:52 +02:00
|
|
|
PORTVERSION= 3.3.3
|
2004-08-05 13:46:49 +02:00
|
|
|
CATEGORIES?= x11-toolkits ipv6
|
2004-05-24 15:11:45 +02:00
|
|
|
MASTER_SITES= ftp://sunsite.rediris.es/mirror/Qt/source/ \
|
|
|
|
ftp://ftp.iasi.roedu.net/mirrors/ftp.trolltech.com/qt/sources/ \
|
|
|
|
ftp://ftp.ntua.gr/pub/X11/Qt/qt/source/ \
|
|
|
|
ftp://ftp.tu-chemnitz.de/pub/Qt/source/ \
|
|
|
|
ftp://ftp.silug.org/mirrors/ftp.trolltech.com/qt/source/ \
|
|
|
|
ftp://ftp.planetmirror.com.au/pub/trolltech/qt/source/ \
|
|
|
|
ftp://ftp.fu-berlin.de/unix/X11/gui/Qt/source/ \
|
|
|
|
ftp://ftp.trolltech.com/qt/source/
|
2002-04-27 06:21:38 +02:00
|
|
|
DISTNAME= qt-x11-free-${PORTVERSION}
|
2001-09-10 22:22:28 +02:00
|
|
|
DIST_SUBDIR= KDE
|
1996-07-31 02:20:49 +02:00
|
|
|
|
2003-12-16 11:02:08 +01:00
|
|
|
MAINTAINER= kde@FreeBSD.org
|
2004-03-25 16:26:43 +01:00
|
|
|
COMMENT= Multiplatform C++ application framework
|
1998-04-28 04:07:56 +02:00
|
|
|
|
2003-12-13 11:21:14 +01:00
|
|
|
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake
|
|
|
|
|
2003-01-06 16:05:36 +01:00
|
|
|
LIB_DEPENDS+= mng.1:${PORTSDIR}/graphics/libmng \
|
2001-09-11 05:32:41 +02:00
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
2003-07-29 06:26:22 +02:00
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg
|
2003-01-06 16:05:36 +01:00
|
|
|
|
2004-03-10 13:14:26 +01:00
|
|
|
CONFLICTS= linguist-0.* qt-2.* qt-3.0.* \
|
2004-05-21 20:33:06 +02:00
|
|
|
qt-3.1.* qt-3.2.* qt-designer-2.* xfmail-1.5.[0-5] \
|
|
|
|
xfmail-1.5.5_[1-2]
|
2003-10-17 08:09:39 +02:00
|
|
|
|
2003-01-06 16:05:36 +01:00
|
|
|
USE_BZIP2= yes
|
2003-01-29 10:25:41 +01:00
|
|
|
USE_REINPLACE= yes
|
2003-12-13 11:21:14 +01:00
|
|
|
REINPLACE_ARGS= -i ""
|
2003-01-06 16:05:36 +01:00
|
|
|
USE_X_PREFIX= yes
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
NO_FILTER_SHLIBS=yes
|
2003-12-13 11:21:14 +01:00
|
|
|
|
2003-08-06 13:44:22 +02:00
|
|
|
CONFIGURE_ARGS+= -system-libpng -system-libjpeg -system-libmng \
|
2003-01-06 16:05:36 +01:00
|
|
|
-qt-imgfmt-png -qt-imgfmt-jpeg -qt-imgfmt-mng \
|
2004-03-27 06:50:44 +01:00
|
|
|
-system-zlib -sm -qt-gif -thread \
|
2004-03-09 20:41:12 +01:00
|
|
|
-fast -xinerama -no-g++-exceptions -stl -no-nis \
|
2003-02-18 08:35:56 +01:00
|
|
|
${CUPS} -shared -prefix ${PREFIX} -datadir ${DATADIR} \
|
2004-03-09 20:41:12 +01:00
|
|
|
-verbose -docdir ${DOCSDIR} -tablet -ipv6 \
|
2003-12-13 11:21:14 +01:00
|
|
|
-plugindir ${PREFIX}/lib/plugins
|
|
|
|
|
2004-05-25 17:16:36 +02:00
|
|
|
CONFIGURE_ENV?= QTDIR=${WRKSRC} PATH=${WRKSRC}/bin:$$PATH
|
2003-12-13 11:21:14 +01:00
|
|
|
MAKE_ENV?= QTDIR=${WRKSRC} \
|
|
|
|
LD_LIBRARY_PATH=${WRKSRC}/lib \
|
|
|
|
PATH=${WRKSRC}/bin:$$PATH
|
|
|
|
ALL_TARGET= sub-tools
|
|
|
|
EXTRACT_AFTER_ARGS=| ${TAR} -xf - \
|
2003-12-16 11:02:08 +01:00
|
|
|
--exclude '${DISTNAME}/mkspecs' --exclude '${DISTNAME}/qmake' \
|
|
|
|
--exclude '${DISTNAME}/examples' --exclude '${DISTNAME}/tutorial' \
|
2003-12-13 11:21:14 +01:00
|
|
|
--exclude '${DISTNAME}/extensions/nsplugin/src/[^q]*' \
|
2003-12-16 11:02:08 +01:00
|
|
|
--exclude '${DISTNAME}/include/jri*' \
|
|
|
|
--exclude '${DISTNAME}/include/np*'
|
2003-01-06 16:05:36 +01:00
|
|
|
|
2004-05-02 20:03:59 +02:00
|
|
|
OPTIONS= CUPS "Enable CUPS support" on \
|
|
|
|
NAS "Enable NAS support" on \
|
|
|
|
OPENGL "Enable OpenGL support" on \
|
|
|
|
XFT "Enable Xft support" on
|
|
|
|
|
2003-07-29 06:26:22 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-12-13 11:21:14 +01:00
|
|
|
# The previous Qt port versions installed qmake and qmake's specs under X11BASE
|
|
|
|
# The new devel/qmake port installs them under LOCALBASE. We can use
|
|
|
|
# either one here, but we prefer the newer:
|
2004-01-28 13:44:07 +01:00
|
|
|
.for d in ${X11BASE} ${LOCALBASE} ${PREFIX}
|
2004-03-10 22:11:02 +01:00
|
|
|
. if exists($d/share/qt/mkspecs/freebsd-g++/qplatformdefs.h)
|
2003-12-13 11:21:14 +01:00
|
|
|
QTBASE=$d
|
|
|
|
PLATFORM=${QTBASE}/share/qt/mkspecs/freebsd-g++
|
|
|
|
. endif
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.if defined(PLATFORM)
|
2003-12-16 11:02:08 +01:00
|
|
|
CONFIGURE_ARGS+=-platform ${PLATFORM}
|
2003-12-13 11:21:14 +01:00
|
|
|
.else
|
2003-12-16 11:02:08 +01:00
|
|
|
CONFIGURE_ARGS+=-platform ${LOCALBASE}/share/qt/mkspecs/freebsd-g++
|
2003-12-13 11:21:14 +01:00
|
|
|
.endif
|
|
|
|
|
2003-07-29 06:26:22 +02:00
|
|
|
.if !defined(WITHOUT_XFT)
|
2004-03-16 23:54:05 +01:00
|
|
|
LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft
|
2004-05-02 20:03:59 +02:00
|
|
|
.elseif defined(WITHOUT_XFT)
|
2003-07-29 06:26:22 +02:00
|
|
|
CONFIGURE_ARGS+=-no-xft
|
|
|
|
.endif
|
|
|
|
|
2004-03-09 20:41:12 +01:00
|
|
|
.if defined(WANT_QT_DEBUG)
|
2003-09-18 16:57:05 +02:00
|
|
|
CONFIGURE_ARGS+=-debug
|
2003-01-06 16:05:36 +01:00
|
|
|
.endif
|
2002-10-26 19:03:01 +02:00
|
|
|
|
|
|
|
.if !defined(WITHOUT_OPENGL)
|
2003-12-13 11:21:14 +01:00
|
|
|
USE_GL= yes
|
2004-05-02 20:03:59 +02:00
|
|
|
.elseif defined(WITHOUT_OPENGL)
|
2002-04-29 04:28:05 +02:00
|
|
|
CONFIGURE_ARGS+=-disable-opengl
|
2002-10-26 19:03:01 +02:00
|
|
|
.endif # WITHOUT_OPENGL
|
|
|
|
|
2003-01-29 14:23:31 +01:00
|
|
|
.if !defined(WITHOUT_CUPS)
|
|
|
|
LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base
|
2003-01-08 16:45:27 +01:00
|
|
|
CUPS= -cups -L${LOCALBASE}/lib -I${LOCALBASE}/include
|
2004-05-02 20:03:59 +02:00
|
|
|
.elseif defined(WITHOUT_CUPS)
|
2003-01-29 14:23:31 +01:00
|
|
|
CUPS=
|
|
|
|
.endif
|
2003-01-06 16:05:36 +01:00
|
|
|
|
2004-03-27 06:50:44 +01:00
|
|
|
.if !defined(WITHOUT_NAS)
|
|
|
|
LIB_DEPENDS+= audio:${PORTSDIR}/audio/nas
|
2004-08-14 00:46:52 +02:00
|
|
|
CONFIGURE_ARGS+=-system-nas-sound -no-pch
|
2004-05-02 20:03:59 +02:00
|
|
|
.elseif defined(WITHOUT_NAS)
|
|
|
|
CONFIGURE_ARGS+=-no-nas-sound
|
2004-03-27 06:50:44 +01:00
|
|
|
.endif
|
2003-06-02 16:46:41 +02:00
|
|
|
|
2004-07-23 21:10:32 +02:00
|
|
|
.if ${X_WINDOW_SYSTEM:L} == xfree86-3
|
|
|
|
IGNORE= "The QT ${PORTVERSION} port does not support any XFree86 < 4.x"
|
|
|
|
.endif
|
2002-06-15 18:16:32 +02:00
|
|
|
|
|
|
|
.if exists(${X11BASE}/include/qt2/qapp.h)
|
2003-01-06 16:05:36 +01:00
|
|
|
BROKEN= "You have QT2 headers installed! Installing this port"
|
|
|
|
BROKEN+="will result in conflicts between QT3 and QT2!"
|
2002-06-15 18:16:32 +02:00
|
|
|
.endif
|
|
|
|
|
2003-01-29 10:25:41 +01:00
|
|
|
post-patch:
|
2003-12-13 11:21:14 +01:00
|
|
|
.if defined(PLATFORM)
|
|
|
|
@${REINPLACE_CMD} -e 's|$$outpath/bin/qmake|${QTBASE}/bin/qmake|g' \
|
|
|
|
${WRKSRC}/configure
|
2004-03-09 20:41:12 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|$$OUTDIR/bin/qmake|${QTBASE}/bin/qmake|g' \
|
|
|
|
${WRKSRC}/config.tests/unix/endian.test \
|
|
|
|
${WRKSRC}/config.tests/unix/largefile.test \
|
|
|
|
${WRKSRC}/config.tests/unix/ptrsize.test
|
2003-08-06 13:44:22 +02:00
|
|
|
.else
|
2003-12-13 11:21:14 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|$$outpath/bin/qmake|${LOCALBASE}/bin/qmake|g' \
|
|
|
|
${WRKSRC}/configure
|
2004-03-09 20:41:12 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|$$OUTDIR/bin/qmake|${LOCALBASE}/bin/qmake|g' \
|
|
|
|
${WRKSRC}/config.tests/unix/endian.test \
|
|
|
|
${WRKSRC}/config.tests/unix/largefile.test \
|
|
|
|
${WRKSRC}/config.tests/unix/ptrsize.test
|
2003-09-18 16:57:05 +02:00
|
|
|
.endif
|
2003-12-13 11:21:14 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|^ cd qmake.*||' ${WRKSRC}/Makefile
|
2004-08-14 00:46:52 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|^CFG_PRECOMPILE=no|CFG_PRECOMPILE=auto|g' \
|
|
|
|
${WRKSRC}/configure
|
2003-01-29 10:25:41 +01:00
|
|
|
|
2004-05-22 21:43:04 +02:00
|
|
|
post-configure:
|
|
|
|
@${REINPLACE_CMD} -e \
|
2004-06-09 18:58:30 +02:00
|
|
|
's|/lib/pkgconfig/|/libdata/pkgconfig/|g' \
|
2004-05-22 21:43:04 +02:00
|
|
|
${WRKSRC}/src/Makefile
|
|
|
|
|
2002-08-31 07:05:48 +02:00
|
|
|
post-build:
|
2003-01-06 16:05:36 +01:00
|
|
|
.for tool in makeqpf mergetr msg2qm qembed qvfb
|
2003-12-13 11:21:14 +01:00
|
|
|
@cd ${WRKSRC}/tools/${tool}; ${SETENV} ${MAKE_ENV} ${MAKE}
|
2003-01-06 16:05:36 +01:00
|
|
|
.endfor
|
2003-12-13 11:21:14 +01:00
|
|
|
@${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${GREP} --mmap -F -l -- \
|
|
|
|
"${PLATFORM}" | ${XARGS} ${REINPLACE_CMD} -e "s,${PLATFORM}/qmake.conf,," \
|
|
|
|
-e "s,${PLATFORM},,"
|
2002-08-31 07:05:48 +02:00
|
|
|
|
2002-04-29 04:28:05 +02:00
|
|
|
# Work around qmake generated dependencies
|
2004-03-18 02:06:21 +01:00
|
|
|
pre-su-install:
|
2004-01-28 13:44:07 +01:00
|
|
|
${MKDIR} ${PREFIX}/lib ${PREFIX}/bin
|
2003-12-13 11:21:14 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/*.prl ${PREFIX}/lib
|
2002-08-31 07:05:48 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/findtr ${PREFIX}/bin
|
2003-01-06 16:05:36 +01:00
|
|
|
.for tool in makeqpf mergetr msg2qm qembed qvfb
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tools/${tool}/${tool} ${PREFIX}/bin
|
|
|
|
.endfor
|
2003-12-13 11:21:14 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${RM} -f ${PREFIX}/lib/libqt-mt.la
|
2004-03-25 16:06:29 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2002-04-25 20:25:44 +02:00
|
|
|
|
2001-03-10 18:06:18 +01:00
|
|
|
.include <bsd.port.post.mk>
|