diff options
Diffstat (limited to 'x11/kde4/Makefile')
-rw-r--r-- | x11/kde4/Makefile | 186 |
1 files changed, 48 insertions, 138 deletions
diff --git a/x11/kde4/Makefile b/x11/kde4/Makefile index ac5a553d427d..886d2fa1eac0 100644 --- a/x11/kde4/Makefile +++ b/x11/kde4/Makefile @@ -1,14 +1,12 @@ -# -*-mode: makefile-*- -# New ports collection makefile for: KDE3 -# Date created: Sun May 14 2000 00:50:02 -# Whom: Will Andrews <will@FreeBSD.org> +# New ports collection makefile for: KDE4 +# Date created: Feb 28 2008 +# Whom: Will Andrews <miwi@FreeBSD.org> # # $FreeBSD$ # -PORTNAME?= kde -PORTVERSION= ${KDE_VERSION} -PORTREVISION= 2 +PORTNAME?= kde4 +PORTVERSION= ${KDE4_VERSION} CATEGORIES= x11 kde MASTER_SITES= # empty DISTFILES= # none @@ -17,158 +15,70 @@ EXTRACT_ONLY= # empty MAINTAINER= kde@FreeBSD.org COMMENT?= The "meta-port" for KDE -# This port conflicts with the kde-lite port, so make it known. -.if defined(IS_INTERACTIVE) -CONFLICTS?= kde-lite-[0-9]* -.endif - -## This is the file where the selections made in the interactive dialog -## are saved in and initialized from. - -.if defined(KDE_PREFIX) -CONFIG_FILE= ${KDE_PREFIX}/etc/kde-meta.conf -.else -CONFIG_FILE= ${LOCALBASE}/etc/kde-meta.conf -.endif - -## The list of all modules that make up KDE, excluding the base modules -## arts, kdebase and kdelibs - -ALL_MODULES= KDEACCESSIBILITY KDEADMIN KDEARTWORK KDEVELOP KDEEDU\ - KDEGAMES KDEGRAPHICS KDEMULTIMEDIA KDENETWORK KOFFICE KDEPIM\ - KDESDK KDETOYS KDEUTILS KDEWEBDEV - -## Forwards parts of the environment to scripts/configure.kde3 - -SCRIPTS_ENV+= ALL_MODULES="${ALL_MODULES}" \ - BATCH="${BATCH}" \ - CAT="${CAT}" \ - CONFIG_FILE="${CONFIG_FILE}" \ - CURDIR="${CURDIR}" \ - ECHO="${ECHO}" \ - ECHO_MSG="${ECHO_MSG}" \ - GREP="${GREP}" \ - MKDIR="${MKDIR}" \ - PKG_DELETE="${PKG_DELETE}" \ - PKG_INFO="${PKG_INFO}" \ - REINPLACE_CMD="${REINPLACE_CMD}" \ - SED="${SED}" \ - TOUCH="${TOUCH}" \ - TR="/usr/bin/tr" \ - WRKDIRPREFIX="${WRKDIRPREFIX}" - -## If MINIMAL_KDE is defined, define WITHOUT_FOO for every -## module there is. - -.if defined(MINIMAL_KDE) -.for module in ${ALL_MODULES} -WITHOUT_${module}=yes -.endfor -.endif +OPTIONS= KDEACCESSIBILITY "Accessibility applications" on \ + KDEADMIN "KDE Administration applications" on \ + KDEARTWORK "Additional themes, sounds, etc" on \ + KDEGAMES "Games like kolf, patience, atlantik, etc" on \ + KDEEDU "Educational applications" on \ + KDEGRAPHICS "Graphics utilities like kview, kpaint, etc" on \ + KDENETWORK "Network-related programs like kopete, etc" on \ + KDEMULTIMEDIA "Multimedia utilities like noatun, etc" on \ + KDEPIM "Personal Information Management: mail, etc" on \ + KDEPLASMA "Extra plasmoids for KDE" on \ + KDESDK "KDE software development kit" on \ + KDETOYS "Miscellaneous small applications" on \ + KDEUTILS "Utilities like kcalc, kcharselect, etc" on \ + KDEWEBDEV "Website development environment" on + +USE_KDE4= kdelibs kdebase pimlibs workspace kdeprefix runtime +NO_BUILD= yes -## If the user has some WITHOUT_FOO stuff set that matters to us, -## define BATCH so interactive configuration will be skipped. +.include <bsd.port.pre.mk> -.for module in ${ALL_MODULES} -.if defined(WITHOUT_${module}) -BATCH= yes +.if !defined(WITHOUT_KDEACCESSIBILITY) +RUN_DEPENDS+= ${KDE4_PREFIX}/bin/kmag:${PORTSDIR}/accessibility/kdeaccessibility4 .endif -.endfor - -## If the user (or the packagecluster) defines batchprocessing, skip -## the interactive configuration. Otherwise declare this port properly -## as interactive, launch the selector script cand include the configuration -## file that's being returned by it (Makefile.inc). Remove the file on make -## clean. - -.if !defined(BATCH) && !defined(PACKAGE_BUILDING) && !defined(MINIMAL_KDE) -IS_INTERACTIVE= yes -PLIST_SUB+= IS_INTERACTIVE="" -.else -PLIST_SUB+= IS_INTERACTIVE="@comment " +.if !defined(WITHOUT_KDEADMIN) +RUN_DEPENDS+= ${KDE4_PREFIX}/bin/kuser:${PORTSDIR}/sysutils/kdeadmin4 .endif - -.if !defined(BATCH) -pre-fetch: - @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc - @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.kde3 - -post-configure: - @/usr/bin/clear - @${CAT} ${FILESDIR}/post-configure-message - -post-clean: - @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc - -.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc) -.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc" +.if !defined(WITHOUT_KDEARTWORK) +RUN_DEPENDS+= ${KDE4_PREFIX}/bin/kbanner.kss:${PORTSDIR}/x11-themes/kdeartwork4 .endif - -.endif # !defined(BATCH) - -## Allow to turn off every optional bit of KDE. - .if !defined(WITHOUT_KDEGAMES) -RUN_DEPENDS+= kjumpingcube:${PORTSDIR}/games/kdegames3 +RUN_DEPENDS+= ${KDE4_PREFIX}/bin/kjumpingcube:${PORTSDIR}/games/kdegames4 .endif -.if !defined(WITHOUT_KDEUTILS) -RUN_DEPENDS+= kdessh:${PORTSDIR}/misc/kdeutils3 +.if !defined(WITHOUT_KDEEDU) +RUN_DEPENDS+= ${KDE4_PREFIX}/bin/khangman:${PORTSDIR}/misc/kdeedu4 .endif -.if !defined(WITHOUT_KOFFICE) -RUN_DEPENDS+= kword:${PORTSDIR}/editors/koffice-kde3 +.if !defined(WITHOUT_KDEGRAPHICS) +RUN_DEPENDS+= ${KDE4_PREFIX}/bin/gwenview:${PORTSDIR}/graphics/kdegraphics4 .endif .if !defined(WITHOUT_KDENETWORK) -RUN_DEPENDS+= kppp:${PORTSDIR}/net/kdenetwork3 -.endif -.if !defined(WITHOUT_KDEGRAPHICS) -RUN_DEPENDS+= kview:${PORTSDIR}/graphics/kdegraphics3 +RUN_DEPENDS+= ${KDE4_PREFIX}/bin/kppp:${PORTSDIR}/net/kdenetwork4 .endif .if !defined(WITHOUT_KDEMULTIMEDIA) -RUN_DEPENDS+= kmix:${PORTSDIR}/multimedia/kdemultimedia3 +RUN_DEPENDS+= ${KDE4_PREFIX}/bin/kmix:${PORTSDIR}/multimedia/kdemultimedia4 .endif .if !defined(WITHOUT_KDEPIM) -RUN_DEPENDS+= korganizer:${PORTSDIR}/deskutils/kdepim3 +RUN_DEPENDS+= ${KDE4_PREFIX}/bin/korganizer:${PORTSDIR}/deskutils/kdepim4 .endif -.if !defined(WITHOUT_KDESDK) -RUN_DEPENDS+= cervisia:${PORTSDIR}/devel/kdesdk3 +.if !defined(WITHOUT_KDEPLASMA) +RUN_DEPENDS+= kdeplasma-addons>=4:${PORTSDIR}/deskutils/kdeplasma-addons .endif -.if !defined(WITHOUT_KDEVELOP) -RUN_DEPENDS+= kdevelop:${PORTSDIR}/devel/kdevelop +.if !defined(WITHOUT_KDETOYS) +RUN_DEPENDS+= ${KDE4_PREFIX}/bin/amor:${PORTSDIR}/x11-clocks/kdetoys4 .endif -.if !defined(WITHOUT_KDEEDU) -RUN_DEPENDS+= khangman:${PORTSDIR}/misc/kdeedu3 +.if !defined(WITHOUT_KDESDK) +RUN_DEPENDS+= ${KDE4_PREFIX}/bin/cervisia:${PORTSDIR}/devel/kdesdk4 .endif -.if !defined(WITHOUT_KDEADMIN) -RUN_DEPENDS+= kcron:${PORTSDIR}/sysutils/kdeadmin3 +.if !defined(WITHOUT_KDEUTILS) +RUN_DEPENDS+= ${KDE4_PREFIX}/bin/kdessh:${PORTSDIR}/misc/kdeutils4 .endif .if !defined(WITHOUT_KDEWEBDEV) -RUN_DEPENDS+= quanta:${PORTSDIR}/www/kdewebdev +RUN_DEPENDS+= ${KDE4_PREFIX}/bin/kommander:${PORTSDIR}/www/kdewebdev4 .endif -.if !defined(WITHOUT_KDETOYS) -RUN_DEPENDS+= amor:${PORTSDIR}/x11-clocks/kdetoys3 -.endif -.if !defined(WITHOUT_KDEARTWORK) -RUN_DEPENDS+= kbanner.kss:${PORTSDIR}/x11-themes/kdeartwork3 -.endif -.if !defined(WITHOUT_KDEACCESSIBILITY) -RUN_DEPENDS+= kmag:${PORTSDIR}/accessibility/kdeaccessibility -.endif - -.if make(package) -DEPENDS_TARGET="package" -.endif # .if make(package) - -USE_KDELIBS_VER=3 -USE_KDEBASE_VER=3 - -NO_BUILD= yes - -## Copy Makefile.inc to ${OPTION_FILE} where it will serve as memory of the -## user's last selection. do-install: -.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc) - @${INSTALL_DATA} ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc ${CONFIG_FILE} -.endif + ${DO_NADA} -.include <bsd.port.mk> +.include <bsd.port.post.mk> |