aboutsummaryrefslogtreecommitdiff
path: root/x11/kdelibs4/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'x11/kdelibs4/Makefile')
-rw-r--r--x11/kdelibs4/Makefile89
1 files changed, 45 insertions, 44 deletions
diff --git a/x11/kdelibs4/Makefile b/x11/kdelibs4/Makefile
index 9660fcbbb3fc..28ebda1ee53b 100644
--- a/x11/kdelibs4/Makefile
+++ b/x11/kdelibs4/Makefile
@@ -1,78 +1,79 @@
+# -*-mode: makefile-*-
# New ports collection makefile for: KDE libraries 3
-# Date created: Fri Apr 14 2000 15:05:00 EDT
-# Whom: will
+# Date created: 2 November 2001
+# Whom: will@cvs.kde.org
#
# $FreeBSD$
#
PORTNAME= kdelibs
-PORTVERSION= 3.0.5
-PORTREVISION= 1
-CATEGORIES?= x11 kde
+PORTVERSION= ${KDE_VERSION}
+PORTREVISION= 0
+CATEGORIES= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
-MASTER_SITE_SUBDIR= stable/${PORTVERSION}/src
+MASTER_SITE_SUBDIR= stable/${KDE_VERSION}/src
DIST_SUBDIR= KDE
-MAINTAINER?= kde@FreeBSD.org
+MAINTAINER= kde@FreeBSD.org
-BUILD_DEPENDS+= ${LOCALBASE}/bin/autoconf:${PORTSDIR}/devel/autoconf \
- ${LOCALBASE}/bin/automake:${PORTSDIR}/devel/automake
LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff \
- qtmcop.1:${PORTSDIR}/audio/arts \
- audiofile.0:${PORTSDIR}/audio/libaudiofile \
+ artsc.0:${PORTSDIR}/audio/arts \
+ fam.0:${PORTSDIR}/devel/fam \
xml2.5:${PORTSDIR}/textproc/libxml2 \
+ xslt.1:${PORTSDIR}/textproc/libxslt \
pcre.0:${PORTSDIR}/devel/pcre \
- cups.2:${PORTSDIR}/print/cups-base \
- xslt.1:${PORTSDIR}/textproc/libxslt
-.if !exists(/usr/bin/bzip2)
-LIB_DEPENDS+= bz2.1:${PORTSDIR}/archivers/bzip2
-.endif
+ intl.4:${PORTSDIR}/devel/gettext \
+ art_lgpl_2.5:${PORTSDIR}/graphics/libart_lgpl2 \
+ cups.2:${PORTSDIR}/print/cups-base
RUN_DEPENDS= ${FONTSCALE}:${PORTSDIR}/x11-fonts/XFree86-4-fontScalable \
${FONTENCOD}:${PORTSDIR}/x11-fonts/XFree86-4-fontEncodings
-USE_OPENSSL= yes
USE_QT_VER= 3
-SOMAJOR= 4
-SOMINOR= 0
+PREFIX= ${KDE_PREFIX}
+USE_OPENSSL= yes
+
USE_BZIP2= yes
+USE_GMAKE= yes
+USE_REINPLACE= yes
+
INSTALLS_SHLIB= yes
+LDCONFIG_DIRS+= %%PREFIX%%/lib %%PREFIX%%/lib/kde3
+
GNU_CONFIGURE= yes
-PREFIX?= ${KDE_PREFIX}
-CONFIGURE_ARGS+=--enable-cups --disable-ltdl-install
+CONFIGURE_ARGS+=--disable-ltdl-install \
+ --enable-mt \
+ --enable-cups \
+ ${XINERAMA}
+
FONTSCALE= ${X11BASE}/lib/X11/fonts/PEX/Roman.phont
FONTENCOD= ${X11BASE}/lib/X11/fonts/encodings/tcvn-0.enc
-.include "${.CURDIR}/../kde3/Makefile.kde"
-
-USE_GMAKE= yes
-MAKE_ENV= SOMAJOR="${SOMAJOR}" SOMINOR="${SOMINOR}"
-PLIST_SUB+= LIBVER="${SOMAJOR}" LDCONFIG="${LDCONFIG}"
-
+.include "${.CURDIR}/../../x11/kde3/Makefile.kde"
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/bin/fam)
LIB_DEPENDS+= fam.0:${PORTSDIR}/devel/fam
-.endif
+.endif # exists(${LOCALBASE}/bin/fam)
+
+.if !exists(/usr/bin/bzip2)
+LIB_DEPENDS+= bz2.1:${PORTSDIR}/archivers/bzip2
+.endif # !exists(/usr/bin/bzip2)
-pre-fetch: kde-version-check
-.if ${OSVERSION} <= 410002
- @${ECHO}
- @${ECHO} " NOTICE"
- @${ECHO}
- @${ECHO} "Your OpenSSL installation could be out of date. This is"
- @${ECHO} "just a warning, but if your system's world was built on"
- @${ECHO} "sources earlier than August 20 along RELENG_4 or older,"
- @${ECHO} "then KDE3 will not build with SSL support."
- @${ECHO}
-.endif
+.if defined(WITH_XINERAMA)
+XINERAMA= -with-xinerama
+PKGNAMESUFFIX= -xinerama
+.else
+XINERAMA= -without-xinerama
+.endif # defined(WITH_XINERAMA)
pre-configure:
- cd ${WRKSRC}; ${GMAKE} -f Makefile.cvs
+ ${REINPLACE_CMD} "s, kspell,,g" ${WRKSRC}/doc/Makefile.in
post-install:
- ${MKDIR} ${DESTDIR}${PREFIX}/etc/rc.d
- ${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${FILESDIR}/kdelibs.sh > \
- ${DESTDIR}${PREFIX}/etc/rc.d/kdelibs.sh
- ${CHMOD} ${BINMODE} ${DESTDIR}${PREFIX}/etc/rc.d/kdelibs.sh
+ ${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
.include <bsd.port.post.mk>