2011-11-30 15:00:28 -07:00
|
|
|
# $OpenBSD: Makefile.bsd-wrapper,v 1.20 2011/11/30 22:00:28 matthieu 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
|
|
|
|
2007-03-04 06:58:18 -07:00
|
|
|
.if ${MACHINE} == i386 || ${MACHINE} == amd64
|
2007-03-05 10:55:55 -07:00
|
|
|
DEFAULT_VT= --with-default-vt=vt05
|
2007-03-04 06:58:18 -07:00
|
|
|
.endif
|
2007-03-26 06:15:47 -06:00
|
|
|
.if ${MACHINE_ARCH} == arm
|
|
|
|
DEFAULT_VT= --with-default-vt=vt02
|
|
|
|
.endif
|
2007-03-04 06:58:18 -07:00
|
|
|
|
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 \
|
2007-05-28 11:36:57 -06:00
|
|
|
dist_xdmconfigDATA_INSTALL=: \
|
|
|
|
dist_xdmscriptSCRIPT_INSTALL=: \
|
|
|
|
xdmscriptSCRIPT_INSTALL=: \
|
|
|
|
xdmconfigDATA_INSTALL=:
|
|
|
|
|
|
|
|
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)
|
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)"; \
|
|
|
|
$(INSTALL) $$d$$f $(DESTDIR)$(XDMCONFIGDIR) ;\
|
|
|
|
else \
|
|
|
|
echo "not overwriting $(DESTDIR)$(XDMCONFIGDIR)/$$f" ;\
|
|
|
|
fi \
|
|
|
|
done
|
|
|
|
|
2006-11-26 07:03:40 -07:00
|
|
|
|
|
|
|
.include <bsd.xorg.mk>
|