1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/x11/kde4-workspace/Makefile

97 lines
2.8 KiB
Makefile
Raw Normal View History

2003-01-28 18:36:58 +00:00
# -*-mode: makefile-*-
# New ports collection makefile for: kdebase3.1
# Date created: 29 November 2002
# Whom: kde@freebsd.org
#
1999-08-31 02:51:23 +00:00
# $FreeBSD$
#
2000-04-13 19:19:05 +00:00
PORTNAME= kdebase
2003-05-19 19:43:36 +00:00
PORTVERSION= ${KDE_VERSION}
PORTREVISION= 1
2003-01-28 18:36:58 +00:00
CATEGORIES= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
2004-08-30 19:55:42 +00:00
MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src
2001-09-10 20:22:28 +00:00
DIST_SUBDIR= KDE
2003-01-28 18:36:58 +00:00
MAINTAINER= kde@FreeBSD.org
COMMENT= Basic applications for the KDE system
1998-09-30 02:07:28 +00:00
BUILD_DEPENDS= mkfontdir:${X_CLIENTS_PORT} \
xmkmf:${X_IMAKE_PORT}
2005-03-20 18:17:55 +00:00
LIB_DEPENDS= sasl2:${PORTSDIR}/security/cyrus-sasl2 \
smbclient:${PORTSDIR}/net/samba-libsmbclient \
usb:${PORTSDIR}/devel/libusb
CONFLICTS= kdeartwork-3.[2-3]* kdelibs-3.[0-3]* kdeutils-3.[0-2]*
2004-08-30 19:55:42 +00:00
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-21 23:47:50 +00:00
USE_KDELIBS_VER=3
2003-01-28 18:36:58 +00:00
PREFIX= ${KDE_PREFIX}
2005-03-20 18:17:55 +00:00
USE_GETOPT_LONG=yes
USE_OPENLDAP= yes
1999-02-28 21:48:09 +00:00
USE_BZIP2= yes
2003-01-28 18:36:58 +00:00
USE_GMAKE= yes
USE_XPM= yes
USE_REINPLACE= yes
PKGMESSAGE= ${WRKDIR}/MESSAGE
PKGINSTALL= ${WRKDIR}/INSTALL
2003-01-28 18:36:58 +00:00
GNU_CONFIGURE= yes
2003-01-28 18:36:58 +00:00
INSTALLS_SHLIB= yes
LDCONFIG_DIRS+= %%PREFIX%%/lib %%PREFIX%%/lib/kde3
2005-03-20 18:17:55 +00:00
CONFIGURE_ENV+= RUN_KAPPFINDER=no kde_cv_utmp_file=/var/run/utmp
CONFIGURE_ARGS+=--without-java \
2003-01-28 18:36:58 +00:00
--with-qt-dir=${X11BASE} \
--with-xdmdir=${X11BASE}/lib/X11/xdm
2004-08-30 19:55:42 +00:00
OPTIONS= ARTSWRAPPER "Suid wrapper for aRts, req'd for realtime prio" on
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 16:16:32 +00:00
.include "${.CURDIR}/../../x11/kde3/Makefile.kde"
.include <bsd.port.pre.mk>
.if ${X_WINDOW_SYSTEM:L} == xorg
RUN_DEPENDS= kompmgr:${PORTSDIR}/x11-wm/kompmgr
.endif
2004-04-20 09:08:07 +00:00
.if !defined(WITHOUT_ARTSWRAPPER)
RUN_DEPENDS+= artswrapper:${PORTSDIR}/audio/artswrapper
.endif
post-extract:
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-21 23:47:50 +00:00
@${ECHO} "#!/bin/sh" > ${WRKSRC}/mkpamserv
@${ECHO} "exit 0" >> ${WRKSRC}/mkpamserv
Update to 20000724A (custom-rolled snapshot). Rejoice, because now Konqueror can load HTML documents, KOffice works semi-well, and KDE2 in general seems less buggy. Only kdeutils was left out of this mega-update. However, it should return soon. :-) The massive reduction in patches is mostly the result of using perl regex replacement. This reduces the amount of time it will take in the future to upgrade these ports, and load on the repository. QT 2.2.0beta0 (aka qt-copy) is officially enabled for the express purpose of allowing KDE2 to compile. It is available in the qt22 port. Additionally, GIF support is re-enabled in both Qt2 ports, so that people can now read GIF images. GIF support is enabled through an internal GIF reader in Qt, and requires no patented libraries. Special effort was made to ensure that people do not install both qt21 and qt22 ports at the same time. I'd like to take a moment to thank the following people for their help: Alex Zepeda <jazepeda@pacbell.net>, Stephan Kulow <coolo@kde.org>, Harri Porten <porten@kde.org>, Waldo Bastian <waba@kde.org>, Marc G. Fournier <scrappy@hub.org>, Arun Sharma <adsharma@sharmas.dhs.org>, Matthias Hoelzer-Kluepfel <mhk@caldera.de>, and many others. Over 150 hours of hard work, testing, etc. were put into this update. Another couple hundred of hours were spent by CPUs trying to compile this behemoth. :-> Special thanks to: Physics Computer Network @ Purdue staff, especially C. Stephen Gunn <csg@physics.purdue.edu>, for giving me access to an extremely fast machine for doing test builds (it performed 12 full builds of the entire suite in the last 7 days). PR: 18838 Submitted by: Arun Sharma <adsharma@sharmas.dhs.org> Approved by: imura, asami
2000-07-29 02:44:58 +00:00
pre-configure:
${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE},g" \
${WRKSRC}/kdeprint/descriptions/Makefile.in
Update to KDE 2.2: * All patches except sysutils/kdeadmin/files/patch-rpmMessages.c: - Either obsoleted or merged into KDE. * All pkg-plists: - Huge diffs are due to mass conversion from static HTML pages to XML/XSL versions. * audio/kdemultimedia2: - aRts + Noatun, etc. now work and play MP3s et al properly, using the mpg123 aRtsplugin. Remove mpeglib[,_artsplug] from compile. * converters/kdesupport2: - Obsolete. No longer used in this version of KDE. * deskutils/kdepim: - Use autoconf and account for brokenness in the configure script by replacing invocations of INSTALL under libical with the proper incantations. - Per David O'Brien's request, move libimap to libkimap; this was performed by Rik Hemsley <rikkus@kde.org>. * devel/kdesdk: - New module with some helpful tools. One in particular that seems demanded is ``kbabel'', which, as I've been told, is a translator's wet dream. - Workaround dumb problem in kbabel's libgettext (which I could not figure out how to remove) by replacing its error() with errc(). KBabel seems to run fine with this patch. * devel/kdevelop: - Fix lame check for libkdeui.so.* by replacing it with just a check for libkdeui.so. It's been/being removed from kdevelop after 2.2. * editors/koffice: - Fix kivio compile errors by substituting in PTHREAD_LIBS in the correct place. Compensate for kivio's dependency on pthreads by changing kivio to use LD_PRELOAD=/usr/lib/libc_r.so in kivio.desktop. * games/kdegames2: - Some new games. * graphics/kdegraphics2: - Fix link errors in libkscan and kamera where they require gettext (ie: add -lintl). - Fix compile error in kamera.cpp which is dependent on a correctly done gphoto2.. of course, this will only help people who've manually installed gphoto2 themselves. * net/kdenetwork2: - Mimelib was moved here (reason for removal of kdesupport2). * misc/kdeaddons: - New module to FreeBSD ports; some simple addons for KDE2. Suggested by Lauri Watts <lauri@kde.org>. * misc/kdeutils2: - Added a couple manpages. * x11-clocks/kdetoys2: - Some new apps. * sysutils/kdeadmin: - Remove kuser from compile because it has some problems. ;\ * x11/kdelibs2: - Add libFAM dependency to help people who run FAM; FAM increases the overall desktop responsiveness. Submitted by Lauri Watts <lauri@kde.org>. - Add CUPS dependency to bring in KDE's new print system. - Add bzip2/libxml2 dependencies to support the new help kioslave. - Disable installation of libltdl stuff to prevent conflicts with other stuff. Submitted by wjv. - Add pkg-req script to avoid conflicts with kdelibs11; add to Makefile too. Submitted by benno. - Be sure to remove the pth header conflicts stuff from the arts/mcop_mt section. - Fix problem with configure trying to find -lfam in the wrong place. - Remove kspell and api subdirs from doc; we don't need them, and there are problems trying to build/install them. Submitted by Lauri Watts <lauri@kde.org>. * x11/kdebase2: - Solve link permissions problem by changing the modes on files installed by kdesktop/init/Templates to 644. Submitted by Jim Durham <durham@w2xo.pgh.pa.us>. * x11/kde2: - Bump version; no other changes. Special thanks to Lauri Watts <lauri@kde.org> for helping me test packages generated by these changes on a virgin system. I believe that this is the best-tested update I've ever done for KDE, and it really shines this time around. I just noticed there are a couple other PRs in the PR db that need to be addressed. I will take care of those by tomorrow. Sorry... PR: 22735, 28549 Blanket approval by: demon (kdesdk, kdevelop)
2001-08-15 12:43:08 +00:00
post-configure:
2003-01-28 18:36:58 +00:00
${REINPLACE_CMD} -e "s@^\s*Exec=.*\$$@Exec=ElectricEyes@" \
${WRKSRC}/kappfinder/apps/Graphics/ElectricEyes.desktop
${REINPLACE_CMD} -e 's/444/644/g' \
${WRKSRC}/kdesktop/init/Templates/Makefile
Update to KDE 2.2: * All patches except sysutils/kdeadmin/files/patch-rpmMessages.c: - Either obsoleted or merged into KDE. * All pkg-plists: - Huge diffs are due to mass conversion from static HTML pages to XML/XSL versions. * audio/kdemultimedia2: - aRts + Noatun, etc. now work and play MP3s et al properly, using the mpg123 aRtsplugin. Remove mpeglib[,_artsplug] from compile. * converters/kdesupport2: - Obsolete. No longer used in this version of KDE. * deskutils/kdepim: - Use autoconf and account for brokenness in the configure script by replacing invocations of INSTALL under libical with the proper incantations. - Per David O'Brien's request, move libimap to libkimap; this was performed by Rik Hemsley <rikkus@kde.org>. * devel/kdesdk: - New module with some helpful tools. One in particular that seems demanded is ``kbabel'', which, as I've been told, is a translator's wet dream. - Workaround dumb problem in kbabel's libgettext (which I could not figure out how to remove) by replacing its error() with errc(). KBabel seems to run fine with this patch. * devel/kdevelop: - Fix lame check for libkdeui.so.* by replacing it with just a check for libkdeui.so. It's been/being removed from kdevelop after 2.2. * editors/koffice: - Fix kivio compile errors by substituting in PTHREAD_LIBS in the correct place. Compensate for kivio's dependency on pthreads by changing kivio to use LD_PRELOAD=/usr/lib/libc_r.so in kivio.desktop. * games/kdegames2: - Some new games. * graphics/kdegraphics2: - Fix link errors in libkscan and kamera where they require gettext (ie: add -lintl). - Fix compile error in kamera.cpp which is dependent on a correctly done gphoto2.. of course, this will only help people who've manually installed gphoto2 themselves. * net/kdenetwork2: - Mimelib was moved here (reason for removal of kdesupport2). * misc/kdeaddons: - New module to FreeBSD ports; some simple addons for KDE2. Suggested by Lauri Watts <lauri@kde.org>. * misc/kdeutils2: - Added a couple manpages. * x11-clocks/kdetoys2: - Some new apps. * sysutils/kdeadmin: - Remove kuser from compile because it has some problems. ;\ * x11/kdelibs2: - Add libFAM dependency to help people who run FAM; FAM increases the overall desktop responsiveness. Submitted by Lauri Watts <lauri@kde.org>. - Add CUPS dependency to bring in KDE's new print system. - Add bzip2/libxml2 dependencies to support the new help kioslave. - Disable installation of libltdl stuff to prevent conflicts with other stuff. Submitted by wjv. - Add pkg-req script to avoid conflicts with kdelibs11; add to Makefile too. Submitted by benno. - Be sure to remove the pth header conflicts stuff from the arts/mcop_mt section. - Fix problem with configure trying to find -lfam in the wrong place. - Remove kspell and api subdirs from doc; we don't need them, and there are problems trying to build/install them. Submitted by Lauri Watts <lauri@kde.org>. * x11/kdebase2: - Solve link permissions problem by changing the modes on files installed by kdesktop/init/Templates to 644. Submitted by Jim Durham <durham@w2xo.pgh.pa.us>. * x11/kde2: - Bump version; no other changes. Special thanks to Lauri Watts <lauri@kde.org> for helping me test packages generated by these changes on a virgin system. I believe that this is the best-tested update I've ever done for KDE, and it really shines this time around. I just noticed there are a couple other PRs in the PR db that need to be addressed. I will take care of those by tomorrow. Sorry... PR: 22735, 28549 Blanket approval by: demon (kdesdk, kdevelop)
2001-08-15 12:43:08 +00:00
post-build:
@${CAT} ${PKGDIR}/pkg-message | ${SED} -e 's,%%PREFIX%%,${PREFIX},g' \
| ${SED} -e 's,%%X11BASE%%,${X11BASE},g' > ${PKGMESSAGE}
@${CAT} ${PKGDIR}/pkg-install | ${SED} -e 's,%%PREFIX%%,${PREFIX},g' \
| ${SED} -e 's,%%X11BASE%%,${X11BASE},g' > ${PKGINSTALL}
@${CAT} ${FILESDIR}/genkdmconf.sh | ${SED} -e 's,%%PREFIX%%,${PREFIX},g' \
2004-08-30 19:55:42 +00:00
| ${SED} -e 's,%%X11BASE%%,${X11BASE},g' > ${WRKDIR}/genkdmconf.sh
post-install:
2004-08-30 19:55:42 +00:00
${INSTALL_DATA} ${FILESDIR}/freebsd.keytab ${PREFIX}/share/apps/konsole/
2003-01-28 18:36:58 +00:00
${RM} -f ${PREFIX}/share/apps/konsole/linux.desktop
${CHMOD} u+s ${PREFIX}/bin/kcheckpass
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-21 23:47:50 +00:00
${CHGRP} kmem ${PREFIX}/bin/ksysguardd && \
${CHMOD} g+s ${PREFIX}/bin/ksysguardd
2004-08-30 19:55:42 +00:00
${INSTALL_SCRIPT} ${WRKDIR}/genkdmconf.sh ${PREFIX}/etc/rc.d/
.if !defined(PACKAGE_BUILDING)
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>