summaryrefslogtreecommitdiff
path: root/x11/xenodm/Makefile
blob: 52302ff6b9650cfd57a80b4aea4beced76be563c (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

COMMENT =	Xenocara display manager
DISTNAME =	xenodm-20.7

CATEGORIES =	x11

HOMEPAGE =	https://cgit.xenocara.org/app/xenodm/

MAINTAINER =		xenocara@openbsd.org

# MIT
PERMIT_PACKAGE =	Yes

WANTLIB =		ICE SM X11 Xau Xaw7 Xext Xdmcp Xft Xinerama
WANTLIB +=		Xmu Xpm Xrender Xt
WANTLIB +=		c fontconfig freetype expat iconv intl pthread util
WANTLIB += 		xcb z

MASTER_SITES =		https://xenocara.org/app/xenodm/

MODULES =		xenocara

LIB_DEPENDS =		x11/libXaw \
			x11/libXft \
			x11/libXinerama

RUN_DEPENDS =		sysutils/sessreg \
			x11/libXcursor \
			x11/xconsole \
			x11/xrdb \
			x11/xsetroot \
			x11/xorg-server

CONFIGURE_STYLE =	gnu

SEPARATE_BUILD =	yes

XENODMCONFIGDIR =	${SYSCONFDIR}/X11/xenodm
XENODMLIBDIR =		${PREFIX}/lib/X11/xenodm
PIXMAPDIR =		${XENODMLIBDIR}/pixmaps
EXAMPLEDIR = 		${PREFIX}/share/examples/xenodm

.if ${MACHINE} == amd64 || ${MACHINE} == arm64 || ${MACHINE} == i386 \
    || ${MACHINE} == macppc
DEFAULT_VT= --with-default-vt=vt05
.endif

CONFIGURE_ARGS= \
        $(DEFAULT_VT) \
        --with-authdir=/var/run/xenodm \
        --with-xenodmlibdir=$(XENODMCONFIGDIR) \
        --with-pixmapdir=$(PIXMAPDIR) \
        --with-bw-pixmap=OpenBSD_1bpp.xpm \
        --with-color-pixmap=OpenBSD_15bpp.xpm

do-install:
	${INSTALL_PROGRAM_DIR} ${PREFIX}/bin
	${INSTALL_MAN_DIR} ${PREFIX}/man/man1
	${INSTALL_PROGRAM} ${WRKBUILD}/xenodm/xenodm ${PREFIX}/bin
	${INSTALL_DATA} ${WRKBUILD}/man/xenodm.1 ${PREFIX}/man/man1
	${INSTALL_DATA_DIR} ${XENODMLIBDIR}
	${INSTALL_DATA_DIR} ${EXAMPLEDIR}
	${INSTALL_DATA} ${WRKBUILD}/config/xenodm-config ${EXAMPLEDIR}
	${INSTALL_DATA} ${WRKBUILD}/config/Xresources ${EXAMPLEDIR}
	${INSTALL_DATA} ${WRKBUILD}/config/Xservers ${EXAMPLEDIR}
	${INSTALL_SCRIPT} ${WRKBUILD}/config/Xsession ${EXAMPLEDIR}
	${INSTALL_SCRIPT} ${WRKSRC}/config/GiveConsole ${EXAMPLEDIR}
	${INSTALL_SCRIPT} ${WRKSRC}/config/TakeConsole ${EXAMPLEDIR}
	${INSTALL_SCRIPT} ${WRKSRC}/config/Xsetup_0 ${EXAMPLEDIR}
	${INSTALL_SCRIPT} ${WRKBUILD}/config/Xstartup ${EXAMPLEDIR}
	${INSTALL_SCRIPT} ${WRKBUILD}/config/Xreset ${EXAMPLEDIR}
	${INSTALL_DATA_DIR} ${PIXMAPDIR}
	${INSTALL_DATA} ${WRKSRC}/config/OpenBSD_15bpp.xpm ${PIXMAPDIR}
	${INSTALL_DATA} ${WRKSRC}/config/OpenBSD_1bpp.xpm ${PIXMAPDIR}
	${INSTALL_DATA} ${WRKSRC}/config/OpenBSD_4bpp.xpm ${PIXMAPDIR}
	${INSTALL_DATA} ${WRKSRC}/config/OpenBSD_8bpp.xpm ${PIXMAPDIR}


.include <bsd.port.mk>