2016-10-02 03:12:46 -06:00
|
|
|
# $OpenBSD: Makefile.bsd-wrapper,v 1.24 2016/10/02 09:12:46 tb Exp $
|
2007-05-28 11:36:57 -06:00
|
|
|
.include <bsd.own.mk>
|
2006-11-28 08:41:12 -07:00
|
|
|
|
2007-05-28 11:36:57 -06:00
|
|
|
XDMCONFIGDIR=/etc/X11/xdm
|
|
|
|
PIXMAPDIR=$(XDMCONFIGDIR)/pixmaps
|
2006-11-28 08:41:12 -07:00
|
|
|
|
2013-06-26 01:25:19 -06:00
|
|
|
.if ${MACHINE} == i386 || ${MACHINE} == amd64 || ${MACHINE} == macppc
|
2007-03-05 10:55:55 -07:00
|
|
|
DEFAULT_VT= --with-default-vt=vt05
|
2007-03-04 06:58:18 -07:00
|
|
|
.endif
|
|
|
|
|
2006-11-28 08:41:12 -07:00
|
|
|
CONFIGURE_ARGS= --enable-privsep \
|
2007-04-07 11:58:02 -06:00
|
|
|
--enable-bsdauth \
|
2007-03-04 06:58:18 -07:00
|
|
|
$(DEFAULT_VT) \
|
2007-08-06 07:48:50 -06:00
|
|
|
--disable-ipv6 \
|
2010-03-28 03:33:02 -06:00
|
|
|
--with-authdir=$(XDMCONFIGDIR) \
|
2011-11-30 15:00:28 -07:00
|
|
|
--with-xdmlibdir=$(XDMCONFIGDIR) \
|
2006-11-28 08:41:12 -07:00
|
|
|
--with-pixmapdir=$(PIXMAPDIR) \
|
|
|
|
--with-bw-pixmap=OpenBSD_1bpp.xpm \
|
|
|
|
--with-color-pixmap=OpenBSD_15bpp.xpm
|
|
|
|
|
2007-05-28 11:36:57 -06:00
|
|
|
# avoid clobbering installed config files
|
|
|
|
realinstall:
|
2007-05-31 09:55:45 -06:00
|
|
|
exec ${MAKE} ${_lt_libs} install-strip \
|
2015-03-15 13:09:22 -06:00
|
|
|
INSTALL_DATA=: \
|
2016-10-02 03:12:46 -06:00
|
|
|
INSTALL_SCRIPT=: \
|
|
|
|
INSTALL_STRIP_PROGRAM="/usr/bin/install $(INSTALL_STRIP) \
|
|
|
|
$(INSTALL_COPY) -o $(BINOWN) -g $(BINGRP)"
|
2007-05-28 11:36:57 -06:00
|
|
|
|
|
|
|
XDMCONFIGFILES= \
|
2011-11-30 15:00:28 -07:00
|
|
|
xdm-config Xresources Xservers Xaccess
|
2007-05-28 11:36:57 -06:00
|
|
|
XDMCONFIGSCRIPTS= \
|
|
|
|
Xsession GiveConsole TakeConsole Xsetup_0 Xstartup Xreset Xwilling
|
|
|
|
|
2006-12-17 13:41:36 -07:00
|
|
|
afterinstall:
|
2007-05-16 13:59:15 -06:00
|
|
|
$(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)
|
2015-03-15 13:09:22 -06:00
|
|
|
cd man ; $(INSTALL_DATA) xdm.1 $(DESTDIR)$(MANDIR)1/
|
2007-05-28 11:36:57 -06:00
|
|
|
@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)"; \
|
2016-10-02 03:12:46 -06:00
|
|
|
$(INSTALL) -o $(BINOWN) -g $(BINGRP) $$d$$f \
|
|
|
|
$(DESTDIR)$(XDMCONFIGDIR) ;\
|
2007-05-28 11:36:57 -06:00
|
|
|
else \
|
|
|
|
echo "not overwriting $(DESTDIR)$(XDMCONFIGDIR)/$$f" ;\
|
|
|
|
fi \
|
|
|
|
done
|
|
|
|
|
2006-11-26 07:03:40 -07:00
|
|
|
|
|
|
|
.include <bsd.xorg.mk>
|