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
|
# -*-mode: makefile-*-
# New ports collection makefile for: kdebase-workspace
# Date created: 22 Januar 2008
# Whom: kde@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= kdebase-workspace
PORTVERSION= ${KDE4_VERSION}
CATEGORIES= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE_kde} \
${MASTER_SITE_LOCAL} \
http://people.FreeBSD.org/~avilla/distfiles/
MASTER_SITE_SUBDIR= ${KDE4_BRANCH}/${PORTVERSION}/src/:kde \
avilla/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:kde \
stripes-freebsd-1.0${EXTRACT_SUFX}
DIST_SUBDIR= KDE
MAINTAINER= kde@FreeBSD.org
COMMENT= Basic applications for the KDE system
LIB_DEPENDS= qimageblitz.4:${PORTSDIR}/x11/qimageblitz\
dbus-1.3:${PORTSDIR}/devel/dbus \
pci.3:${PORTSDIR}/devel/libpci \
hal.1:${PORTSDIR}/sysutils/hal \
xklavier.12:${PORTSDIR}/x11/libxklavier \
gps.20:${PORTSDIR}/astro/gpsd \
qalculate.5:${PORTSDIR}/math/libqalculate \
dmtx.0:${PORTSDIR}/graphics/libdmtx
RUN_DEPENDS= ${KDE4_PREFIX}/env/xdg-env.sh:${PORTSDIR}/misc/kde4-xdg-env \
${LOCALBASE}/share/icons/hicolor/index.theme:${PORTSDIR}/misc/hicolor-icon-theme \
xprop:${PORTSDIR}/x11/xprop \
xsetroot:${PORTSDIR}/x11/xsetroot \
xmessage:${PORTSDIR}/x11/xmessage \
xrdb:${PORTSDIR}/x11/xrdb \
mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
xset:${PORTSDIR}/x11/xset \
setxkbmap:${PORTSDIR}/x11/setxkbmap \
${KDE4_PREFIX}/bin/ksysguardd:${PORTSDIR}/sysutils/ksysguardd \
${KDE4_PREFIX}/lib/kde4/libexec/polkit-kde-authentication-agent-1:${PORTSDIR}/sysutils/polkit-kde \
${KDE4_PREFIX}/bin/nepomukcontroller:${PORTSDIR}/misc/nepomukcontroller
SUB_FILES= kdm layout.js
USE_RC_SUBR= kdm4
USE_KDE4= kdelibs pimlibs kdeprefix kdehier automoc4 oxygen
KDE4_BUILDENV= yes
USE_BZIP2= yes
USE_QT_VER= 4
QT_COMPONENTS= assistant corelib dbus designer gui network opengl \
script svg sql qt3support qtestlib xml webkit \
qmake_build moc_build rcc_build uic_build \
porting_build uic3_build phonon
USE_XORG= xtst xscrnsaver
USE_GETTEXT= yes
USE_ICONV= yes
MAKE_JOBS_SAFE= yes
MAN1= plasmaengineexplorer.1 plasmapkg.1 plasmoidviewer.1
CMAKE_ARGS+= -DCMAKE_REQUIRED_FLAGS:STRING="-L${LOCALBASE}/lib" \
-DWITH_BlueZ:BOOL=OFF \
-DWITH_Sensors:BOOL=OFF \
-DWITH_NetworkManager:BOOL=OFF \
-DWITH_Xmms:BOOL=OFF \
-DWITH_Googlegadgets:BOOL=OFF \
-DWITH_QEdje:BOOL=OFF \
-DWITH_PyKDE4:BOOL=OFF
#PyKDE4, Xmms and Googlegadgets could be enabled,
#QEdje has not been ported yet.
OPTIONS= PLASMA_PYTHON "Support for plasmoids written in Python" off \
PLASMA_RUBY "Support for plasmoids written in Ruby" off
.include <bsd.port.options.mk>
.if defined(WITH_PLASMA_PYTHON)
RUN_DEPENDS+= ${KDE4_PREFIX}/share/apps/plasma_scriptengine_python/plasma_importer.py:${PORTSDIR}/x11/plasma-scriptengine-python
.endif
.if defined(WITH_PLASMA_RUBY)
RUN_DEPENDS+= ${KDE4_PREFIX}/share/apps/plasma_scriptengine_ruby/applet.rb:${PORTSDIR}/x11/plasma-scriptengine-ruby
.endif
.if ${OSVERSION} < 800069
LIB_DEPENDS+= usb-0.1.8:${PORTSDIR}/devel/libusb
.endif
.if ${OSVERSION} < 900004
LIB_DEPENDS+= utempter:${PORTSDIR}/sysutils/libutempter
.endif
post-patch:
@${REINPLACE_CMD} -e 's,/usr/lib/X11,${LOCALBASE}/lib/X11,g' \
-e 's,/usr/share/X11,${LOCALBASE}/share/X11,g' \
${PATCH_WRKSRC}/kcontrol/keyboard/xkb_rules.cpp
@${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' \
${PATCH_WRKSRC}/startkde.cmake \
${PATCH_WRKSRC}/kcontrol/kfontinst/lib/KfiConstants.h \
${PATCH_WRKSRC}/kcontrol/kfontinst/kio/KioFonts.cpp \
${PATCH_WRKSRC}/kcontrol/keyboard/x11_helper.cpp \
${PATCH_WRKSRC}/kdm/backend/client.c \
${PATCH_WRKSRC}/kdm/kfrontend/genkdmconf.c \
${PATCH_WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -e 's,resolv,c,g' \
${PATCH_WRKSRC}/cmake/modules/FindPCIUTILS.cmake
pre-configure:
${REINPLACE_CMD} -e '/ksysguardd/ d' \
${PATCH_WRKSRC}/ksysguard/CMakeLists.txt \
${PATCH_WRKSRC}/ksysguard/example/CMakeLists.txt
${REINPLACE_CMD} -e 's|<qhash.h>|<QHash>|' \
${PATCH_WRKSRC}/kwin/effects/thumbnailaside/thumbnailaside.h
post-install:
${LN} -sf ${PREFIX}/bin/startkde ${PREFIX}/bin/startkde4
${MV} ${PREFIX}/bin/kdm ${PREFIX}/bin/kdm-bin
${MV} ${PREFIX}/lib/kde4/libexec/kdm_config ${PREFIX}/lib/kde4/libexec/kdm-bin_config
${MV} ${PREFIX}/lib/kde4/libexec/kdm_greet ${PREFIX}/lib/kde4/libexec/kdm-bin_greet
${INSTALL_SCRIPT} ${WRKDIR}/kdm ${PREFIX}/bin
${MKDIR} ${PREFIX}/share/apps/plasma/layout-templates/org.kde.freebsd.defaultWallpaper/contents
${INSTALL_DATA} ${FILESDIR}/metadata.desktop ${PREFIX}/share/apps/plasma/layout-templates/org.kde.freebsd.defaultWallpaper
${INSTALL_DATA} ${WRKDIR}/layout.js ${PREFIX}/share/apps/plasma/layout-templates/org.kde.freebsd.defaultWallpaper/contents
cd ${WRKDIR}/stripes-freebsd-1.0 && \
${COPYTREE_SHARE} . ${PREFIX}/share/wallpapers
.include <bsd.port.mk>
|