blob: 84457e588c262bffa1771e91fdd288f3e6610023 (
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
# -*-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= 2
CATEGORIES= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src
DIST_SUBDIR= KDE
MAINTAINER= kde@FreeBSD.org
COMMENT= Basic applications for the KDE system
RUN_DEPENDS= ${KDE_PREFIX}/env/xdg-env.sh:${PORTSDIR}/misc/kde-xdg-env
BUILD_DEPENDS= mkfontdir:${X_CLIENTS_PORT} \
xmkmf:${X_IMAKE_PORT}
LIB_DEPENDS= sasl2:${PORTSDIR}/security/cyrus-sasl2 \
smbclient:${PORTSDIR}/net/samba-libsmbclient \
usb-0.1:${PORTSDIR}/devel/libusb
CONFLICTS= kdeartwork-3.[2-3]* kdelibs-3.[0-4]* kdeutils-3.[0-2]*
USE_KDELIBS_VER=3
PREFIX= ${KDE_PREFIX}
USE_GETOPT_LONG=yes
USE_OPENLDAP= yes
USE_OPENSSL= yes
USE_BZIP2= yes
USE_GMAKE= yes
USE_XPM= yes
SUB_FILES= kdm pkg-deinstall pkg-install pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
USE_AUTOTOOLS= libtool:15
INSTALLS_SHLIB= yes
LDCONFIG_DIRS+= %%PREFIX%%/lib %%PREFIX%%/lib/kde3
CONFIGURE_ENV+= RUN_KAPPFINDER=no kde_cv_utmp_file=/var/run/utmp
CONFIGURE_ARGS+=--without-java \
--with-qt-dir=${X11BASE} \
--with-xdmdir=${X11BASE}/lib/X11/xdm \
--with-ssl-dir=${OPENSSLBASE}
OPTIONS= ARTSWRAPPER "Suid wrapper for aRts, req'd for realtime prio" on \
HAL "Use HAL backend for media:/ (FreeBSD 5 and newer only)" off \
HTDIG "Depend on htdig, used to build manual indices" off
.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
.if !defined(WITHOUT_ARTSWRAPPER)
RUN_DEPENDS+= artswrapper:${PORTSDIR}/audio/artswrapper
.endif
.if defined(WITH_HTDIG)
RUN_DEPENDS+= htdig:${PORTSDIR}/textproc/htdig
.endif
.if defined(WITH_HAL) && ${OSVERSION} > 500035
EXTRA_PATCHES= ${FILESDIR}/extrapatch-kioslave_media_mediamanager-halbackend.cpp
LIB_DEPENDS+= dbus-qt-1.1:${PORTSDIR}/devel/dbus-qt3 \
hal.1:${PORTSDIR}/sysutils/hal
PLIST_SUB+= MEDIA=""
.else
CONFIGURE_ARGS+=--without-hal
EXTRA_PATCHES= ${FILESDIR}/extrapatch-kio_media \
${FILESDIR}/extrapatch-kioslave_media_mediamanager-fstabbackend.cpp
PLIST_SUB+= MEDIA="@comment "
.endif
post-extract:
@${ECHO} "#!/bin/sh" > ${WRKSRC}/mkpamserv
@${ECHO} "exit 0" >> ${WRKSRC}/mkpamserv
pre-configure:
${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE},g" \
${WRKSRC}/kdeprint/descriptions/Makefile.in
${REINPLACE_CMD} -e "s,applications-merged,kde-applications-merged,g" \
${WRKSRC}/applnk/Makefile.in
${REINPLACE_CMD} \
-E -e '/XftAntialias/s/false/true/g' \
${WRKSRC}/kcontrol/krdb/krdb.cpp
${REINPLACE_CMD} \
-E -e '/htdigbin/s|/usr/bin|${LOCALBASE}/bin|g' \
-e '/htdigdata/s|/srv/www/htdig|${LOCALBASE}/share/htdig|g' \
-e '/htsearchpath/s|/srv/www|${LOCALBASE}/www|g' \
${WRKSRC}/khelpcenter/searchhandlers/khc_htdig.pl.in \
${WRKSRC}/khelpcenter/searchhandlers/khc_docbookdig.pl.in \
${WRKSRC}/khelpcenter/searchhandlers/khc_htsearch.pl
${REINPLACE_CMD} \
-e 's|-s|-u|g' \
${WRKSRC}/kioslave/media/services/media_safelyremove.desktop
post-configure:
${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:
${INSTALL_DATA} ${FILESDIR}/freebsd.keytab ${PREFIX}/share/apps/konsole/
${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
@${MV} ${PREFIX}/bin/kdm ${PREFIX}/bin/kdm-bin
@${MV} ${PREFIX}/bin/kdm_config ${PREFIX}/bin/kdm-bin_config
@${MV} ${PREFIX}/bin/kdm_greet ${PREFIX}/bin/kdm-bin_greet
@${INSTALL_SCRIPT} ${WRKDIR}/kdm ${PREFIX}/bin
.if !defined(PACKAGE_BUILDING)
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|