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

.include <../trinity.port.mk>

PORTNAME=		tdebase-trinity
COMMENT=		Trinity Base Programs
TDE_PREVERSION=		~pre51+3977c550
MASTER_SITE_SUBDIR=	t/${PORTNAME}
PORTREVISION=		0
CATEGORIES=		x11
DIST_SUBDIR=		TDE


USES+=		perl5
USE_PERL5+=	build

BUILD_DEPENDS+=	${TDE_PREFIX}/lib/libartsc.so:${PORTSDIR}/x11/trinity/dependencies/arts \
		${TDE_PREFIX}/lib/libtdecore.so:${PORTSDIR}/x11/trinity/tdelibs \

LIB_DEPENDS+=	libtqt.so:${PORTSDIR}/x11/trinity/dependencies/tqtinterface \
		libavahi-tqt.so:${PORTSDIR}/x11/trinity/dependencies/avahi-tqt \
		libdbus-tqt.so:${PORTSDIR}/x11/trinity/dependencies/dbus-tqt \
		libdbus-1-tqt.so:${PORTSDIR}/x11/trinity/dependencies/dbus-1-tqt \
		libart_lgpl_2.so:${PORTSDIR}/x11/trinity/dependencies/libart-lgpl \

BUILD_DEPENDS+=\
		xrdb:${PORTSDIR}/x11/xrdb \
		htdig:${PORTSDIR}/textproc/htdig \
		xscreensaver:${PORTSDIR}/x11/xscreensaver \

LIB_DEPENDS+=\
		libconfig.so:${PORTSDIR}/devel/libconfig \
		libldap.so:${PORTSDIR}/net/openldap24-client \
		libsmbclient.so:${PORTSDIR}/net/samba-libsmbclient \
		libsasl2.so:${PORTSDIR}/security/cyrus-sasl2 \
		libhal-storage.so:${PORTSDIR}/sysutils/hal \
		libxkbfile.so:${PORTSDIR}/x11/libxkbfile \
		libXss.so:${PORTSDIR}/x11/libXScrnSaver \
		libXtst.so:${PORTSDIR}/x11/libXtst \

RUN_DEPENDS+=\
		xrandr:${PORTSDIR}/x11/xrandr \
		xset:${PORTSDIR}/x11/xset \
		xsetroot:${PORTSDIR}/x11/xsetroot \

# 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_HAL=ON \
	-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>