summaryrefslogtreecommitdiff
path: root/app/xdm/Makefile.bsd-wrapper
blob: 998b29aca76057d0f43a2e4ce4f04e6d8ea037b9 (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
# $OpenBSD: Makefile.bsd-wrapper,v 1.24 2016/10/02 09:12:46 tb Exp $
.include <bsd.own.mk>

XDMCONFIGDIR=/etc/X11/xdm
PIXMAPDIR=$(XDMCONFIGDIR)/pixmaps

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

CONFIGURE_ARGS= --enable-privsep \
	--enable-bsdauth \
	$(DEFAULT_VT) \
	--disable-ipv6 \
	--with-authdir=$(XDMCONFIGDIR) \
	--with-xdmlibdir=$(XDMCONFIGDIR) \
	--with-pixmapdir=$(PIXMAPDIR) \
	--with-bw-pixmap=OpenBSD_1bpp.xpm \
	--with-color-pixmap=OpenBSD_15bpp.xpm

# avoid clobbering installed config files
realinstall:
	exec ${MAKE} ${_lt_libs} install-strip \
		INSTALL_DATA=: \
		INSTALL_SCRIPT=: \
		INSTALL_STRIP_PROGRAM="/usr/bin/install $(INSTALL_STRIP) \
			$(INSTALL_COPY) -o $(BINOWN) -g $(BINGRP)"

XDMCONFIGFILES= \
	xdm-config Xresources Xservers Xaccess
XDMCONFIGSCRIPTS= \
	Xsession GiveConsole TakeConsole Xsetup_0 Xstartup Xreset Xwilling

afterinstall:
	$(INSTALL_DATA) ${.CURDIR}/config/OpenBSD_1bpp.xpm $(DESTDIR)$(PIXMAPDIR)
	$(INSTALL_DATA) ${.CURDIR}/config/OpenBSD_4bpp.xpm $(DESTDIR)$(PIXMAPDIR)
	$(INSTALL_DATA) ${.CURDIR}/config/OpenBSD_8bpp.xpm $(DESTDIR)$(PIXMAPDIR)
	$(INSTALL_DATA) ${.CURDIR}/config/OpenBSD_15bpp.xpm $(DESTDIR)$(PIXMAPDIR)
	cd man ; $(INSTALL_DATA) xdm.1 $(DESTDIR)$(MANDIR)1/
	@cd config ; for f in $(XDMCONFIGFILES); do \
	  if ! test -f $(DESTDIR)$(XDMCONFIGDIR)/$$f ; then \
	    if test -f $$f; then d=; else d="$(.CURDIR)/config/"; fi; \
	    echo "$(INSTALL_DATA) $$d$$f $(DESTDIR)$(XDMCONFIGDIR)"; \
	    $(INSTALL_DATA) $$d$$f $(DESTDIR)$(XDMCONFIGDIR) ;\
	  else \
	    echo "not overwriting $(DESTDIR)$(XDMCONFIGDIR)/$$f" ;\
	  fi \
	done
	@cd config ; for f in $(XDMCONFIGSCRIPTS); do \
	  if ! test -f $(DESTDIR)$(XDMCONFIGDIR)/$$f ; then \
	    if test -f $$f; then d=; else d="$(.CURDIR)/config/"; fi; \
	    echo "$(INSTALL) $$f $(DESTDIR)$(XDMCONFIGDIR)"; \
	    $(INSTALL) -o $(BINOWN) -g $(BINGRP) $$d$$f \
	        $(DESTDIR)$(XDMCONFIGDIR) ;\
	  else \
	    echo "not overwriting $(DESTDIR)$(XDMCONFIGDIR)/$$f" ;\
	  fi \
	done


.include <bsd.xorg.mk>