freebsd-ports/x11/kde3/Makefile

178 lines
4.6 KiB
Makefile
Raw Normal View History

2003-01-28 19:36:58 +01:00
# -*-mode: makefile-*-
Upgrade to KDE 3.0.1. The delay in this upgrade is mainly due to the rigorous testing performed on the part of the KDE/FreeBSD Project over the last three weeks. Thanks to everyone who helped test! General changes: [1] Follow KDE2 style by moving KDE core specific macros and the like to x11/kde3/Makefile.kde. [2] Fix a variety of comments or miscellaneous data to reflect that this is KDE3 and not KDE2. [3] Account for more empty directories in the PLISTs. deskutils/kdepim3: [4] More #include <malloc.h> -> #include <stdlib.h>. audio/arts: [5] Upgrade to 1.0.1. [6] Point at MASTER_SITE_KDE not my own mirror. audio/kdemultimedia3: [7] Account for the removal of the <machine/soundcard.h> symlink. Simply point all such includes at <sys/soundcard.h>. editors/koffice-kde3: [8] Get rid of #include <values.h> preemptively. devel/kdesdk3: [9] Remove cervisia from build if building on -CURRENT due to C++-unsafe sys/wait.h. The header is believed to have been fixed in newer -CURRENT (>= Jun 5) but we have not tested that. devel/kdevelop: [10] Upgrade to 2.1.1 and use KDE 3 version. [11] Remove a number of suggested dependencies that no longer fit. [12] Account for where the docs for Qt went since they got moved to fit in hier(7) better. graphics/kdegraphics3: [13] Turn off kuickshow by default because it depends on imlib, which in turn depends on gtk/glib. This will be revisited when we split up the KDE ports a bit. games/kdegames3: [14] Fix compile error on -CURRENT where kpat/freecell-solver/md5.h tried to define uint32_t after sys/types.h already had. sysutils/kdeadmin3: No particular changes. misc/kdeaddons3: No particular changes. misc/kdeedu3: [15] Re-add the huge number of missing @dirrm's. misc/kdeutils3: No particular changes. misc/kde3-i18n-* and */kde3-i18n: For the most part, no particular changes. A huge number of I18N message updates went into this release, though. french/kde3-i18n: [16] Fix build Makefile error due to tarball builder's env. net/kdenetwork3: No particular changes. x11-clocks/kdetoys3: No particular changes. x11/kdebase3: [17] Account for mkfontdir "soft" build-time dependency. If mkfontdir is available, use it to build fonts.dir where kdebase installs fonts. Otherwise, don't bother. [18] Patch ElectricEyes.desktop to use the name of the program that FreeBSD uses when you install the port for it. [19] Patches for KDM merged into KDE 3.0.1. [20] Properly fix kdm/backend/xdmcp.c string format error. x11/kdelibs3: [21] Support the KDE3 version check to make sure no one tries to install KDE2 then KDE3. The 'kde-version-check' target is centralized in x11/kde3/Makefile.kde. [22] Remove patch for kdeprint/configure.in.in. [23] Add patch to fix critical icon loader bug. x11/kde3: [24] Add Makefile.kde for centralizing KDE core-specific macros that don't belong in bsd.kde.mk. x11-toolkits/qt30: [25] Mark broken on any XFree86 version < 4 due to packing list related problems if we tried to support XFree86 3. [26] Error out if the user has Qt2 installed already. x11-wm/kdeartwork3: [27] Add USE_MESA to explicitly support the 3D screensavers. [28] Re-add a large number of missing @dirrm's. Credits: [1] [4] [5] [6] [7] [9] [10] [14] [16] [21] [22] [24] [26]: will [2] [3] [8] [15] [17] [19] [25] [27] [28]: alane [11] [12] Submitted by: Lauri Watts <lauri@kde.org> [13] Found by: mi Removed by: will [18] [23] Submitted by: Andy Fawcett <andy@athame.co.uk> Tested by: [in addition to the above, in no particular order] knu Mattias Douhan <matt@athame.co.uk> Bradley T. Hughes <bhughes@trolltech.com> Erik H. Bakke <ebakke@trolltech.com> David Johnson <david@usermode.org> JJ Behrens <jj@nttmcl.com> Michael W. Collette <metrol@metrol.net> Adriaan de Groot <adridg@sci.kun.nl> Mark Rowlands <mark.rowlands@minmail.net> Mark Stosberg <mark@summersault.com> Dave Cantrell <phaedrus@alltel.net> Mark Miller <joup@bigfoot.com> Wesley Morgan <morganw@chemikals.org> Arjan van Leeuwen <avl@operamail.com>
2002-06-15 18:16:32 +02:00
# New ports collection makefile for: KDE3
# Date created: Sun May 14 2000 00:50:02
# Whom: Will Andrews <will@FreeBSD.org>
#
1999-08-31 04:51:23 +02:00
# $FreeBSD$
#
2003-12-01 06:43:07 +01:00
PORTNAME?= kde
2003-01-28 19:36:58 +01:00
PORTVERSION= ${KDE_VERSION}
PORTREVISION= 1
CATEGORIES= x11 kde
MASTER_SITES= # empty
DISTFILES= # none
EXTRACT_ONLY= # empty
MAINTAINER= kde@FreeBSD.org
COMMENT?= The "meta-port" for KDE
2003-12-01 06:43:07 +01:00
# 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 KDEADDONS KDEADMIN KDEARTWORK KDEVELOP KDEEDU\
KDEGAMES KDEGRAPHICS KDEMULTIMEDIA KDENETWORK KOFFICE KDEPIM\
KDESDK KDETOYS KDEUTILS QUANTA
## 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="${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
## If the user has some WITHOUT_FOO stuff set that matters to us,
## define BATCH so interactive configuration will be skipped.
.for module in ${ALL_MODULES}
.if defined(WITHOUT_${module})
BATCH= yes
.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 "
.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"
.endif
.endif # !defined(BATCH)
## Allow to turn off every optional bit of KDE.
.if !defined(WITHOUT_KDEGAMES)
RUN_DEPENDS+= kjumpingcube:${PORTSDIR}/games/kdegames3
.endif
.if !defined(WITHOUT_KDEUTILS)
RUN_DEPENDS+= kdessh:${PORTSDIR}/misc/kdeutils3
.endif
.if !defined(WITHOUT_KOFFICE)
RUN_DEPENDS+= kword:${PORTSDIR}/editors/koffice-kde3
.endif
.if !defined(WITHOUT_KDENETWORK)
RUN_DEPENDS+= kppp:${PORTSDIR}/net/kdenetwork3
.endif
.if !defined(WITHOUT_KDEGRAPHICS)
RUN_DEPENDS+= kview:${PORTSDIR}/graphics/kdegraphics3
.endif
.if !defined(WITHOUT_KDEMULTIMEDIA)
RUN_DEPENDS+= kmix:${PORTSDIR}/multimedia/kdemultimedia3
.endif
.if !defined(WITHOUT_KDEPIM)
RUN_DEPENDS+= korganizer:${PORTSDIR}/deskutils/kdepim3
.endif
.if !defined(WITHOUT_KDESDK)
RUN_DEPENDS+= cervisia:${PORTSDIR}/devel/kdesdk3
.endif
.if !defined(WITHOUT_KDEVELOP)
RUN_DEPENDS+= kdevelop:${PORTSDIR}/devel/kdevelop
.endif
.if !defined(WITHOUT_KDEADDONS)
DEPENDS+= ${PORTSDIR}/misc/kdeaddons3
.endif
.if !defined(WITHOUT_KDEEDU)
RUN_DEPENDS+= khangman:${PORTSDIR}/misc/kdeedu3
.endif
.if !defined(WITHOUT_KDEADMIN)
RUN_DEPENDS+= kcron:${PORTSDIR}/sysutils/kdeadmin3
.endif
.if !defined(WITHOUT_QUANTA)
RUN_DEPENDS+= quanta:${PORTSDIR}/www/quanta
.endif
.if !defined(WITHOUT_KDETOYS)
RUN_DEPENDS+= kmoon:${PORTSDIR}/x11-clocks/kdetoys3
.endif
.if !defined(WITHOUT_KDEARTWORK)
RUN_DEPENDS+= kbanner.kss:${PORTSDIR}/x11-wm/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
Please welcome Qt3/KDE3 to our ports tree. This includes work since the original versions of these ports, so some PORTREVISIONs were bumped. See http://freebsd.kde.org/ and mailing lists linked to from there for info on the packages generated to test these ports. bsd.kde.mk has already been updated a few days ago to work with these. Some patches applied to fix a few bugs were: deskutils/kdepim3: [1] Remove kpilot from build because it wasn't ready at release. editors/koffice-kde3: [2] Fix compile time bugs for FreeBSD. misc/kdeedu3: [3] Fix compile problem with kvoctrain. x11/kdebase3: [4] Fix KDM CPU usage and login bug. Some caveats: * All PLISTs are broken for deinstall due to script bug that I didn't notice until very recently. This will be fixed when I commit an update tomorrow. These ports should still install perfectly fine though. They should also deinstall without giving errors, but will leave directories behind. * You can't install this with any other version of QT or KDE already installed. I am not sure the checks are 100% working, but fixes for these will be forthcoming. This is mainly due to a policy decision made by kde@ to make QT/KDE ports install the way the rest of the world expects it to while also still conforming to FreeBSD's hier(7). For reference on this decision, please consult the KDE/FreeBSD mailing list archives. This decision fixes 2-year-old bug reports relating to how we handled this for KDE2 vs KDE1. Submitted by: [1] Adrian de Groot <adridg@cs.kun.nl>, [2] David Faure <faure@kde.org>, Andy Fawcett <andy@athame.co.uk> Lauri Watts <lauri@kde.org> [3] Lauri Watts <lauri@kde.org> [4] Alan Eldridge <alane@geeksrus.net> Oswald Buddenhagen <ossi@kde.org> Reviewed by: kde
2002-04-22 01:47:50 +02:00
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
.include <bsd.port.mk>