summaryrefslogtreecommitdiffstats
path: root/freebsd/core/tdebase/Makefile
blob: a75516eef94d67b2fd0359335fd172dff8ec5b38 (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
# -*-mode: makefile-*-
# Created by: slavek.banko@axis.cz
# $FreeBSD$
#
# TDE port map: core/tdebase

PORTSDIR?=/usr/ports
.include <${PORTSDIR}/Mk/bsd.trinity.mk>

PORTNAME=		tdebase-trinity
COMMENT=		Trinity Base Programs
TDE_PREVERSION=		
MASTER_SITE_SUBDIR=	t/${PORTNAME}
PORTREVISION=		0
CATEGORIES=		x11
DIST_SUBDIR=		TDE/core


USES+=		perl5
USE_PERL5+=	build

BUILD_DEPENDS+=	${TDE_PREFIX}/lib/libartsc.so:audio/arts-trinity \
		${TDE_PREFIX}/lib/libtdecore.so:x11/tdelibs-trinity \
		${LOCALBASE}/share/cmake/Modules/TDEMacros.cmake:devel/tde-cmake \

LIB_DEPENDS+=	libtqt.so:x11-toolkits/libtqtinterface \
		libavahi-tqt.so:net/avahi-tqt \
		libdbus-1-tqt.so:devel/dbus-1-tqt \
		libart_lgpl_2.so:graphics/libart_lgpl-trinity \

BUILD_DEPENDS+=\
		bdftopcf:x11-fonts/bdftopcf \
		xrdb:x11/xrdb \
		htdig:textproc/htdig \
		xscreensaver:x11/xscreensaver \

LIB_DEPENDS+=\
		libconfig.so:devel/libconfig \
		libldap.so:net/openldap26-client \
		libsasl2.so:security/cyrus-sasl2 \
		libssh.so:security/libssh \
		libxkbfile.so:x11/libxkbfile \
		libXss.so:x11/libXScrnSaver \
		libXtst.so:x11/libXtst \

RUN_DEPENDS+=\
		xrandr:x11/xrandr \
		xset:x11/xset \
		xsetroot:x11/xsetroot \

USES+=		samba


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

do-configure: tde-cmake-prepare
	${TDE_CMAKE_CONFIGURE} \
	-DWITH_GCC_VISIBILITY="ON" \
	\
	-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=ON \
	-DKCHECKPASS_PAM_SERVICE="kcheckpass-trinity" \
	-DTDM_PAM_SERVICE="tdm-trinity" \
	-DTDESCREENSAVER_PAM_SERVICE="tdescreensaver-trinity" \
	-DWITH_SHADOW=OFF \
	-DWITH_XDMCP=ON \
	-DWITH_XINERAMA=ON \
	-DWITH_ARTS=ON \
	-DWITH_SENSORS=OFF \
	-DWITH_TDEHWLIB=OFF \
	-DWITH_UPOWER=ON \
	-DWITH_ELFICON=OFF \
	\
	-DBUILD_ALL=ON \
	-DBUILD_TSAK=OFF \
	-DBUILD_TDEKBDLEDSYNC=OFF

do-build: tde-cmake-build

do-install: tde-cmake-install

.include <bsd.port.mk>