1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/x11/kdelibs3/Makefile

113 lines
3.6 KiB
Makefile
Raw Normal View History

2003-01-28 18:36:58 +00: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 16:16:32 +00:00
# New ports collection makefile for: KDE libraries 3
2003-01-28 18:36:58 +00:00
# Date created: 2 November 2001
# Whom: will@cvs.kde.org
#
1999-08-31 02:51:23 +00:00
# $FreeBSD$
2006-01-11 17:02:01 +00:00
#
2000-04-13 19:19:05 +00:00
PORTNAME= kdelibs
PORTVERSION= ${KDE_VERSION}
PORTREVISION= 2
CATEGORIES= x11 kde ipv6
MASTER_SITES= ${MASTER_SITE_KDE}
2004-08-30 19:55:42 +00:00
MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src
PKGNAMESUFFIX?= # empty
2001-09-10 20:22:28 +00:00
DIST_SUBDIR= KDE
2003-01-28 18:36:58 +00:00
MAINTAINER= kde@FreeBSD.org
COMMENT= Base set of libraries needed by KDE programs
BUILD_DEPENDS= mkfontdir:${X_CLIENTS_PORT}
2004-08-30 19:55:42 +00:00
LIB_DEPENDS= IlmImf:${PORTSDIR}/graphics/OpenEXR \
art_lgpl_2.5:${PORTSDIR}/graphics/libart_lgpl \
2003-01-28 18:36:58 +00:00
artsc.0:${PORTSDIR}/audio/arts \
2004-09-03 16:58:52 +00:00
aspell:${PORTSDIR}/textproc/aspell \
2005-03-20 18:17:55 +00:00
dns_sd:${PORTSDIR}/net/mDNSResponder \
idn:${PORTSDIR}/dns/libidn \
jasper:${PORTSDIR}/graphics/jasper \
2005-03-20 18:17:55 +00:00
pcre:${PORTSDIR}/devel/pcre \
2006-06-05 19:24:58 +00:00
thai:${PORTSDIR}/devel/libthai \
tiff.4:${PORTSDIR}/graphics/tiff \
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
xml2.5:${PORTSDIR}/textproc/libxml2 \
2005-03-20 18:17:55 +00:00
xslt.2:${PORTSDIR}/textproc/libxslt
RUN_DEPENDS= kdehier>0:${PORTSDIR}/misc/kdehier \
iceauth:${X_CLIENTS_PORT} \
${FONTSCALE}:${X_FONTS_TTF_PORT} \
${FONTENCOD}:${X_FONTS_ENCODINGS_PORT} \
${LOCALBASE}/share/icons/hicolor/index.theme:${PORTSDIR}/misc/hicolor-icon-theme
2002-09-12 11:13:34 +00:00
2006-01-08 19:32:36 +00:00
CONFLICTS+= kdeadmin-3.[0-3].* kdeadmin-3.4.[0-1]* kdeartwork-3.[2-3]* kdebase-3.[0-4]* kdepim-3.2*
.if defined(WITHOUT_CUPS) || defined(KDE_WITHOUT_CUPS)
CONFLICTS+= kdelibs-[0-9]*
PKGNAMESUFFIX= -nocups
CONFIGURE_ARGS+=--disable-cups
PLIST= ${.CURDIR}/../kdelibs3-nocups/pkg-plist
.else
CONFLICTS+= kdelibs-nocups-[0-9]*
LIB_DEPENDS+= cups:${PORTSDIR}/print/cups-base
.endif
2004-12-13 20:12:15 +00:00
1999-02-28 21:48:09 +00:00
USE_BZIP2= yes
USE_FAM= yes
USE_GETTEXT= yes
2003-01-28 18:36:58 +00:00
USE_GMAKE= yes
USE_OPENSSL= yes
USE_QT_VER= 3
PREFIX= ${KDE_PREFIX}
2003-01-28 18:36:58 +00:00
USE_LDCONFIG= yes
2003-01-28 18:36:58 +00:00
LDCONFIG_DIRS+= %%PREFIX%%/lib %%PREFIX%%/lib/kde3
2006-03-30 20:30:29 +00:00
USE_AUTOTOOLS= libtool:15
CONFIGURE_TARGET=# empty
2003-01-28 18:36:58 +00:00
CONFIGURE_ARGS+=--disable-ltdl-install \
2006-01-08 19:32:36 +00:00
--disable-as-needed \
--enable-mt \
--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} \
2006-01-08 19:32:36 +00:00
--x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include \
2006-06-05 19:24:58 +00:00
--with-libthai=yes \
--with-lua=no \
2006-06-05 19:24:58 +00:00
--with-ssl-dir=${OPENSSLBASE}
CONFIGURE_ENV+= libltdl_cv_shlibext=".so"
FONTSCALE= ${X11BASE}/lib/X11/fonts/TTF/luximb.ttf
FONTENCOD= ${X11BASE}/lib/X11/fonts/encodings/encodings.dir
.include "${.CURDIR}/../../x11/kde3/Makefile.kde"
.include <bsd.port.pre.mk>
# bzip2 is required as a libdepend for the help: kioslave
2003-01-28 18:36:58 +00:00
.if !exists(/usr/bin/bzip2)
LIB_DEPENDS+= bz2.1:${PORTSDIR}/archivers/bzip2
.endif # !exists(/usr/bin/bzip2)
2002-04-22 02:00:06 +00:00
pre-configure:
${REINPLACE_CMD} "s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/kdeprint/cups/kmcupsmanager.cpp
${REINPLACE_CMD} -e "s,ac_cups_share_test=.*,ac_cups_share_test=\`\$$kde_cups_config --datadir\`,g" \
-e "s,pcreposix.h,pcre.h,g" ${WRKSRC}/configure
2006-09-12 23:26:52 +00:00
${REINPLACE_CMD} -e "s,applications.menu,kde-applications.menu,g" \
${WRKSRC}/kded/Makefile.in ${WRKSRC}/kded/kbuildsycoca.cpp
${REINPLACE_CMD} -e "s,hicolor,,g" ${WRKSRC}/pics/Makefile.in
${REINPLACE_CMD} -e "s,/etc/exports,/nonexistent,g" \
-e "s,/etc/samba/,${LOCALBASE}/etc/,g" \
-e "s,/etc/security/,${LOCALBASE}/etc/,g" \
-e "s,'fileshare','network',g" \
${WRKSRC}/kio/misc/fileshareset
2006-09-12 23:26:52 +00:00
${MV} ${WRKSRC}/kded/applications.menu ${WRKSRC}/kded/kde-applications.menu
post-configure:
${TOUCH} ${WRKSRC}/dcop/dcop-path.h.in
2005-03-20 18:17:55 +00:00
${TOUCH} ${WRKSRC}/kdecore/kdemacros.h.in
${TOUCH} ${WRKSRC}/kio/kssl/ksslconfig.h.in
2006-01-11 17:02:01 +00:00
${TOUCH} ${WRKSRC}/kjs/global.h.in
2002-04-22 02:00:06 +00:00
post-install:
2003-01-28 18:36:58 +00:00
${MKDIR} ${PREFIX}/etc/rc.d
${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${FILESDIR}/kdelibs.sh \
> ${PREFIX}/etc/rc.d/kdelibs.sh
${CHMOD} ${BINMODE} ${PREFIX}/etc/rc.d/kdelibs.sh
${CHOWN} ${BINOWN}:${BINGRP} ${PREFIX}/etc/rc.d/kdelibs.sh
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
.include <bsd.port.post.mk>