pkgsrc/x11/xdm/Makefile
cheusov 2eea52b191 Update xdm to 1.1.11 (PR 45554). It works fine on 5.99.56
with modular xorg, build succeeds with native Xorg.

  Major changes since 1.10
     Check for allowRootLogin on PAM and non-OpenBSD passwd authentication
         backends
      s/Sun/Oracle/g
      Add man page for xdmshell
      Only install xdmshell if --enable-xdmshell is passed to configure
      config: rename XDM_PRINT to XDM_TOOLKIT
      xdm itself doesn't need to link with Xinerama library
      Delete some unused variables
      greeter: Remove unused extern dpy that is shadowed by local variables
      greeter: inline valueMask for xpm window to avoid shadowing argument
      greeter: Add echoPasswdChar resource to set character to display
      greeter: Make sure text input areas stay inside the lines
      greeter: Replace several #ifdef XPM blocks with LOGO_W macro
      greeter: Make sure cursor stays in bounds too
      Fix potential memory leak in allocation failure cleanup path
      Stop checking for NULL before calling free()
      Stop casting free() arguments to (char *)
      Stop casting return values of malloc and friends
      Only greeter needs XPM CFLAGS & LIBS, not xdm daemon
      Add Solaris 11 libsocket to list of libraries to search for
      getifaddrs()
      freeifaddrs() when done with it in DefineSelf()
      xdm.man: address only needs 2 S's, not 3
      On Solaris, make sure PAM_TTY is only ever set to an actual /dev path
      Bug 13455: allowNullPasswd: true doesn't work until the second login
      attempt
      Use C99 named initializers for XSetWindowAttributes structure
      Replace GCC_PRINTFLIKE with xproto's _X_ATTRIBUTE_PRINTF
      Add _X_ATTRIBUTE_PRINTF to LogVWrite declaration
      Stop using username retrieved from PAM before pam_end frees it.
      Simplify FailedLogin code
      fix whitespace issues
2011-11-09 18:28:40 +00:00

73 lines
2.3 KiB
Makefile

# $NetBSD: Makefile,v 1.16 2011/11/09 18:28:40 cheusov Exp $
DISTNAME= xdm-1.1.11
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_XORG:=app/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= blair.sadewitz@gmail.com
HOMEPAGE= http://xorg.freedesktop.org/
COMMENT= X Display Manager from modular X.org
DEPENDS+= sessreg-[0-9]*:../../x11/sessreg
PKG_DESTDIR_SUPPORT= user-destdir
CONFIGURE_ARGS+= --enable-dynamic-greeter
CONFIGURE_ARGS+= --enable-tcp-transport
CONFIGURE_ARGS+= --enable-unix-transport
CONFIGURE_ARGS+= --enable-xdmshell
USE_TOOLS+= pkg-config
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
RCD_SCRIPTS= xdm
BUILD_DEFS+= VARBASE
CONFIGURE_ARGS+= --with-authdir=${VARBASE}/lib/xdm
OWN_DIRS_PERMS+= ${VARBASE}/lib/xdm \
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0755
.include "../../mk/compiler.mk"
.if !empty(CC_VERSION:Mgcc-[3-4]*)
CFLAGS+= -fno-strict-aliasing
.endif
.if empty(PKGSRC_COMPILER:Mgcc)
CONFIGURE_ENV+= ac_cv_path_RAWCPP="cc -E -Uunix -"
.endif
.if ${OPSYS} == "NetBSD"
CONFIGURE_ARGS+= --with-random-device=/dev/urandom
.endif
# The following forces the X server to start on the 5th virtual terminal.
# This is suboptimal but matches the defaults for the xdm configuration,
# which should work for most installations. See the definition of
# DEFAULTVT in xsrc/xfree/xc/programs/xdm/config/Imakefile.
#
# If we do not do this, we hit a very annoying and obscure problem: during
# system startup, xdm starts before init spawns gettys. If the X server
# is started before init spawns the gettys (which easily happens on slow
# machines), it grabs the first virtual terminal (instead of the first
# "free" one). Later on, when the first getty is started, it grabs the
# same terminal X used (the first one). As a result, only one of them
# will receive key presses. And on slow machines, X will have lost access
# to the keyboard.
.if (${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD") && \
(${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64")
CONFIGURE_ARGS+= --with-default-vt=vt05
.endif
MAKE_FLAGS+= appdefaultdir=${PREFIX}/lib/X11/app-defaults
.include "options.mk"
.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXft/buildlink3.mk"
.include "../../x11/libXmu/buildlink3.mk"
.include "../../x11/libXinerama/buildlink3.mk"
.include "../../mk/pam.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"