diff options
author | will <will@FreeBSD.org> | 2003-06-24 02:14:38 +0800 |
---|---|---|
committer | will <will@FreeBSD.org> | 2003-06-24 02:14:38 +0800 |
commit | 30ff36b878ab2aa305cda0d58ee827f372ab7140 (patch) | |
tree | eac8a47b74c14b147914a019462f5865cb1c1c44 | |
parent | 78cbc3e8d917af933b4f1920dd85fcaa65eae3fa (diff) | |
download | freebsd-ports-gnome-30ff36b878ab2aa305cda0d58ee827f372ab7140.tar.gz freebsd-ports-gnome-30ff36b878ab2aa305cda0d58ee827f372ab7140.tar.zst freebsd-ports-gnome-30ff36b878ab2aa305cda0d58ee827f372ab7140.zip |
Add support for CVS builds (using a different repository). Tested on the
FruitSalad portbuild cluster.
-rw-r--r-- | Mk/bsd.kde.mk | 29 | ||||
-rw-r--r-- | Mk/bsd.kde4.mk | 29 |
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 |