diff options
author | skrll <skrll> | 2002-01-07 08:07:57 +0000 |
---|---|---|
committer | skrll <skrll> | 2002-01-07 08:07:57 +0000 |
commit | c385318bac4a22a27bef9991b2c7bd730c3632c8 (patch) | |
tree | 39c378ce23e45608030b5958ce857f06572c2996 /x11/qt3-libs | |
parent | dae70495dbe98e497a85c4282ae81a9fa0030935 (diff) | |
download | pkgsrc-c385318bac4a22a27bef9991b2c7bd730c3632c8.tar.gz |
Initial import of qt3-libs-3.0.1. The multiplatform GUI toolkit we all
know and love.
Diffstat (limited to 'x11/qt3-libs')
-rw-r--r-- | x11/qt3-libs/DESCR | 10 | ||||
-rw-r--r-- | x11/qt3-libs/MESSAGE | 20 | ||||
-rw-r--r-- | x11/qt3-libs/Makefile | 31 | ||||
-rw-r--r-- | x11/qt3-libs/Makefile.common | 56 | ||||
-rw-r--r-- | x11/qt3-libs/PLIST | 387 | ||||
-rw-r--r-- | x11/qt3-libs/buildlink.mk | 53 | ||||
-rw-r--r-- | x11/qt3-libs/distinfo | 7 | ||||
-rw-r--r-- | x11/qt3-libs/files/license-acceptance | 1 | ||||
-rw-r--r-- | x11/qt3-libs/files/qmake.conf | 88 | ||||
-rw-r--r-- | x11/qt3-libs/patches/patch-aa | 13 | ||||
-rw-r--r-- | x11/qt3-libs/patches/patch-ab | 13 | ||||
-rw-r--r-- | x11/qt3-libs/patches/patch-ac | 52 |
12 files changed, 731 insertions, 0 deletions
diff --git a/x11/qt3-libs/DESCR b/x11/qt3-libs/DESCR new file mode 100644 index 00000000000..20d03bf3e97 --- /dev/null +++ b/x11/qt3-libs/DESCR @@ -0,0 +1,10 @@ +Qt(TM) is a GUI software toolkit. Qt simplifies the task of writing and +maintaining GUI (graphical user interface) applications. +Qt is written in C++ and is fully object-oriented. It has everything you need +to create professional GUI applications. And it enables you to create them +quickly. +Qt is a multi-platform toolkit. When developing software with Qt, you can run +it on the X Window System (Unix/X11) or Microsoft Windows NT and Windows 95/98. +Simply recompile your source code on the platform you want. +Qt cuts down the complexity in implementing large and complex systems. Its +ingenious signal-slot technology enables true component programming. diff --git a/x11/qt3-libs/MESSAGE b/x11/qt3-libs/MESSAGE new file mode 100644 index 00000000000..4493da45e4c --- /dev/null +++ b/x11/qt3-libs/MESSAGE @@ -0,0 +1,20 @@ +====================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2002/01/07 08:07:57 skrll Exp $ + +To allow this package to coexist with other versions of Qt +it has been installed in ${PREFIX}/qt3/{bin,include,lib,doc}. + +You should be able to select this version of Qt when compiling +programs which use it by ensuring that + +1) QTDIR is set to ${PREFIX}/qt3 + +2) Use the "configure" argument "--with-qt-dir=${PREFIX}/qt3" + +3) you may also have to put ${PREFIX}/qt3/bin in your PATH + +To access Qt-3 man pages add ${PREFIX}/qt3/doc/man to your MANPATH +environment variable. Note that the Qt-3 man pages are installed +here to avoid conflicts with man pages of other Qt versions. + +====================================================================== diff --git a/x11/qt3-libs/Makefile b/x11/qt3-libs/Makefile new file mode 100644 index 00000000000..215f0e15ee8 --- /dev/null +++ b/x11/qt3-libs/Makefile @@ -0,0 +1,31 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/01/07 08:07:57 skrll Exp $ +# + +.include "../qt3-libs/Makefile.common" + +PKGNAME= qt3-libs-${QTVERSION} +COMMENT= C++ X GUI toolkit + +USE_BUILDLINK_ONLY= yes +BUILDLINK_QTDIR= ${WRKSRC} + +ALL_TARGET= sub-src + +do-install: + ${INSTALL_DATA_DIR} ${QTPREFIX} + ${INSTALL_PROGRAM_DIR} ${QTPREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/bin/moc ${QTPREFIX}/bin + ${INSTALL_DATA_DIR} ${QTPREFIX}/lib + ${LIBTOOL} ${INSTALL_DATA} ${WRKSRC}/lib/libqt.la ${QTPREFIX}/lib + ${INSTALL_DATA_DIR} ${QTPREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/include/*.h ${QTPREFIX}/include + ${INSTALL_DATA_DIR} ${QTPREFIX}/include/private + ${INSTALL_DATA} ${WRKSRC}/include/private/*.h ${QTPREFIX}/include/private + +.include "../../devel/zlib/buildlink.mk" +.include "../../graphics/jpeg/buildlink.mk" +.include "../../graphics/Mesa/buildlink.mk" +.include "../../graphics/mng/buildlink.mk" +.include "../../graphics/png/buildlink.mk" +.include "../../mk/x11.buildlink.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/x11/qt3-libs/Makefile.common b/x11/qt3-libs/Makefile.common new file mode 100644 index 00000000000..8f24a639b18 --- /dev/null +++ b/x11/qt3-libs/Makefile.common @@ -0,0 +1,56 @@ +# $NetBSD: Makefile.common,v 1.1.1.1 2002/01/07 08:07:58 skrll Exp $ +# +DISTNAME= qt-x11-free-${QTVERSION} +CATEGORIES= x11 +MASTER_SITES= \ + ftp://ftp.trolltech.com/qt/source/ \ + ftp://ftp.fu-berlin.de/unix/X11/gui/Qt/source/ + +.include "../qt3/Makefile.common" + +HAS_CONFIGURE= yes +USE_X11BASE= yes +USE_GMAKE= yes +USE_LIBTOOL= yes +CONFIGURE_ARGS+= -shared -sm -no-thread \ + -system-zlib -system-libpng \ + -system-libmng -system-libjpeg +CONFIGURE_ARGS+= -no-xinerama +CONFIGURE_ARGS+= -qt-gif # qt3 does not write compressed GIFs + +CONFIGURE_ARGS+= < ${FILESDIR}/license-acceptance + +QTPREFIX= ${PREFIX}/qt3 + +CONFIGURE_ENV+= QTDIR="${WRKSRC}" +MAKE_ENV+= QTPREFIX=${QTPREFIX} +MAKE_ENV+= QTDIR="${WRKSRC}" + +DISTINFO_FILE= ${.CURDIR}/../../x11/qt3-libs/distinfo +FILESDIR= ${.CURDIR}/../../x11/qt3-libs/files +PATCHDIR= ${.CURDIR}/../../x11/qt3-libs/patches + +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "SunOS" +BUILD_DEPENDS+= egcs-1.1.2:../../lang/egcs +CONFIGURE_ENV+= CXX=${LOCALBASE}/egcs/bin/g++ +CONFIGURE_ARGS+= -platform solaris-g++ +.endif + +post-patch: + ${SED} \ + -e 's:@CC@:${CC}:g' \ + -e 's:@CXX@:${CXX}:g' \ + -e 's:@LDFLAGS@:${LDFLAGS}:g' \ + -e 's:@CFLAGS@:${CFLAGS}:g' \ + -e 's:@CXXFLAGS@:${CXXFLAGS}:g' \ + -e 's:@LEX@:${LEX}:g' \ + -e 's:@YACC@:${YACC}:g' \ + -e 's:@LIBTOOL@:${LIBTOOL}:g' \ + -e 's:@BUILDLINK_DIR@:${BUILDLINK_DIR}:g' \ + -e 's:@BUILDLINK_X11_DIR@:${BUILDLINK_X11_DIR}:g' \ + ${FILESDIR}/qmake.conf > ${WRKSRC}/qmake.conf + for dir in ${WRKSRC}/mkspecs/*; do \ + ${CP} ${WRKSRC}/qmake.conf $${dir}; \ + done diff --git a/x11/qt3-libs/PLIST b/x11/qt3-libs/PLIST new file mode 100644 index 00000000000..4c7326e2a38 --- /dev/null +++ b/x11/qt3-libs/PLIST @@ -0,0 +1,387 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/01/07 08:07:58 skrll Exp $ +qt3/bin/moc +qt3/include/jri.h +qt3/include/jri_md.h +qt3/include/jritypes.h +qt3/include/npapi.h +qt3/include/npupp.h +qt3/include/private/qapplication_p.h +qt3/include/private/qcolor_p.h +qt3/include/private/qcom_p.h +qt3/include/private/qcomlibrary_p.h +qt3/include/private/qcomplextext_p.h +qt3/include/private/qcomponentfactory_p.h +qt3/include/private/qcriticalsection_p.h +qt3/include/private/qdir_p.h +qt3/include/private/qeffects_p.h +qt3/include/private/qfiledefs_p.h +qt3/include/private/qfontcodecs_p.h +qt3/include/private/qfontdata_p.h +qt3/include/private/qgpluginmanager_p.h +qt3/include/private/qimageformatinterface_p.h +qt3/include/private/qinputcontext_p.h +qt3/include/private/qinternal_p.h +qt3/include/private/qlayoutengine_p.h +qt3/include/private/qlibrary_p.h +qt3/include/private/qmutex_p.h +qt3/include/private/qpainter_p.h +qt3/include/private/qpluginmanager_p.h +qt3/include/private/qpsprinter_p.h +qt3/include/private/qremoteinterface_p.h +qt3/include/private/qremotemessage_p.h +qt3/include/private/qrichtext_p.h +qt3/include/private/qsqldriverinterface_p.h +qt3/include/private/qsqlmanager_p.h +qt3/include/private/qstyleinterface_p.h +qt3/include/private/qsvgdevice_p.h +qt3/include/private/qtextcodecinterface_p.h +qt3/include/private/qtitlebar_p.h +qt3/include/private/qucom_p.h +qt3/include/private/qucomextra_p.h +qt3/include/private/qwidget_p.h +qt3/include/private/qwidgetinterface_p.h +qt3/include/private/qwidgetresizehandler_p.h +qt3/include/q1xcompatibility.h +qt3/include/qabstractlayout.h +qt3/include/qaccel.h +qt3/include/qaccessible.h +qt3/include/qaction.h +qt3/include/qapp.h +qt3/include/qapplication.h +qt3/include/qarray.h +qt3/include/qasciicache.h +qt3/include/qasciidict.h +qt3/include/qasyncimageio.h +qt3/include/qasyncio.h +qt3/include/qbig5codec.h +qt3/include/qbitarray.h +qt3/include/qbitarry.h +qt3/include/qbitmap.h +qt3/include/qbrush.h +qt3/include/qbttngrp.h +qt3/include/qbuffer.h +qt3/include/qbutton.h +qt3/include/qbuttongroup.h +qt3/include/qcache.h +qt3/include/qcanvas.h +qt3/include/qcdestyle.h +qt3/include/qcheckbox.h +qt3/include/qchkbox.h +qt3/include/qcleanuphandler.h +qt3/include/qclipboard.h +qt3/include/qclipbrd.h +qt3/include/qcollect.h +qt3/include/qcollection.h +qt3/include/qcolor.h +qt3/include/qcolordialog.h +qt3/include/qcombo.h +qt3/include/qcombobox.h +qt3/include/qcommonstyle.h +qt3/include/qcompactstyle.h +qt3/include/qconfig-dist.h +qt3/include/qconfig-large.h +qt3/include/qconfig-medium.h +qt3/include/qconfig-minimal.h +qt3/include/qconfig-small.h +qt3/include/qconfig.h +qt3/include/qconnect.h +qt3/include/qconnection.h +qt3/include/qcstring.h +qt3/include/qcursor.h +qt3/include/qdatabrowser.h +qt3/include/qdatastream.h +qt3/include/qdatatable.h +qt3/include/qdataview.h +qt3/include/qdatetime.h +qt3/include/qdatetimeedit.h +qt3/include/qdatetm.h +qt3/include/qdesktopwidget.h +qt3/include/qdial.h +qt3/include/qdialog.h +qt3/include/qdict.h +qt3/include/qdir.h +qt3/include/qdns.h +qt3/include/qdockarea.h +qt3/include/qdockwindow.h +qt3/include/qdom.h +qt3/include/qdragobject.h +qt3/include/qdrawutil.h +qt3/include/qdrawutl.h +qt3/include/qdropsite.h +qt3/include/qdstream.h +qt3/include/qeditorfactory.h +qt3/include/qerrormessage.h +qt3/include/qeucjpcodec.h +qt3/include/qeuckrcodec.h +qt3/include/qevent.h +qt3/include/qfeatures.h +qt3/include/qfile.h +qt3/include/qfiledef.h +qt3/include/qfiledialog.h +qt3/include/qfiledlg.h +qt3/include/qfileinf.h +qt3/include/qfileinfo.h +qt3/include/qfocusdata.h +qt3/include/qfont.h +qt3/include/qfontdatabase.h +qt3/include/qfontdialog.h +qt3/include/qfontdta.h +qt3/include/qfontinf.h +qt3/include/qfontinfo.h +qt3/include/qfontmet.h +qt3/include/qfontmetrics.h +qt3/include/qframe.h +qt3/include/qftp.h +qt3/include/qgarray.h +qt3/include/qgbkcodec.h +qt3/include/qgcache.h +qt3/include/qgdict.h +qt3/include/qgeneric.h +qt3/include/qgif.h +qt3/include/qgl.h +qt3/include/qglcolormap.h +qt3/include/qglist.h +qt3/include/qglobal.h +qt3/include/qgplugin.h +qt3/include/qgrid.h +qt3/include/qgridview.h +qt3/include/qgroupbox.h +qt3/include/qgrpbox.h +qt3/include/qguardedptr.h +qt3/include/qgvector.h +qt3/include/qhbox.h +qt3/include/qhbuttongroup.h +qt3/include/qheader.h +qt3/include/qhgroupbox.h +qt3/include/qhostaddress.h +qt3/include/qhttp.h +qt3/include/qiconset.h +qt3/include/qiconview.h +qt3/include/qimage.h +qt3/include/qimageformatplugin.h +qt3/include/qinputdialog.h +qt3/include/qintcach.h +qt3/include/qintcache.h +qt3/include/qintdict.h +qt3/include/qinterlacestyle.h +qt3/include/qiodev.h +qt3/include/qiodevice.h +qt3/include/qjiscodec.h +qt3/include/qjpegio.h +qt3/include/qjpunicode.h +qt3/include/qkeycode.h +qt3/include/qkeysequence.h +qt3/include/qlabel.h +qt3/include/qlayout.h +qt3/include/qlcdnum.h +qt3/include/qlcdnumber.h +qt3/include/qlibrary.h +qt3/include/qlined.h +qt3/include/qlineedit.h +qt3/include/qlist.h +qt3/include/qlistbox.h +qt3/include/qlistview.h +qt3/include/qlocalfs.h +qt3/include/qmainwindow.h +qt3/include/qmap.h +qt3/include/qmemarray.h +qt3/include/qmenubar.h +qt3/include/qmenudata.h +qt3/include/qmenudta.h +qt3/include/qmessagebox.h +qt3/include/qmetaobj.h +qt3/include/qmetaobject.h +qt3/include/qmime.h +qt3/include/qmlined.h +qt3/include/qmngio.h +qt3/include/qmodules.h +qt3/include/qmotifplusstyle.h +qt3/include/qmotifstyle.h +qt3/include/qmovie.h +qt3/include/qmsgbox.h +qt3/include/qmultilinedit.h +qt3/include/qmultilineedit.h +qt3/include/qmutex.h +qt3/include/qnamespace.h +qt3/include/qnetwork.h +qt3/include/qnetworkprotocol.h +qt3/include/qnp.h +qt3/include/qobjcoll.h +qt3/include/qobjdefs.h +qt3/include/qobject.h +qt3/include/qobjectcleanuphandler.h +qt3/include/qobjectdefs.h +qt3/include/qobjectdict.h +qt3/include/qobjectlist.h +qt3/include/qpaintd.h +qt3/include/qpaintdc.h +qt3/include/qpaintdevice.h +qt3/include/qpaintdevicedefs.h +qt3/include/qpaintdevicemetrics.h +qt3/include/qpainter.h +qt3/include/qpair.h +qt3/include/qpalette.h +qt3/include/qpdevmet.h +qt3/include/qpen.h +qt3/include/qpicture.h +qt3/include/qpixmap.h +qt3/include/qpixmapcache.h +qt3/include/qplatinumstyle.h +qt3/include/qpmcache.h +qt3/include/qpngio.h +qt3/include/qpntarry.h +qt3/include/qpoint.h +qt3/include/qpointarray.h +qt3/include/qpolygonscanner.h +qt3/include/qpopmenu.h +qt3/include/qpopupmenu.h +qt3/include/qprintdialog.h +qt3/include/qprinter.h +qt3/include/qprndlg.h +qt3/include/qprocess.h +qt3/include/qprogbar.h +qt3/include/qprogdlg.h +qt3/include/qprogressbar.h +qt3/include/qprogressdialog.h +qt3/include/qpsprn.h +qt3/include/qptrcollection.h +qt3/include/qptrdict.h +qt3/include/qptrlist.h +qt3/include/qptrqueue.h +qt3/include/qptrstack.h +qt3/include/qptrvector.h +qt3/include/qpushbt.h +qt3/include/qpushbutton.h +qt3/include/qqueue.h +qt3/include/qradiobt.h +qt3/include/qradiobutton.h +qt3/include/qrangecontrol.h +qt3/include/qrangect.h +qt3/include/qrect.h +qt3/include/qregexp.h +qt3/include/qregion.h +qt3/include/qremotefactory.h +qt3/include/qremoteplugin.h +qt3/include/qrtlcodec.h +qt3/include/qscrbar.h +qt3/include/qscrollbar.h +qt3/include/qscrollview.h +qt3/include/qsemaphore.h +qt3/include/qsemimodal.h +qt3/include/qserversocket.h +qt3/include/qsession.h +qt3/include/qsessionmanager.h +qt3/include/qsettings.h +qt3/include/qsgistyle.h +qt3/include/qshared.h +qt3/include/qsignal.h +qt3/include/qsignalmapper.h +qt3/include/qsignalslotimp.h +qt3/include/qsimplerichtext.h +qt3/include/qsize.h +qt3/include/qsizegrip.h +qt3/include/qsizepolicy.h +qt3/include/qsjiscodec.h +qt3/include/qslider.h +qt3/include/qsocket.h +qt3/include/qsocketdevice.h +qt3/include/qsocketnotifier.h +qt3/include/qsocknot.h +qt3/include/qsortedlist.h +qt3/include/qsound.h +qt3/include/qspinbox.h +qt3/include/qsplitter.h +qt3/include/qsql.h +qt3/include/qsqlcursor.h +qt3/include/qsqldatabase.h +qt3/include/qsqldriver.h +qt3/include/qsqldriverplugin.h +qt3/include/qsqleditorfactory.h +qt3/include/qsqlerror.h +qt3/include/qsqlfield.h +qt3/include/qsqlform.h +qt3/include/qsqlindex.h +qt3/include/qsqlpropertymap.h +qt3/include/qsqlquery.h +qt3/include/qsqlrecord.h +qt3/include/qsqlresult.h +qt3/include/qstack.h +qt3/include/qstatusbar.h +qt3/include/qstring.h +qt3/include/qstringlist.h +qt3/include/qstrlist.h +qt3/include/qstrvec.h +qt3/include/qstyle.h +qt3/include/qstylefactory.h +qt3/include/qstyleplugin.h +qt3/include/qstylesheet.h +qt3/include/qt.h +qt3/include/qt_windows.h +qt3/include/qt_x11.h +qt3/include/qtabbar.h +qt3/include/qtabdialog.h +qt3/include/qtabdlg.h +qt3/include/qtable.h +qt3/include/qtabwidget.h +qt3/include/qtextbrowser.h +qt3/include/qtextcodec.h +qt3/include/qtextcodecfactory.h +qt3/include/qtextcodecplugin.h +qt3/include/qtextedit.h +qt3/include/qtextstream.h +qt3/include/qtextview.h +qt3/include/qthread.h +qt3/include/qtimer.h +qt3/include/qtl.h +qt3/include/qtmultilineedit.h +qt3/include/qtoolbar.h +qt3/include/qtoolbutton.h +qt3/include/qtooltip.h +qt3/include/qtranslator.h +qt3/include/qtsciicodec.h +qt3/include/qtstream.h +qt3/include/qttableview.h +qt3/include/qurl.h +qt3/include/qurlinfo.h +qt3/include/qurloperator.h +qt3/include/qutfcodec.h +qt3/include/quuid.h +qt3/include/qvalidator.h +qt3/include/qvaluelist.h +qt3/include/qvaluestack.h +qt3/include/qvaluevector.h +qt3/include/qvariant.h +qt3/include/qvbox.h +qt3/include/qvbuttongroup.h +qt3/include/qvector.h +qt3/include/qvfbhdr.h +qt3/include/qvgroupbox.h +qt3/include/qwaitcondition.h +qt3/include/qwhatsthis.h +qt3/include/qwidcoll.h +qt3/include/qwidget.h +qt3/include/qwidgetfactory.h +qt3/include/qwidgetintdict.h +qt3/include/qwidgetlist.h +qt3/include/qwidgetplugin.h +qt3/include/qwidgetstack.h +qt3/include/qwindefs.h +qt3/include/qwindow.h +qt3/include/qwindowdefs.h +qt3/include/qwindowsstyle.h +qt3/include/qwizard.h +qt3/include/qwmatrix.h +qt3/include/qworkspace.h +qt3/include/qwsgfx_qnx.h +qt3/include/qxml.h +qt3/include/qxt.h +qt3/lib/libqt.a +qt3/lib/libqt.la +qt3/lib/libqt.so +qt3/lib/libqt.so.3 +qt3/lib/libqt.so.3.0 +@dirrm qt3/lib +@dirrm qt3/include/private +@dirrm qt3/include +@dirrm qt3/bin +@dirrm qt3 diff --git a/x11/qt3-libs/buildlink.mk b/x11/qt3-libs/buildlink.mk new file mode 100644 index 00000000000..65c701c6b10 --- /dev/null +++ b/x11/qt3-libs/buildlink.mk @@ -0,0 +1,53 @@ +# $NetBSD +# +# This Makefile fragment is included by packages that use qt3-libs. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define BUILDLINK_DEPENDS.qt3-libs to the dependency pattern +# for the version of qt3-libs desired. +# (2) Include this Makefile fragment in the package Makefile, +# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header +# search path, and +# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search +# path. + +.if !defined(QT3_LIBS_BUILDLINK_MK) +QT3_LIBS_BUILDLINK_MK= # defined + +.include "../../mk/bsd.buildlink.mk" + +BUILDLINK_DEPENDS.qt3-libs?= qt3-libs>=3.0.1 +DEPENDS+= ${BUILDLINK_DEPENDS.qt3-libs}:../../x11/qt3-libs + +EVAL_PREFIX+= BUILDLINK_PREFIX.qt3-libs=qt3-libs +BUILDLINK_PREFIX.qt3-libs_DEFAULT= ${X11PREFIX} +BUILDLINK_FILES.qt3-libs= qt3/bin/moc +BUILDLINK_FILES.qt3-libs+= qt3/include/*.h +BUILDLINK_FILES.qt3-libs+= qt3/include/private/*.h +BUILDLINK_FILES.qt3-libs+= qt3/lib/libqt.* + +REAL_QTDIR= ${BUILDLINK_PREFIX.qt3-libs}/qt3 +BUILDLINK_QTDIR= ${BUILDLINK_DIR}/qt3 +REPLACE_BUILDLINK_SED+= -e "s|-I${BUILDLINK_QTDIR}/|-I${REAL_QTDIR}/|g" +REPLACE_BUILDLINK_SED+= -e "s|-L${BUILDLINK_QTDIR}/|-L${REAL_QTDIR}/|g" +BUILDLINK_CONFIG_WRAPPER_SED+= -e "s|-I${REAL_QTDIR}/|-I${BUILDLINK_QTDIR}/|g" +BUILDLINK_CONFIG_WRAPPER_SED+= -e "s|-L${REAL_QTDIR}/|-L${BUILDLINK_QTDIR}/|g" + +.include "../../devel/zlib/buildlink.mk" +.include "../../graphics/Mesa/buildlink.mk" +.include "../../graphics/jpeg/buildlink.mk" +.include "../../graphics/mng/buildlink.mk" +.include "../../graphics/png/buildlink.mk" + +CONFIGURE_ENV+= MOC="${BUILDLINK_QTDIR}/bin/moc" +MAKE_ENV+= MOC="${BUILDLINK_QTDIR}/bin/moc" +LDFLAGS+= -Wl,-R${REAL_QTDIR}/lib + +BUILDLINK_TARGETS.qt3-libs= qt3-libs-buildlink +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.qt3-libs} + +pre-configure: ${BUILDLINK_TARGETS.qt3-libs} +qt3-libs-buildlink: _BUILDLINK_USE + +.endif # QT3_LIBS_BUILDLINK_MK diff --git a/x11/qt3-libs/distinfo b/x11/qt3-libs/distinfo new file mode 100644 index 00000000000..2f25580f5e1 --- /dev/null +++ b/x11/qt3-libs/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/01/07 08:07:57 skrll Exp $ + +SHA1 (qt-x11-free-3.0.1.tar.gz) = cdb80902c129c1c991c4c87f1a21ab6fa9c0cfbf +Size (qt-x11-free-3.0.1.tar.gz) = 17818374 bytes +SHA1 (patch-aa) = aae2cb07147fdc00b008dbb89ebddb58a9ad5010 +SHA1 (patch-ab) = 48e7e362fe66e728c4444e0cc2293a9e13e57359 +SHA1 (patch-ac) = da32dd8596f36238fec30fb7b8a444d36e13ed92 diff --git a/x11/qt3-libs/files/license-acceptance b/x11/qt3-libs/files/license-acceptance new file mode 100644 index 00000000000..7cfab5b05d6 --- /dev/null +++ b/x11/qt3-libs/files/license-acceptance @@ -0,0 +1 @@ +yes diff --git a/x11/qt3-libs/files/qmake.conf b/x11/qt3-libs/files/qmake.conf new file mode 100644 index 00000000000..87a0382c63b --- /dev/null +++ b/x11/qt3-libs/files/qmake.conf @@ -0,0 +1,88 @@ +# +# $Id: qmake.conf,v 1.1.1.1 2002/01/07 08:07:59 skrll Exp $ +# +# qmake configuration for netbsd-g++ +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG += qt warn_on release + +QMAKE_CC = @CC@ +QMAKE_LEX = @LEX@ +QMAKE_LEXFLAGS = +QMAKE_YACC = @YACC@ +QMAKE_YACCFLAGS = -d +QMAKE_CFLAGS = @CFLAGS@ +QMAKE_CFLAGS_DEPS = -M +QMAKE_CFLAGS_WARN_ON = -Wall -W +QMAKE_CFLAGS_WARN_OFF = +QMAKE_CFLAGS_RELEASE = -O2 +QMAKE_CFLAGS_DEBUG = -g +QMAKE_CFLAGS_SHLIB = +QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses + +QMAKE_CXX = @CXX@ +QMAKE_CXXFLAGS = @CXXFLAGS@ -DQ_TRAILING_DIR_SEP +QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS +QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON +QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF +QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE +QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG +QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB +QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC + +QMAKE_INCDIR = @BUILDLINK_DIR@/include +QMAKE_LIBDIR = @BUILDLINK_DIR@/lib +QMAKE_INCDIR_X11 = @BUILDLINK_X11_DIR@/include +QMAKE_LIBDIR_X11 = @BUILDLINK_X11_DIR@/lib +QMAKE_INCDIR_QT = $(QTDIR)/include +QMAKE_LIBDIR_QT = $(QTDIR)/lib +QMAKE_INCDIR_OPENGL = @BUILDLINK_X11_DIR@/include +QMAKE_LIBDIR_OPENGL = @BUILDLINK_X11_DIR@/lib + +QMAKE_LINK = @LIBTOOL@ --mode=link @CXX@ +QMAKE_LINK_SHLIB_CMD = \ + @LIBTOOL@ --mode=link @CXX@ $(LFLAGS) \ + -o $(if $(TARGET0), \ + $(patsubst %.so,%.la,$(DESTDIR)$(TARGET0)), \ + $(patsubst %.so,%.la,$(DESTDIR)$(TARGET))) \ + $(if $(TARGET0), \ + -version-info $(subst $(TARGET0).,,$(TARGET1)):$(subst $(TARGET1).,,$(TARGET2)), \ + -module -avoid-version) \ + $(OBJECTS:.o=.lo) $(OBJMOC:.o=.lo) $(LIBS) -rpath $(QTPREFIX) +QMAKE_LFLAGS = @LDFLAGS@ +QMAKE_LFLAGS_RELEASE = +QMAKE_LFLAGS_DEBUG = +QMAKE_LFLAGS_SHLIB = +QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB +QMAKE_LFLAGS_SONAME = +QMAKE_RPATH = + +QMAKE_RUN_CC = @LIBTOOL@ --mode=compile @CC@ -c $(CFLAGS) $(INCPATH) -o $obj $src +QMAKE_RUN_CC_IMP = @LIBTOOL@ --mode=compile @CC@ -c $(CFLAGS) $(INCPATH) -o $@ $< +QMAKE_RUN_CXX = @LIBTOOL@ --mode=compile @CXX@ -c $(CXXFLAGS) $(INCPATH) -o $obj $src +QMAKE_RUN_CXX_IMP = @LIBTOOL@ --mode=compile @CXX@ -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +QMAKE_LIBS = +QMAKE_LIBS_DYNLOAD = +QMAKE_LIBS_X11 = -lXext -lX11 -lm +QMAKE_LIBS_X11SM = -lICE -lSM +QMAKE_LIBS_QT = -lqt + +QMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +QMAKE_LIBS_OPENGL_QT = -lGL -lXmu + +QMAKE_MOC = $(QTDIR)/bin/moc +QMAKE_UIC = $(QTDIR)/bin/uic + +QMAKE_AR = true +QMAKE_RANLIB = true + +QMAKE_TAR = tar -cf +QMAKE_GZIP = gzip -9f + +QMAKE_COPY = cp -f +QMAKE_MOVE = mv +QMAKE_DEL = rm -f + diff --git a/x11/qt3-libs/patches/patch-aa b/x11/qt3-libs/patches/patch-aa new file mode 100644 index 00000000000..f178a29bede --- /dev/null +++ b/x11/qt3-libs/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/01/07 08:07:59 skrll Exp $ + +--- Makefile.orig Mon Oct 8 02:44:41 2001 ++++ Makefile +@@ -53,7 +53,7 @@ + sub-src: src-moc .qmake.cache FORCE + cd src && $(MAKE) + +-sub-plugins: sub-src .qmake.cache FORCE ++sub-plugins: .qmake.cache FORCE + cd plugins/src && $(MAKE) + + sub-tutorial: sub-src FORCE diff --git a/x11/qt3-libs/patches/patch-ab b/x11/qt3-libs/patches/patch-ab new file mode 100644 index 00000000000..f604ad564e3 --- /dev/null +++ b/x11/qt3-libs/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2002/01/07 08:07:59 skrll Exp $ + +--- configure.orig Fri Nov 30 15:27:49 2001 ++++ configure +@@ -121,7 +121,7 @@ + fi + + touch .test.qt. +- if [ '!' -f ${QTDIR}/.test.qt. ] ++ if [ '!' -f .test.qt. ] + then + rm -f .test.qt. + echo diff --git a/x11/qt3-libs/patches/patch-ac b/x11/qt3-libs/patches/patch-ac new file mode 100644 index 00000000000..1b3ea8d0fc7 --- /dev/null +++ b/x11/qt3-libs/patches/patch-ac @@ -0,0 +1,52 @@ +$NetBSD: patch-ac,v 1.1.1.1 2002/01/07 08:07:59 skrll Exp $ + +--- src/tools/qdir_unix.cpp.orig Wed Dec 12 06:58:31 2001 ++++ src/tools/qdir_unix.cpp +@@ -81,10 +81,19 @@ + + bool QDir::mkdir( const QString &dirName, bool acceptAbsPath ) const + { +-#ifdef Q_OS_MACX // Mac X doesn't support trailing /'s ++#ifdef Q_TRAILING_DIR_SEP // Some OSes doesn't support trailing /'s + QString name = dirName; +- if (dirName[dirName.length() - 1] == "/") +- name = dirName.left( dirName.length() - 1 ); ++ int pos = name.length(); ++ if (pos > 0) { ++ while ( (pos - 1) >= 0 && name[pos - 1] == '/' ) { ++ --pos; ++ }; ++ if ( pos == 0 ) { ++ name = QDir::rootDirPath(); ++ } else { ++ name.truncate( pos ); ++ } ++ } + return QT_MKDIR( QFile::encodeName(filePath(name,acceptAbsPath)), 0777 ) + == 0; + #else +@@ -95,7 +104,24 @@ + + bool QDir::rmdir( const QString &dirName, bool acceptAbsPath ) const + { ++#ifdef Q_TRAILING_DIR_SEP // Some OSes doesn't support trailing /'s ++ QString name = dirName; ++ int pos = name.length(); ++ if (pos > 0) { ++ while ( (pos - 1) >= 0 && name[pos - 1] == '/' ) { ++ --pos; ++ }; ++ if ( pos == 0 ) { ++ name = QDir::rootDirPath(); ++ } else { ++ name.truncate( pos ); ++ } ++ } ++ return QT_RMDIR( QFile::encodeName(filePath(name,acceptAbsPath)) ) ++ == 0; ++#else + return QT_RMDIR( QFile::encodeName(filePath(dirName,acceptAbsPath)) ) == 0; ++#endif + } + + bool QDir::isReadable() const |