pkgsrc/x11/qt2-libs/Makefile.common

57 lines
1.6 KiB
Text
Raw Normal View History

2007-01-13 19:26:29 +01:00
# $NetBSD: Makefile.common,v 1.28 2007/01/13 18:26:54 joerg Exp $
#
DISTNAME= qt-x11-${QTVERSION}
CATEGORIES= x11
MASTER_SITES= ftp://ftp.trolltech.com/qt/source/ \
ftp://ftp.fu-berlin.de/unix/X11/gui/Qt/source/
.include "../../x11/qt2/Makefile.common"
WRKSRC= ${WRKDIR}/qt-${QTVERSION}
HAS_CONFIGURE= yes
USE_X11BASE= yes
USE_TOOLS+= gmake
2006-05-15 23:58:22 +02:00
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
CONFIGURE_ARGS+= -static -sm -no-thread \
-system-zlib -system-libpng \
-system-libmng -system-jpeg
CONFIGURE_ARGS+= -gif # qt2 does not write compressed GIFs
2001-04-19 12:22:13 +02:00
CONFIGURE_ARGS+= < ${FILESDIR}/license-acceptance
QTPREFIX= ${PREFIX}/qt2
MAKE_ENV+= QTPREFIX=${QTPREFIX:Q}
MAKE_ENV+= SYSCONF_CXXFLAGS=${CXXFLAGS:M*:Q}
MAKE_ENV+= SYSCONF_CFLAGS=${CFLAGS:M*:Q}
MAKE_ENV+= SYSCONF_CXXFLAGS_LIB=${CXXFLAGS:M*:Q}
MAKE_ENV+= SYSCONF_CFLAGS_LIB=${CFLAGS:M*:Q}
2001-06-14 13:15:46 +02:00
DISTINFO_FILE= ${.CURDIR}/../../x11/qt2-libs/distinfo
FILESDIR= ${.CURDIR}/../../x11/qt2-libs/files
PATCHDIR= ${.CURDIR}/../../x11/qt2-libs/patches
Update to 2.2.4. While I'm here make things even easier to upgrade for next time. More tidy up to come later. Changelog: Qt 2.2.4 is a bugfix release. It keeps both forward and backward compatibility (source and binary) with Qt 2.2.3 **************************************************************************** * General * **************************************************************************** - Platform and Compiler fixes for AIX and BSDi. Building a Qt DLL with the Borland Builder is again supported. - Printing quality and postscript output on X11 has been improved. The page and text formatting now handles different Windows versions correctly. - Image loading of PNG and GIF files is much more robust against broken files. - On X11, popup menus do not grab the keyboard anymore, but rely on and enforce the application to have focus. This works around an X11 bug where deadkeys do not work while the keyboard is grabbed. - Many minor bugfixes and small improvements, see detailed lists below. **************************************************************************** * Library * **************************************************************************** - QScrollview Wheels scrolls even if there are no scrollbars - QSlider Calls virtual function setValue properly - QImage Improve loading of bmp files Improving reading of PNG images, and redirect warnings to qWarning 32bit images with 8bit Alpha are saved correctly as PNG on big endian machines Make loading of broken GIF images and animated GIF files more robust, some bugfixes - Drag'n'Drop Fix the lost character problem when dragging text Make dnd work after showFullscreen/showNormal Delete text that is dragged from a QLineEdit - QToolButton Removes the old tooltip before setting the new one - QToolBar Separators use the correct style - QPrintDialog OK button is no longer disabled initially - QThread Fix crash when destroying a QThread that had never been started QWaitCondition::wakeAll resets event state after waking up waiting threads - QPainter Scale fonts correctly when painter has a transformation matrix - QPrinter Handle disconnected network printers properly Use user-settings correctly Improve postscript output for non-75dpi displays and transparent images Improve page and text formatting on the different Windows versions Improve printing of colored contents for black&white printers - QSimpleRichText Handle external paint devices properly - QTable Swapping of columns and rows doesn't mismatch sizes Fix calculation of item size hints - QGroupBox Include margin in size hints - QCanvas Better animation handling Cosmetic corrections - QSocket Be able to send large data on Windows - QSocketDevice Workaround a Windows bug concerning the size of the send buffer - QFtp Put data more effectively Correct file permissions - QUrl Appends "/" to directories correctly - QCString Resizing a NULL string keeps length at zero Include null termination in size calculation - QColor Set named colors correctly - QApplication Avoid out-of-bounds read in commandline parsing - QFont/QFontDatabase Enumerate charsets that don't fit to the current locale Improve stability for broken X11 fonts Support Ukraine and Bulgarian font encodings on X11 - QTextCodec Improve recognition of Asian encodings - QXml Report namespace at endElement - QWorkspace Cascading limits window size to workspace size - QFileDialog Setup correctly for non-existing directories Previews the correct file in ExistingFiles mode **************************************************************************** * Extensions * **************************************************************************** - QXt Works better with Exceed X **************************************************************************** * Other * **************************************************************************** - Meta Object Compiler (moc) Further improvements in namespace support - MSVC Integration Setup Qt settings correctly **************************************************************************** * Third party * **************************************************************************** - PNG Fix a coredump in error message handling **************************************************************************** * Changes that might affect runtime behavior * **************************************************************************** - QRegion Fixed QRegion::contains(const QRect&) function in X11 version. Same behaviour as in Windows version now. **************************************************************************** * Qt/Embedded-specific changes * **************************************************************************** - Binary compatibility is NOT maintained with previous Qt/Embedded release, you will need to recompile any old executables to use with this release. - Source compatibility is NOT maintained with Qt/Embedded-specific functions. You may get minor compilation errors if you have used previous - QCopChannel now inherits QObject. If you have multiply-inherited a QObject subclass and QCopChannel, you should instead connect your QObject to the QCopChannel::received() signal. - The identifier "TTF" in fontdir is now "FT". This reflects the fact that the FreeType library supports Type1, Windows FNT, and other font formats in addition to TrueType. FreeType 2.0.1 is now used (src/3rdparty/freetype). - 16bpp support in QVFb. - QDirectPainter experimental direct-video access.
2001-02-06 10:26:11 +01:00
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
CONFIGURE_ARGS+= -platform solaris-g++
.elif ${OPSYS} == "DragonFly"
CONFIGURE_ARGS+= -xft -platform freebsd-g++
.endif
SUBST_CLASSES+= paths
SUBST_FILES.paths= configs/netbsd-g++-static configs/solaris-g++-static
SUBST_FILES.paths+= configs/freebsd-g++-static
SUBST_SED.paths= -e 's,@X11BASE@,${X11BASE},g'
SUBST_SED.paths+= -e 's,@LOCALBASE@,${LOCALBASE},g'
SUBST_SED.paths+= -e 's,@QTDIR@,${QTPREFIX},g'
SUBST_STAGE.paths= post-patch
2007-01-13 19:26:29 +01:00
.include "../../x11/libX11/buildlink3.mk"
Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc. Several changes are involved since they are all interrelated. These changes affect about 1000 files. The first major change is rewriting bsd.builtin.mk as well as all of the builtin.mk files to follow the new example in bsd.builtin.mk. The loop to include all of the builtin.mk files needed by the package is moved from bsd.builtin.mk and into bsd.buildlink3.mk. bsd.builtin.mk is now included by each of the individual builtin.mk files and provides some common logic for all of the builtin.mk files. Currently, this includes the computation for whether the native or pkgsrc version of the package is preferred. This causes USE_BUILTIN.* to be correctly set when one builtin.mk file includes another. The second major change is teach the builtin.mk files to consider files under ${LOCALBASE} to be from pkgsrc-controlled packages. Most of the builtin.mk files test for the presence of built-in software by checking for the existence of certain files, e.g. <pthread.h>, and we now assume that if that file is under ${LOCALBASE}, then it must be from pkgsrc. This modification is a nod toward LOCALBASE=/usr. The exceptions to this new check are the X11 distribution packages, which are handled specially as noted below. The third major change is providing builtin.mk and version.mk files for each of the X11 distribution packages in pkgsrc. The builtin.mk file can detect whether the native X11 distribution is the same as the one provided by pkgsrc, and the version.mk file computes the version of the X11 distribution package, whether it's built-in or not. The fourth major change is that the buildlink3.mk files for X11 packages that install parts which are part of X11 distribution packages, e.g. Xpm, Xcursor, etc., now use imake to query the X11 distribution for whether the software is already provided by the X11 distribution. This is more accurate than grepping for a symbol name in the imake config files. Using imake required sprinkling various builtin-imake.mk helper files into pkgsrc directories. These files are used as input to imake since imake can't use stdin for that purpose. The fifth major change is in how packages note that they use X11. Instead of setting USE_X11, package Makefiles should now include x11.buildlink3.mk instead. This causes the X11 package buildlink3 and builtin logic to be executed at the correct place for buildlink3.mk and builtin.mk files that previously set USE_X11, and fixes packages that relied on buildlink3.mk files to implicitly note that X11 is needed. Package buildlink3.mk should also include x11.buildlink3.mk when linking against the package libraries requires also linking against the X11 libraries. Where it was obvious, redundant inclusions of x11.buildlink3.mk have been removed.
2005-06-01 20:02:37 +02:00
pre-build:
@${TOUCH} ${WRKSRC}/.buildopts