Bring in my fixes for KDE2 for users of XFree86 4.0.x. Basically, what
this involves is this: Cull GL from Qt by default, but still provide a
Qt+GL library that may or may not have threads. Then also provide a Qt
library that has threads but not GL. This allows us to make KDE2 depend
on a library that will *not* have threads, ever. Threads will be
revisited at a later date. Ports that require GL support need to be
updated to use the hacked library, libqtgl.so.4. The net result is that
we bloat our qt2 package by 1.5-2.5MB for compatability. Also, static
qt will not have GL support.
Introduce bsd.kde.mk, which will be tested on bento before becoming
fully activated.
Replace qt22-static with qt2-static, since it's just a proxy. Update
qt-designer to depend on qt23. Also make the old hack to package the
correct lib obsolete by using PLIST_SUB instead.
Miscellaneous changes: remove LIBQTFILE from CONFIGURE_ENV, it's not
used anymore. Solve namespace pollution problems with the devel/pth and
devel/libgnugetopt ports. Hopefully.
Suggested by: ade, asami, sobomax (bsd.kde.mk)
Repocopied by: asami (qt22-static --> qt2-static)
2001-03-24 17:15:59 -05:00
|
|
|
#-*- mode: Fundamental; tab-width: 4; -*-
|
|
|
|
# ex:ts=4
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# Please view me with 4 column tabs!
|
|
|
|
|
|
|
|
# Please make sure all changes to this file are past through the maintainer.
|
|
|
|
# Do not commit them yourself (unless of course you're the Port's Wraith ;).
|
|
|
|
KDE_MAINTAINER= will@FreeBSD.org
|
|
|
|
|
|
|
|
# This section contains the USE_ definitions.
|
|
|
|
# XXX: Write HAVE_ definitions sometime.
|
|
|
|
|
2001-11-04 01:18:26 -05:00
|
|
|
# USE_QT_VER - Says that the port uses the Qt toolkit. Possible values:
|
|
|
|
# 1, 2, or 3; each specify the major version of Qt to use.
|
|
|
|
# This implies USE_NEWGCC.
|
|
|
|
# USE_KDELIBS_VER - Says that the port uses KDE libraries. Possible values:
|
|
|
|
# 1, 2, or 3; each specify the major version of KDE to use.
|
|
|
|
# This implies USE_QT of the appropriate version.
|
|
|
|
# USE_KDEBASE_VER - Says that the port uses the KDE base. Possible values:
|
|
|
|
# 1, 2, or 3; each specify the major version of KDE to use.
|
|
|
|
# This implies USE_KDELIBS of the appropriate version.
|
|
|
|
|
|
|
|
#
|
|
|
|
# WARNING! ACHTUNG! DANGER WILL ROBINSON!
|
|
|
|
# DO NOT USE USE_[QT,KDELIBS,KDEBASE}_VER=3 UNLESS YOU ARE INVOLVED IN THE
|
|
|
|
# KDE/FREEBSD PROJECT AND/OR YOU KNOW WHAT YOU ARE DOING!
|
|
|
|
#
|
Bring in my fixes for KDE2 for users of XFree86 4.0.x. Basically, what
this involves is this: Cull GL from Qt by default, but still provide a
Qt+GL library that may or may not have threads. Then also provide a Qt
library that has threads but not GL. This allows us to make KDE2 depend
on a library that will *not* have threads, ever. Threads will be
revisited at a later date. Ports that require GL support need to be
updated to use the hacked library, libqtgl.so.4. The net result is that
we bloat our qt2 package by 1.5-2.5MB for compatability. Also, static
qt will not have GL support.
Introduce bsd.kde.mk, which will be tested on bento before becoming
fully activated.
Replace qt22-static with qt2-static, since it's just a proxy. Update
qt-designer to depend on qt23. Also make the old hack to package the
correct lib obsolete by using PLIST_SUB instead.
Miscellaneous changes: remove LIBQTFILE from CONFIGURE_ENV, it's not
used anymore. Solve namespace pollution problems with the devel/pth and
devel/libgnugetopt ports. Hopefully.
Suggested by: ade, asami, sobomax (bsd.kde.mk)
Repocopied by: asami (qt22-static --> qt2-static)
2001-03-24 17:15:59 -05:00
|
|
|
|
|
|
|
# Compat shims.
|
|
|
|
.if defined(USE_QT)
|
2002-04-18 22:30:02 -04:00
|
|
|
USE_QT_VER= 2
|
Bring in my fixes for KDE2 for users of XFree86 4.0.x. Basically, what
this involves is this: Cull GL from Qt by default, but still provide a
Qt+GL library that may or may not have threads. Then also provide a Qt
library that has threads but not GL. This allows us to make KDE2 depend
on a library that will *not* have threads, ever. Threads will be
revisited at a later date. Ports that require GL support need to be
updated to use the hacked library, libqtgl.so.4. The net result is that
we bloat our qt2 package by 1.5-2.5MB for compatability. Also, static
qt will not have GL support.
Introduce bsd.kde.mk, which will be tested on bento before becoming
fully activated.
Replace qt22-static with qt2-static, since it's just a proxy. Update
qt-designer to depend on qt23. Also make the old hack to package the
correct lib obsolete by using PLIST_SUB instead.
Miscellaneous changes: remove LIBQTFILE from CONFIGURE_ENV, it's not
used anymore. Solve namespace pollution problems with the devel/pth and
devel/libgnugetopt ports. Hopefully.
Suggested by: ade, asami, sobomax (bsd.kde.mk)
Repocopied by: asami (qt22-static --> qt2-static)
2001-03-24 17:15:59 -05:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO} ">>> Warning: this port needs to be updated as it uses the old-style USE_QT variable!"
|
|
|
|
.endif
|
|
|
|
.if defined(USE_QT2)
|
2001-03-25 18:22:46 -05:00
|
|
|
USE_QT_VER= 2
|
Bring in my fixes for KDE2 for users of XFree86 4.0.x. Basically, what
this involves is this: Cull GL from Qt by default, but still provide a
Qt+GL library that may or may not have threads. Then also provide a Qt
library that has threads but not GL. This allows us to make KDE2 depend
on a library that will *not* have threads, ever. Threads will be
revisited at a later date. Ports that require GL support need to be
updated to use the hacked library, libqtgl.so.4. The net result is that
we bloat our qt2 package by 1.5-2.5MB for compatability. Also, static
qt will not have GL support.
Introduce bsd.kde.mk, which will be tested on bento before becoming
fully activated.
Replace qt22-static with qt2-static, since it's just a proxy. Update
qt-designer to depend on qt23. Also make the old hack to package the
correct lib obsolete by using PLIST_SUB instead.
Miscellaneous changes: remove LIBQTFILE from CONFIGURE_ENV, it's not
used anymore. Solve namespace pollution problems with the devel/pth and
devel/libgnugetopt ports. Hopefully.
Suggested by: ade, asami, sobomax (bsd.kde.mk)
Repocopied by: asami (qt22-static --> qt2-static)
2001-03-24 17:15:59 -05:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO} ">>> Warning: this port needs to be updated as it uses the old-style USE_QT2 variable!"
|
|
|
|
.endif
|
|
|
|
|
2001-04-14 16:43:29 -04:00
|
|
|
# USE_KDEBASE_VER section
|
|
|
|
.if defined(USE_KDEBASE_VER)
|
|
|
|
|
2002-04-18 22:30:02 -04:00
|
|
|
.if ${USE_KDEBASE_VER} == 3
|
2001-11-04 01:18:26 -05:00
|
|
|
|
|
|
|
# kdebase 3.x common stuff
|
2002-04-18 22:30:02 -04:00
|
|
|
LIB_DEPENDS+= konq:${PORTSDIR}/x11/kdebase3
|
2001-11-04 01:18:26 -05:00
|
|
|
USE_KDELIBS_VER=3
|
|
|
|
|
2001-04-14 16:43:29 -04:00
|
|
|
.else
|
|
|
|
|
|
|
|
# kdebase 2.x common stuff -- DEFAULT
|
|
|
|
LIB_DEPENDS+= konq.4:${PORTSDIR}/x11/kdebase2
|
|
|
|
USE_KDELIBS_VER=2
|
|
|
|
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
# End of USE_KDEBASE_VER
|
|
|
|
|
2001-03-25 18:22:46 -05:00
|
|
|
# USE_KDELIBS_VER section
|
Bring in my fixes for KDE2 for users of XFree86 4.0.x. Basically, what
this involves is this: Cull GL from Qt by default, but still provide a
Qt+GL library that may or may not have threads. Then also provide a Qt
library that has threads but not GL. This allows us to make KDE2 depend
on a library that will *not* have threads, ever. Threads will be
revisited at a later date. Ports that require GL support need to be
updated to use the hacked library, libqtgl.so.4. The net result is that
we bloat our qt2 package by 1.5-2.5MB for compatability. Also, static
qt will not have GL support.
Introduce bsd.kde.mk, which will be tested on bento before becoming
fully activated.
Replace qt22-static with qt2-static, since it's just a proxy. Update
qt-designer to depend on qt23. Also make the old hack to package the
correct lib obsolete by using PLIST_SUB instead.
Miscellaneous changes: remove LIBQTFILE from CONFIGURE_ENV, it's not
used anymore. Solve namespace pollution problems with the devel/pth and
devel/libgnugetopt ports. Hopefully.
Suggested by: ade, asami, sobomax (bsd.kde.mk)
Repocopied by: asami (qt22-static --> qt2-static)
2001-03-24 17:15:59 -05:00
|
|
|
.if defined(USE_KDELIBS_VER)
|
|
|
|
|
2002-04-18 22:30:02 -04:00
|
|
|
.if ${USE_KDELIBS_VER} == 3
|
2001-11-04 01:18:26 -05:00
|
|
|
|
|
|
|
# kdelibs 3.x common stuff
|
2002-04-18 22:30:02 -04:00
|
|
|
LIB_DEPENDS+= kdecore:${PORTSDIR}/x11/kdelibs3
|
2001-11-04 01:18:26 -05:00
|
|
|
USE_QT_VER= 3
|
|
|
|
|
Bring in my fixes for KDE2 for users of XFree86 4.0.x. Basically, what
this involves is this: Cull GL from Qt by default, but still provide a
Qt+GL library that may or may not have threads. Then also provide a Qt
library that has threads but not GL. This allows us to make KDE2 depend
on a library that will *not* have threads, ever. Threads will be
revisited at a later date. Ports that require GL support need to be
updated to use the hacked library, libqtgl.so.4. The net result is that
we bloat our qt2 package by 1.5-2.5MB for compatability. Also, static
qt will not have GL support.
Introduce bsd.kde.mk, which will be tested on bento before becoming
fully activated.
Replace qt22-static with qt2-static, since it's just a proxy. Update
qt-designer to depend on qt23. Also make the old hack to package the
correct lib obsolete by using PLIST_SUB instead.
Miscellaneous changes: remove LIBQTFILE from CONFIGURE_ENV, it's not
used anymore. Solve namespace pollution problems with the devel/pth and
devel/libgnugetopt ports. Hopefully.
Suggested by: ade, asami, sobomax (bsd.kde.mk)
Repocopied by: asami (qt22-static --> qt2-static)
2001-03-24 17:15:59 -05:00
|
|
|
.else
|
|
|
|
|
|
|
|
# kdelibs 2.x common stuff -- DEFAULT
|
2001-04-03 04:14:43 -04:00
|
|
|
LIB_DEPENDS+= kdecore.4:${PORTSDIR}/x11/kdelibs2
|
2001-03-25 18:22:46 -05:00
|
|
|
USE_QT_VER= 2
|
Bring in my fixes for KDE2 for users of XFree86 4.0.x. Basically, what
this involves is this: Cull GL from Qt by default, but still provide a
Qt+GL library that may or may not have threads. Then also provide a Qt
library that has threads but not GL. This allows us to make KDE2 depend
on a library that will *not* have threads, ever. Threads will be
revisited at a later date. Ports that require GL support need to be
updated to use the hacked library, libqtgl.so.4. The net result is that
we bloat our qt2 package by 1.5-2.5MB for compatability. Also, static
qt will not have GL support.
Introduce bsd.kde.mk, which will be tested on bento before becoming
fully activated.
Replace qt22-static with qt2-static, since it's just a proxy. Update
qt-designer to depend on qt23. Also make the old hack to package the
correct lib obsolete by using PLIST_SUB instead.
Miscellaneous changes: remove LIBQTFILE from CONFIGURE_ENV, it's not
used anymore. Solve namespace pollution problems with the devel/pth and
devel/libgnugetopt ports. Hopefully.
Suggested by: ade, asami, sobomax (bsd.kde.mk)
Repocopied by: asami (qt22-static --> qt2-static)
2001-03-24 17:15:59 -05:00
|
|
|
|
|
|
|
.endif
|
|
|
|
.endif
|
2001-03-25 18:22:46 -05:00
|
|
|
# End of USE_KDELIBS_VER section
|
Bring in my fixes for KDE2 for users of XFree86 4.0.x. Basically, what
this involves is this: Cull GL from Qt by default, but still provide a
Qt+GL library that may or may not have threads. Then also provide a Qt
library that has threads but not GL. This allows us to make KDE2 depend
on a library that will *not* have threads, ever. Threads will be
revisited at a later date. Ports that require GL support need to be
updated to use the hacked library, libqtgl.so.4. The net result is that
we bloat our qt2 package by 1.5-2.5MB for compatability. Also, static
qt will not have GL support.
Introduce bsd.kde.mk, which will be tested on bento before becoming
fully activated.
Replace qt22-static with qt2-static, since it's just a proxy. Update
qt-designer to depend on qt23. Also make the old hack to package the
correct lib obsolete by using PLIST_SUB instead.
Miscellaneous changes: remove LIBQTFILE from CONFIGURE_ENV, it's not
used anymore. Solve namespace pollution problems with the devel/pth and
devel/libgnugetopt ports. Hopefully.
Suggested by: ade, asami, sobomax (bsd.kde.mk)
Repocopied by: asami (qt22-static --> qt2-static)
2001-03-24 17:15:59 -05:00
|
|
|
|
2001-04-03 04:14:43 -04:00
|
|
|
# USE_QT_VER section
|
|
|
|
.if defined(USE_QT_VER)
|
|
|
|
|
2002-04-18 22:30:02 -04:00
|
|
|
.if ${USE_QT_VER} == 3
|
2001-11-04 01:18:26 -05:00
|
|
|
|
|
|
|
QTCPPFLAGS?=
|
|
|
|
QTCGFLIBS?=
|
|
|
|
|
|
|
|
# Qt 3.x common stuff
|
2002-04-18 22:30:02 -04:00
|
|
|
QT_PREFIX?= ${X11BASE}
|
2001-11-13 01:35:28 -05:00
|
|
|
MOC?= ${QT_PREFIX}/bin/moc
|
2002-04-18 22:30:02 -04:00
|
|
|
#LIB_DEPENDS+= qt-mt.3:${PORTSDIR}/x11-toolkits/qt30
|
|
|
|
BUILD_DEPENDS+= ${QT_PREFIX}/bin/moc:${PORTSDIR}/x11-toolkits/qt30
|
|
|
|
RUN_DEPENDS+= ${QT_PREFIX}/bin/moc:${PORTSDIR}/x11-toolkits/qt30
|
2001-11-04 01:18:26 -05:00
|
|
|
USE_NEWGCC= yes
|
|
|
|
QTCPPFLAGS+= -I/usr/include -I${LOCALBASE}/include -I${PREFIX}/include \
|
2001-11-13 01:35:28 -05:00
|
|
|
-I${QT_PREFIX}/include/qt
|
2001-11-05 16:29:59 -05:00
|
|
|
QTCFGLIBS+= -Wl,-export-dynamic -L${LOCALBASE}/lib -L${X11BASE}/lib -ljpeg \
|
2001-11-13 01:35:28 -05:00
|
|
|
-L${QT_PREFIX}/lib
|
2001-11-04 01:18:26 -05:00
|
|
|
.if !defined(QT_NONSTANDARD)
|
2001-11-13 01:35:28 -05:00
|
|
|
CONFIGURE_ARGS+=--with-qt-includes=${QT_PREFIX}/include \
|
2001-11-14 10:56:53 -05:00
|
|
|
--with-qt-libraries=${QT_PREFIX}/lib \
|
2001-11-04 01:18:26 -05:00
|
|
|
--with-extra-libs=${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ENV+= MOC="${MOC}" CPPFLAGS="${QTCPPFLAGS}" LIBS="${QTCFGLIBS}"
|
|
|
|
.endif
|
|
|
|
|
2001-04-03 04:14:43 -04:00
|
|
|
.else
|
|
|
|
|
|
|
|
QTCPPFLAGS?=
|
2001-04-14 16:43:29 -04:00
|
|
|
QTCGFLIBS?=
|
2001-04-03 04:14:43 -04:00
|
|
|
|
|
|
|
# Qt 2.x common stuff -- DEFAULT
|
|
|
|
LIB_DEPENDS+= qt2.4:${PORTSDIR}/x11-toolkits/qt23
|
|
|
|
USE_NEWGCC= yes
|
|
|
|
QTNAME= qt2
|
|
|
|
MOC?= ${X11BASE}/bin/moc2
|
|
|
|
QTCPPFLAGS+= -I/usr/include -D_GETOPT_H -D_PTH_H_ -D_PTH_PTHREAD_H_ \
|
|
|
|
-I${LOCALBASE}/include -I${PREFIX}/include -I${X11BASE}/include/qt2
|
|
|
|
QTCFGLIBS+= -Wl,-export-dynamic -L${LOCALBASE}/lib -L${X11BASE}/lib -ljpeg -lgcc -lstdc++
|
|
|
|
.if !defined(QT_NONSTANDARD)
|
|
|
|
CONFIGURE_ARGS+=--with-qt-includes=${X11BASE}/include/qt2 \
|
|
|
|
--with-qt-libraries=${X11BASE}/lib \
|
|
|
|
--with-extra-libs=${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ENV+= MOC="${MOC}" LIBQT="-l${QTNAME}" \
|
|
|
|
CPPFLAGS="${QTCPPFLAGS}" LIBS="${QTCFGLIBS}"
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
# End of USE_QT_VER section
|
|
|
|
|
Bring in my fixes for KDE2 for users of XFree86 4.0.x. Basically, what
this involves is this: Cull GL from Qt by default, but still provide a
Qt+GL library that may or may not have threads. Then also provide a Qt
library that has threads but not GL. This allows us to make KDE2 depend
on a library that will *not* have threads, ever. Threads will be
revisited at a later date. Ports that require GL support need to be
updated to use the hacked library, libqtgl.so.4. The net result is that
we bloat our qt2 package by 1.5-2.5MB for compatability. Also, static
qt will not have GL support.
Introduce bsd.kde.mk, which will be tested on bento before becoming
fully activated.
Replace qt22-static with qt2-static, since it's just a proxy. Update
qt-designer to depend on qt23. Also make the old hack to package the
correct lib obsolete by using PLIST_SUB instead.
Miscellaneous changes: remove LIBQTFILE from CONFIGURE_ENV, it's not
used anymore. Solve namespace pollution problems with the devel/pth and
devel/libgnugetopt ports. Hopefully.
Suggested by: ade, asami, sobomax (bsd.kde.mk)
Repocopied by: asami (qt22-static --> qt2-static)
2001-03-24 17:15:59 -05:00
|
|
|
# End of use part.
|