aboutsummaryrefslogtreecommitdiffstats
path: root/x11/kde4-baseapps/Makefile
blob: 9229fcfd5f079915d2a4f20156caec9d51b60f96 (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
# -*-mode: makefile-*-
# New ports collection makefile for:    kdebase3.1
# Date created:             29 November 2002
# Whom:                 kde@freebsd.org
#
# $FreeBSD$
#

PORTNAME=   kdebase
PORTVERSION=    ${KDE_VERSION}
PORTREVISION=   1
CATEGORIES= x11 kde
MASTER_SITES=   ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${KDE_VERSION}/src
DIST_SUBDIR=    KDE

MAINTAINER= kde@FreeBSD.org

USE_KDELIBS_VER=3
PREFIX=     ${KDE_PREFIX}
KDE_BUILD_PLIST=yes

USE_BZIP2=  yes
USE_GMAKE=  yes
USE_XPM=    yes
USE_REINPLACE=  yes

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

CONFIGURE_ENV+= RUN_KAPPFINDER=no
CONFIGURE_ARGS+=--disable-ltdl-install      \
        --without-ldap          \
        --disable-closure       \
        ${XINERAMA}         \
        --without-java          \
        --with-qt-dir=${X11BASE}    \
        --with-xdmdir=${X11BASE}/lib/X11/xdm

.include "${.CURDIR}/../../x11/kde3/Makefile.kde"
.include <bsd.port.pre.mk>

.if exists(${X11BASE}/bin/mkfontdir)
PLIST_APPEND+=  plist.mkfontdir
.endif # exists(${X11BASE}/bin/mkfontdir)

.if exists(${X11BASE}/include/Xm/Xm.h)
WITH_MOTIF= yes
.endif # exists(${X11BASE}/include/Xm/Xm.h)

.if defined(WITH_MOTIF)
USE_MOTIF=  yes
PLIST_APPEND+=  plist.motif
.else
pre-extract::
    @${ECHO_MSG}
    @${ECHO_MSG} "If you want to compile with Motif support,"
    @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_MOTIF=yes\""
    @${ECHO_MSG}
    @${ECHO_MSG} "Motif is used for Netscape plugin compatibility."
    @${ECHO_MSG}
.endif # defined(WITH_MOTIF)

.if exists(${X11BASE}/lib/libfontconfig.so.1)
WITH_FONTCONFIG=yes
.endif

.if defined(WITH_FONTCONFIG)
LIB_DEPENDS+=   fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig
.endif

.if defined(WITHOUT_XINERAMA)
XINERAMA=   --without-xinerama
.else
XINERAMA=   --with-xinerama
pre-extract::
    @${ECHO_MSG}
    @${ECHO_MSG} "If you don't want to compile with Xinerama support,"
    @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITHOUT_XINERAMA=yes\""
    @${ECHO_MSG}
.endif # defined(WITH_XINERAMA)

post-extract:
    @${ECHO} "#!/bin/sh" > ${WRKSRC}/mkpamserv
    @${ECHO} "exit 0" >> ${WRKSRC}/mkpamserv

post-configure:
    ${REINPLACE_CMD} -e "s@genkdmconf --in@genkdmconf --no-old --in@" \
        ${WRKSRC}/kdm/kfrontend/Makefile
    ${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

post-install:
    ${RM} -f ${PREFIX}/share/apps/konsole/linux.desktop
    ${CHMOD} u+s ${PREFIX}/bin/kcheckpass
    ${CHGRP} kmem ${PREFIX}/bin/ksysguardd && \
        ${CHMOD} g+s ${PREFIX}/bin/ksysguardd

.include <bsd.port.post.mk>