Edit

IABSD.fr/xenocara/app/xdm/Makefile.bsd-wrapper

Branch :

  • Show log

    Commit

  • Author : matthieu
    Date : 2010-03-28 09:33:02
    Hash : 21c33a1b
    Message : Update to xdm 1.1.9

  • app/xdm/Makefile.bsd-wrapper
  • # $OpenBSD: Makefile.bsd-wrapper,v 1.18 2010/03/28 09:33:02 matthieu Exp $
    .include <bsd.own.mk>
    
    XDMCONFIGDIR=/etc/X11/xdm
    PIXMAPDIR=$(XDMCONFIGDIR)/pixmaps
    
    .if ${MACHINE} == i386 || ${MACHINE} == amd64
    DEFAULT_VT= --with-default-vt=vt05
    .endif
    .if ${MACHINE_ARCH} == arm
    DEFAULT_VT=  --with-default-vt=vt02
    .endif
    
    CONFIGURE_ARGS= --enable-privsep \
    	--enable-bsdauth \
    	$(DEFAULT_VT) \
    	--disable-dynamic-greeter \
    	--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 \
    		dist_xdmconfigDATA_INSTALL=: \
    		dist_xdmscriptSCRIPT_INSTALL=: \
    		xdmscriptSCRIPT_INSTALL=: \
    		xdmconfigDATA_INSTALL=:
    
    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 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
    
    
    .include <bsd.xorg.mk>