aboutsummaryrefslogtreecommitdiffstats
path: root/x11/kdelibs3/Makefile
blob: f793c673a593a177a30eedf2957a4c536144b92d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# -*-mode: makefile-*-
# New ports collection makefile for:    KDE libraries 3
# Date created:             2 November 2001
# Whom:                 will@cvs.kde.org
#
# $FreeBSD$
#

PORTNAME=   kdelibs
PORTVERSION=    ${KDE_VERSION}
CATEGORIES= x11 kde
MASTER_SITES=   ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src
PKGNAMESUFFIX?= # empty
DIST_SUBDIR=    KDE

MAINTAINER= kde@FreeBSD.org
COMMENT=    Base set of libraries needed by KDE programs

DEPENDS=    ${PORTSDIR}/misc/kdehier
BUILD_DEPENDS=  mkfontdir:${X_CLIENTS_PORT}
LIB_DEPENDS=    IlmImf:${PORTSDIR}/graphics/OpenEXR \
        art_lgpl_2.5:${PORTSDIR}/graphics/libart_lgpl2 \
        artsc.0:${PORTSDIR}/audio/arts \
        aspell:${PORTSDIR}/textproc/aspell \
        dns_sd:${PORTSDIR}/net/mDNSResponder \
        idn:${PORTSDIR}/dns/libidn \
        jasper:${PORTSDIR}/graphics/jasper \
        lua.5:${PORTSDIR}/lang/lua \
        pcre:${PORTSDIR}/devel/pcre \
        tiff.4:${PORTSDIR}/graphics/tiff \
        xml2.5:${PORTSDIR}/textproc/libxml2 \
        xslt.2:${PORTSDIR}/textproc/libxslt
RUN_DEPENDS=    iceauth:${X_CLIENTS_PORT} \
        ${FONTSCALE}:${X_FONTS_TTF_PORT} \
        ${FONTENCOD}:${X_FONTS_ENCODINGS_PORT}

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

USE_BZIP2=  yes
USE_FAM=    yes
USE_GETTEXT=    yes
USE_GMAKE=  yes
USE_OPENSSL=    yes
USE_QT_VER= 3
USE_REINPLACE=  yes
PREFIX=     ${KDE_PREFIX}

INSTALLS_SHLIB= yes
LDCONFIG_DIRS+= %%PREFIX%%/lib %%PREFIX%%/lib/kde3

USE_AUTOTOOLS=  libtool:15
CONFIGURE_TARGET=# empty
CONFIGURE_ARGS+=--disable-ltdl-install  \
        --disable-as-needed \
        --enable-mt \
        --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} \
        --x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include \
        --with-lua-dir=${LOCALBASE} \
        --with-lua-libraries=${LOCALBASE}/libs \
        --with-lua-includes=${LOCALBASE}/include \
        --with-ssl-dir=/
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
.if !exists(/usr/bin/bzip2)
LIB_DEPENDS+=   bz2.1:${PORTSDIR}/archivers/bzip2
.endif # !exists(/usr/bin/bzip2)

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

post-configure:
    ${TOUCH} ${WRKSRC}/dcop/dcop-path.h.in
    ${TOUCH} ${WRKSRC}/kdecore/kdemacros.h.in
    ${TOUCH} ${WRKSRC}/kio/kssl/ksslconfig.h.in
    ${TOUCH} ${WRKSRC}/kjs/global.h.in

post-install:
    ${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>