aboutsummaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.kde.mk29
-rw-r--r--Mk/bsd.kde4.mk29
2 files changed, 54 insertions, 4 deletions
diff --git a/Mk/bsd.kde.mk b/Mk/bsd.kde.mk
index e76a4d3dec41..421977c9d355 100644
--- a/Mk/bsd.kde.mk
+++ b/Mk/bsd.kde.mk
@@ -50,7 +50,10 @@ MASTER_SITE_KDE_kde= ${kmaster:S@%SUBDIR%/@${ksub}/@g}
# USE_KDEBASE_VER section
.if defined(USE_KDEBASE_VER)
-.if ${USE_KDEBASE_VER} == 3
+.if ${USE_KDEBASE_VER} == CVS
+LIB_DEPENDS+= konq:${PORTSDIR}/x11/kdebase
+USE_KDELIBS_VER=CVS
+.elif ${USE_KDEBASE_VER} == 3
# kdebase 3.x common stuff
LIB_DEPENDS+= konq:${PORTSDIR}/x11/kdebase3
USE_KDELIBS_VER=3
@@ -62,7 +65,11 @@ USE_KDELIBS_VER=2
# USE_KDELIBS_VER section
.if defined(USE_KDELIBS_VER)
-.if ${USE_KDELIBS_VER} == 3
+.if ${USE_KDELIBS_VER} == CVS
+LIB_DEPENDS+= kdecore:${PORTSDIR}/x11/kdelibs
+USE_QT_VER= CVS
+PREFIX= ${KDE_CVS_PREFIX}
+.elif ${USE_KDELIBS_VER} == 3
# kdelibs 3.x common stuff
LIB_DEPENDS+= kdecore:${PORTSDIR}/x11/kdelibs3
USE_QT_VER= 3
@@ -89,6 +96,24 @@ QTDIR= ${X11BASE}
.endif # defined(PREFIX)
CONFIGURE_ENV+= MOC="${MOC}" QTDIR="${QTDIR}"
+.elif ${USE_QT_VER} == CVS
+
+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"
+CONFIGURE_ENV+= MOC="${MOC}" CPPFLAGS="${QTCPPFLAGS}" LIBS="${QTCFGLIBS}" \
+ QTDIR="${QT_CVS_PREFIX}" KDEDIR="${KDE_CVS_PREFIX}"
+.endif
+
.elif ${USE_QT_VER} == 3
# Yeah, it's namespace pollution, but this is really the best place for this
diff --git a/Mk/bsd.kde4.mk b/Mk/bsd.kde4.mk
index e76a4d3dec41..421977c9d355 100644
--- a/Mk/bsd.kde4.mk
+++ b/Mk/bsd.kde4.mk
@@ -50,7 +50,10 @@ MASTER_SITE_KDE_kde= ${kmaster:S@%SUBDIR%/@${ksub}/@g}
# USE_KDEBASE_VER section
.if defined(USE_KDEBASE_VER)
-.if ${USE_KDEBASE_VER} == 3
+.if ${USE_KDEBASE_VER} == CVS
+LIB_DEPENDS+= konq:${PORTSDIR}/x11/kdebase
+USE_KDELIBS_VER=CVS
+.elif ${USE_KDEBASE_VER} == 3
# kdebase 3.x common stuff
LIB_DEPENDS+= konq:${PORTSDIR}/x11/kdebase3
USE_KDELIBS_VER=3
@@ -62,7 +65,11 @@ USE_KDELIBS_VER=2
# USE_KDELIBS_VER section
.if defined(USE_KDELIBS_VER)
-.if ${USE_KDELIBS_VER} == 3
+.if ${USE_KDELIBS_VER} == CVS
+LIB_DEPENDS+= kdecore:${PORTSDIR}/x11/kdelibs
+USE_QT_VER= CVS
+PREFIX= ${KDE_CVS_PREFIX}
+.elif ${USE_KDELIBS_VER} == 3
# kdelibs 3.x common stuff
LIB_DEPENDS+= kdecore:${PORTSDIR}/x11/kdelibs3
USE_QT_VER= 3
@@ -89,6 +96,24 @@ QTDIR= ${X11BASE}
.endif # defined(PREFIX)
CONFIGURE_ENV+= MOC="${MOC}" QTDIR="${QTDIR}"
+.elif ${USE_QT_VER} == CVS
+
+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"
+CONFIGURE_ENV+= MOC="${MOC}" CPPFLAGS="${QTCPPFLAGS}" LIBS="${QTCFGLIBS}" \
+ QTDIR="${QT_CVS_PREFIX}" KDEDIR="${KDE_CVS_PREFIX}"
+.endif
+
.elif ${USE_QT_VER} == 3
# Yeah, it's namespace pollution, but this is really the best place for this