2003-01-28 18:36:58 +00:00
|
|
|
#-*- mode: Makefile; tab-width: 4; -*-
|
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 22:15:59 +00:00
|
|
|
# ex:ts=4
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# Please view me with 4 column tabs!
|
|
|
|
|
2005-01-09 10:12:07 +00:00
|
|
|
# Please make sure all changes to this file are past through the maintainer.
|
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 22:15:59 +00:00
|
|
|
# Do not commit them yourself (unless of course you're the Port's Wraith ;).
|
2006-01-29 04:54:22 +00:00
|
|
|
KDE_MAINTAINER= kde@FreeBSD.org
|
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 22:15:59 +00:00
|
|
|
|
|
|
|
# This section contains the USE_ definitions.
|
|
|
|
# XXX: Write HAVE_ definitions sometime.
|
|
|
|
|
2001-11-04 06:18:26 +00:00
|
|
|
# USE_QT_VER - Says that the port uses the Qt toolkit. Possible values:
|
2005-11-05 15:55:24 +00:00
|
|
|
# 3; each specify the major version of Qt to use.
|
2001-11-04 06:18:26 +00:00
|
|
|
# USE_KDELIBS_VER - Says that the port uses KDE libraries. Possible values:
|
2004-07-23 14:53:13 +00:00
|
|
|
# 3 specifies the major version of KDE to use.
|
2001-11-04 06:18:26 +00:00
|
|
|
# This implies USE_QT of the appropriate version.
|
|
|
|
# USE_KDEBASE_VER - Says that the port uses the KDE base. Possible values:
|
2004-07-23 14:53:13 +00:00
|
|
|
# 3 specifies the major version of KDE to use.
|
2001-11-04 06:18:26 +00:00
|
|
|
# This implies USE_KDELIBS of the appropriate version.
|
|
|
|
|
2002-10-11 07:35:44 +00:00
|
|
|
# tagged MASTER_SITE_KDE_kde
|
|
|
|
kmaster= ${MASTER_SITE_KDE:S@%/@%/:kde@g}
|
|
|
|
.if !defined(MASTER_SITE_SUBDIR)
|
|
|
|
MASTER_SITE_KDE_kde= ${kmaster:S@%SUBDIR%/@@g}
|
|
|
|
.else
|
|
|
|
ksub=${MASTER_SITE_SUBDIR}
|
|
|
|
MASTER_SITE_KDE_kde= ${kmaster:S@%SUBDIR%/@${ksub}/@g}
|
2003-01-28 18:36:58 +00:00
|
|
|
.endif # !defined(MASTER_SITE_SUBDIR)
|
2002-10-11 07:35:44 +00:00
|
|
|
|
2001-04-14 20:43:29 +00:00
|
|
|
# USE_KDEBASE_VER section
|
|
|
|
.if defined(USE_KDEBASE_VER)
|
2003-06-23 18:14:38 +00:00
|
|
|
.if ${USE_KDEBASE_VER} == CVS
|
2004-08-30 19:55:42 +00:00
|
|
|
LIB_DEPENDS+= kfontinst:${PORTSDIR}/x11/kdebase
|
2003-06-23 18:14:38 +00:00
|
|
|
USE_KDELIBS_VER=CVS
|
|
|
|
.elif ${USE_KDEBASE_VER} == 3
|
2001-11-04 06:18:26 +00:00
|
|
|
# kdebase 3.x common stuff
|
2004-08-30 19:55:42 +00:00
|
|
|
LIB_DEPENDS+= kfontinst:${PORTSDIR}/x11/kdebase3
|
2001-11-04 06:18:26 +00:00
|
|
|
USE_KDELIBS_VER=3
|
2003-01-28 18:36:58 +00:00
|
|
|
.endif # ${USE_KDEBASE_VER} == 3
|
|
|
|
.endif # defined(USE_KDEBASE_VER)
|
2001-04-14 20:43:29 +00:00
|
|
|
|
2001-03-25 23:22:46 +00: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 22:15:59 +00:00
|
|
|
.if defined(USE_KDELIBS_VER)
|
2004-05-24 00:34:38 +00:00
|
|
|
|
|
|
|
## This is needed for configure scripts to figure out
|
|
|
|
## which threads lib to use
|
|
|
|
|
2004-05-21 22:47:46 +00:00
|
|
|
CONFIGURE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}"
|
2004-05-24 00:34:38 +00:00
|
|
|
|
|
|
|
## XXX - This really belongs into bsd.port.mk
|
|
|
|
.if !defined(_NO_KDE_CONFTARGET_HACK)
|
|
|
|
CONFIGURE_TARGET=
|
2004-12-05 11:24:07 +00:00
|
|
|
CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} \
|
2004-12-29 21:51:42 +00:00
|
|
|
--x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include \
|
|
|
|
--disable-as-needed
|
2004-05-24 00:34:38 +00:00
|
|
|
.endif
|
|
|
|
|
2003-06-23 18:14:38 +00:00
|
|
|
.if ${USE_KDELIBS_VER} == CVS
|
2004-08-30 19:55:42 +00:00
|
|
|
LIB_DEPENDS+= kimproxy:${PORTSDIR}/x11/kdelibs
|
2003-06-23 18:14:38 +00:00
|
|
|
USE_QT_VER= CVS
|
|
|
|
PREFIX= ${KDE_CVS_PREFIX}
|
|
|
|
.elif ${USE_KDELIBS_VER} == 3
|
2001-11-04 06:18:26 +00:00
|
|
|
# kdelibs 3.x common stuff
|
2004-08-30 19:55:42 +00:00
|
|
|
LIB_DEPENDS+= kimproxy:${PORTSDIR}/x11/kdelibs3
|
2001-11-04 06:18:26 +00:00
|
|
|
USE_QT_VER= 3
|
2002-07-04 19:35:44 +00:00
|
|
|
PREFIX= ${KDE_PREFIX}
|
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 22:15:59 +00:00
|
|
|
.else
|
2006-02-01 09:13:29 +00:00
|
|
|
IGNORE= Unsupported value in USE_KDELIBS_VER
|
2003-01-28 18:36:58 +00:00
|
|
|
.endif # ${USE_KDELIBS_VER} == 3
|
|
|
|
.endif # defined(USE_KDELIBS_VER)
|
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 22:15:59 +00:00
|
|
|
|
2001-03-25 23:22:46 +00: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 22:15:59 +00:00
|
|
|
|
2001-04-03 08:14:43 +00:00
|
|
|
# USE_QT_VER section
|
2005-11-05 15:55:24 +00:00
|
|
|
.if ${USE_QT_VER} == CVS
|
2003-06-23 18:14:38 +00:00
|
|
|
|
|
|
|
KDE_CVS_PREFIX?= ${LOCALBASE}/kde-cvs
|
|
|
|
QT_CVS_PREFIX?= ${X11BASE}/qt-cvs
|
|
|
|
QTCPPFLAGS?=
|
|
|
|
QTCFGLIBS?=
|
|
|
|
|
|
|
|
MOC?= ${QT_CVS_PREFIX}/bin/moc
|
|
|
|
BUILD_DEPENDS+= ${MOC}:${PORTSDIR}/x11-toolkits/qt-copy
|
|
|
|
RUN_DEPENDS+= ${MOC}:${PORTSDIR}/x11-toolkits/qt-copy
|
|
|
|
QTCPPFLAGS+= -D_GETOPT_H # added to work around broken getopt.h #inc
|
|
|
|
.if !defined (QT_NONSTANDARD)
|
|
|
|
CONFIGURE_ARGS+=--with-extra-libs="${LOCALBASE}/lib" \
|
|
|
|
--with-extra-includes="${LOCALBASE}/include"
|
2004-02-05 01:23:10 +00:00
|
|
|
CONFIGURE_ENV+= MOC="${MOC}" CPPFLAGS="${CPPFLAGS} ${QTCPPFLAGS}" LIBS="${QTCFGLIBS}" \
|
2003-06-23 18:14:38 +00:00
|
|
|
QTDIR="${QT_CVS_PREFIX}" KDEDIR="${KDE_CVS_PREFIX}"
|
|
|
|
.endif
|
|
|
|
|
2002-05-05 09:55:30 +00:00
|
|
|
.elif ${USE_QT_VER} == 3
|
2001-11-04 06:18:26 +00:00
|
|
|
|
2002-07-04 19:35:44 +00:00
|
|
|
# Yeah, it's namespace pollution, but this is really the best place for this
|
2003-04-05 22:16:12 +00:00
|
|
|
# stuff. Arts does NOT use it anymore.
|
2006-03-30 20:30:29 +00:00
|
|
|
KDE_VERSION= 3.5.2
|
2003-01-28 18:36:58 +00:00
|
|
|
KDE_ORIGVER= ${KDE_VERSION}
|
2002-07-04 19:35:44 +00:00
|
|
|
KDE_PREFIX?= ${LOCALBASE}
|
|
|
|
|
2001-11-04 06:18:26 +00:00
|
|
|
QTCPPFLAGS?=
|
|
|
|
QTCGFLIBS?=
|
|
|
|
|
|
|
|
# Qt 3.x common stuff
|
2002-04-19 02:30:02 +00:00
|
|
|
QT_PREFIX?= ${X11BASE}
|
2001-11-13 06:35:28 +00:00
|
|
|
MOC?= ${QT_PREFIX}/bin/moc
|
2004-03-09 19:41:12 +00:00
|
|
|
#LIB_DEPENDS+= qt-mt.3:${PORTSDIR}/x11-toolkits/qt33
|
|
|
|
BUILD_DEPENDS+= ${QT_PREFIX}/bin/moc:${PORTSDIR}/x11-toolkits/qt33
|
|
|
|
RUN_DEPENDS+= ${QT_PREFIX}/bin/moc:${PORTSDIR}/x11-toolkits/qt33
|
2002-06-16 20:27:51 +00:00
|
|
|
QTCPPFLAGS+= -I${LOCALBASE}/include -I${PREFIX}/include \
|
2002-09-15 21:50:36 +00:00
|
|
|
-I${QT_PREFIX}/include -D_GETOPT_H
|
2001-11-05 21:29:59 +00:00
|
|
|
QTCFGLIBS+= -Wl,-export-dynamic -L${LOCALBASE}/lib -L${X11BASE}/lib -ljpeg \
|
2001-11-13 06:35:28 +00:00
|
|
|
-L${QT_PREFIX}/lib
|
2006-04-03 09:34:22 +00:00
|
|
|
.if defined(PACKAGE_BUILDING)
|
|
|
|
TMPDIR?= /tmp
|
2006-04-04 23:02:40 +00:00
|
|
|
MAKE_ENV+= TMPDIR="${TMPDIR}"
|
|
|
|
CONFIGURE_ENV+= TMPDIR="${TMPDIR}"
|
2006-04-03 09:34:22 +00:00
|
|
|
.endif
|
|
|
|
|
2001-11-04 06:18:26 +00:00
|
|
|
.if !defined(QT_NONSTANDARD)
|
2001-11-13 06:35:28 +00:00
|
|
|
CONFIGURE_ARGS+=--with-qt-includes=${QT_PREFIX}/include \
|
2001-11-14 15:56:53 +00:00
|
|
|
--with-qt-libraries=${QT_PREFIX}/lib \
|
2004-02-05 01:23:10 +00:00
|
|
|
--with-extra-libs=${LOCALBASE}/lib \
|
|
|
|
--with-extra-includes=${LOCALBASE}/include
|
|
|
|
CONFIGURE_ENV+= MOC="${MOC}" CPPFLAGS="${CPPFLAGS} ${QTCPPFLAGS}" LIBS="${QTCFGLIBS}"
|
2003-01-28 18:36:58 +00:00
|
|
|
.endif # !defined(QT_NONSTANDARD)
|
2004-07-23 14:53:13 +00:00
|
|
|
.else
|
2006-02-01 09:13:29 +00:00
|
|
|
IGNORE= Unsupported value of USE_QT_VER
|
2003-01-28 18:36:58 +00:00
|
|
|
.endif # defined(USE_QT_VER)
|
|
|
|
|
2001-04-03 08:14:43 +00:00
|
|
|
# End of USE_QT_VER section
|
|
|
|
|
2003-01-28 18:36:58 +00:00
|
|
|
# Assemble plist from parts
|
|
|
|
# <alane@freebsd.org> 2002-12-06
|
|
|
|
.if defined(KDE_BUILD_PLIST)
|
|
|
|
PLIST?= ${WRKDIR}/plist
|
|
|
|
PLIST_BASE?= plist.base
|
|
|
|
PLIST_APPEND?=
|
|
|
|
plist_base=${FILESDIR}/${PLIST_BASE}
|
|
|
|
plist_base_rm=${FILESDIR}/${PLIST_BASE}.rm
|
|
|
|
plist_append=${PLIST_APPEND:C:([A-Za-z0-9._]+):${FILESDIR}/\1:}
|
|
|
|
plist_append_rm=${PLIST_APPEND:C:([A-Za-z0-9._]+):${FILESDIR}/\1.rm:}
|
|
|
|
kde-plist:
|
|
|
|
${CAT} ${plist_base} ${plist_append} 2>/dev/null >${PLIST}
|
|
|
|
-${CAT} ${plist_append_rm} ${plist_base_rm} 2>/dev/null >>${PLIST};true
|
|
|
|
.PHONY: kde-plist
|
|
|
|
pre-build: kde-plist
|
|
|
|
.endif # defined(KDE_BUILD_PLIST)
|