summaryrefslogtreecommitdiffstats
path: root/openbsd/tdebase/Makefile
blob: 2066f4a74f7d754d884153c395745dfefe30e26d (plain)
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
.include </usr/ports/x11/trinity/trinity.port.mk>

PKGNAME=		trinity-tdebase-${VERSION}
VERSION=		${TDE_VERSION}${PREVERSION}
PREVERSION=		

COMMENT=		Trinity Base Programs
CATEGORIES=		x11/trinity
HOMEPAGE=		http://www.trinitydesktop.org/
MAINTAINER=		François Andriot <[email protected]>

MASTER_SITES=	http://ppa2.quickbuild.pearsoncomputing.net/redirect.php?file=releases/R14.0.0/
DISTNAME=		tdebase-R${TDE_VERSION}${PREVERSION}
EXTRACT_SUFX=	.tar.bz2
WRKDIST=		${WRKDIR}/tdebase

PREFIX=			${TDE_PREFIX}

RUN_DEPENDS=	devel/desktop-file-utils \
				x11/gtk+2,-guic

BUILD_DEPENDS=	devel/imake \
				devel/gmake \
				devel/cmake

LIB_DEPENDS+=	x11/trinity/dependencies/tqtinterface \
				x11/trinity/dependencies/arts \
				x11/trinity/tdelibs

LIB_DEPENDS+=	openldap-client->=2,<3:databases/openldap \
				security/cyrus-sasl2 \
				devel/libusb-compat \
				devel/glib2 \
				devel/libconfig \
				net/samba>=3 \
				x11/xscreensaver


SHARED_LIBS +=  kasbar                    1.0
SHARED_LIBS +=  kateinterfaces            0.0
SHARED_LIBS +=  kateutils                 0.0
SHARED_LIBS +=  khotkeys_shared           1.0
SHARED_LIBS +=  kickermain                1.0
SHARED_LIBS +=  kickoffsearch_interfaces  0.0
SHARED_LIBS +=  konq                      4.2
SHARED_LIBS +=  konqsidebarplugin         1.2
SHARED_LIBS +=  ksgrd                     1.2
SHARED_LIBS +=  ksplashthemes             0.0
SHARED_LIBS +=  taskbar                   1.2
SHARED_LIBS +=  taskmanager               1.0
SHARED_LIBS +=  tdecorations              1.0
SHARED_LIBS +=  tdefontinst               0.0
SHARED_LIBS +=  qtkde                     0.0


post-patch:
	cd ${WRKDIST}; \
	gsed -i starttde r14-xdg-update migratekde3 \
	     -e "s| sed| gsed|g"; \
	gsed -i "tdm/kfrontend/gentdmconf.c" \
	     -e "s|. /etc/X11/Xsession|exec \$$session|"

do-configure: tde-cmake-rmbuild
	${TDE_CMAKE_CONFIGURE} \
		-DXSCREENSAVER_DIR="${LOCALBASE}/share/xscreensaver" \
		-DHTDIG_SEARCH_BINARY="${LOCALBASE}/bin/htdig" \
		\
		-DWITH_ALL_OPTIONS=ON \
		-DWITH_SASL=ON \
		-DWITH_LDAP=ON \
		-DWITH_SAMBA=ON \
		-DWITH_OPENEXR=ON \
		-DWITH_XCOMPOSITE=ON \
		-DWITH_XCURSOR=ON \
		-DWITH_XFIXES=ON \
		-DWITH_XRANDR=ON \
		-DWITH_XRENDER=ON \
		-DWITH_LIBCONFIG=ON \
		-DWITH_PCRE=ON \
		-DWITH_XTEST=ON \
		-DWITH_XSCREENSAVER=ON \
		-DWITH_LIBART=ON \
		-DWITH_LIBUSB=ON \
		-DWITH_LIBRAW1394=OFF \
		-DWITH_SUDO_TDESU_BACKEND=OFF \
		-DWITH_SUDO_KONSOLE_SUPER_USER_COMMAND=OFF \
		-DWITH_PAM=OFF \
		-DWITH_SHADOW=OFF \
		-DWITH_XDMCP=ON \
		-DWITH_XINERAMA=ON \
		-DWITH_ARTS=ON \
		-DWITH_I8K=ON \
		-DWITH_SENSORS=OFF \
		-DWITH_HAL=OFF \
		-DWITH_TDEHWLIB=OFF \
		-DWITH_UPOWER=ON \
		-DWITH_ELFICON=OFF \
		-DWITH_KDESKTOP_LOCK_BACKTRACE=OFF \
		\
		-DBUILD_ALL=ON \
		-DBUILD_TSAK=OFF \
		-DBUILD_TDEKBDLEDSYNC=OFF \
		..

do-build: tde-cmake-build

do-install: tde-cmake-install

post-install:
	# Remove setuid bit
	cd "${WRKINST}${TDE_PREFIX}/bin" && chmod 0755 kcheckpass tdesud
	# Default user face for TDM
	cd "${WRKINST}${TDE_PREFIX}/share/apps/tdm/pics/users" && cp -f "default2.png" ".default.face.icon"

.include <bsd.port.mk>