2018-03-12 12:15:24 +01:00
|
|
|
# $NetBSD: Makefile,v 1.31 2018/03/12 11:17:58 wiz Exp $
|
2007-08-06 16:56:33 +02:00
|
|
|
|
2011-11-09 19:28:40 +01:00
|
|
|
DISTNAME= xdm-1.1.11
|
2018-03-12 12:15:24 +01:00
|
|
|
PKGREVISION= 6
|
2007-08-06 16:56:33 +02:00
|
|
|
CATEGORIES= x11
|
2008-05-24 23:45:14 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_XORG:=app/}
|
2007-08-06 16:56:33 +02:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
|
|
|
MAINTAINER= blair.sadewitz@gmail.com
|
|
|
|
HOMEPAGE= http://xorg.freedesktop.org/
|
|
|
|
COMMENT= X Display Manager from modular X.org
|
|
|
|
|
2007-08-09 14:58:27 +02:00
|
|
|
DEPENDS+= sessreg-[0-9]*:../../x11/sessreg
|
2014-08-25 10:59:38 +02:00
|
|
|
DEPENDS+= xrdb-[0-9]*:../../x11/xrdb
|
2007-08-09 14:58:27 +02:00
|
|
|
|
2012-04-29 10:04:56 +02:00
|
|
|
PKG_SYSCONFSUBDIR= xdm
|
|
|
|
CONFIGURE_ARGS+= --with-xdmconfigdir=${PKG_SYSCONFDIR:Q}
|
|
|
|
|
|
|
|
EGDIR= ${PREFIX}/share/examples/xdm
|
|
|
|
INSTALL_MAKE_FLAGS+= xdmconfigdir=${EGDIR:Q}
|
|
|
|
|
|
|
|
CONF_FILES+= ${EGDIR}/xdm-config ${PKG_SYSCONFDIR}/xdm-config
|
|
|
|
CONF_FILES+= ${EGDIR}/Xaccess ${PKG_SYSCONFDIR}/Xaccess
|
|
|
|
CONF_FILES+= ${EGDIR}/Xresources ${PKG_SYSCONFDIR}/Xresources
|
|
|
|
CONF_FILES+= ${EGDIR}/Xservers ${PKG_SYSCONFDIR}/Xservers
|
|
|
|
|
2007-08-06 16:56:33 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-dynamic-greeter
|
|
|
|
CONFIGURE_ARGS+= --enable-tcp-transport
|
|
|
|
CONFIGURE_ARGS+= --enable-unix-transport
|
2011-11-09 19:28:40 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-xdmshell
|
2012-04-29 09:48:34 +02:00
|
|
|
CONFIGURE_ARGS+= --with-appdefaultdir=${PREFIX}/lib/X11/app-defaults
|
2007-08-06 16:56:33 +02:00
|
|
|
|
|
|
|
USE_TOOLS+= pkg-config
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LIBTOOL= yes
|
|
|
|
|
|
|
|
RCD_SCRIPTS= xdm
|
|
|
|
|
2010-02-06 21:03:01 +01:00
|
|
|
BUILD_DEFS+= VARBASE
|
2012-04-29 09:48:34 +02:00
|
|
|
CONFIGURE_ARGS+= --with-logdir=${VARBASE}/log
|
|
|
|
CONFIGURE_ARGS+= --with-piddir=${VARBASE}/run
|
2010-02-06 21:03:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-authdir=${VARBASE}/lib/xdm
|
|
|
|
OWN_DIRS_PERMS+= ${VARBASE}/lib/xdm \
|
|
|
|
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0755
|
|
|
|
|
2013-06-16 15:34:30 +02:00
|
|
|
TOOL_DEPENDS+= tradcpp-[0-9]*:../../devel/tradcpp
|
2013-06-14 00:30:41 +02:00
|
|
|
CONFIGURE_ENV+= ac_cv_path_RAWCPP="${PREFIX}/bin/tradcpp -Uunix"
|
2010-02-06 21:03:01 +01:00
|
|
|
|
2016-02-26 11:57:45 +01:00
|
|
|
CONFIGURE_ARGS.NetBSD+= --with-random-device=/dev/urandom
|
2007-08-06 17:56:09 +02:00
|
|
|
|
2008-06-17 02:42:14 +02:00
|
|
|
# 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.
|
2016-02-26 11:57:45 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2008-06-17 02:42:14 +02:00
|
|
|
.if (${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD") && \
|
|
|
|
(${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64")
|
|
|
|
CONFIGURE_ARGS+= --with-default-vt=vt05
|
|
|
|
.endif
|
|
|
|
|
2007-11-07 18:17:55 +01:00
|
|
|
.include "options.mk"
|
|
|
|
|
2007-08-06 16:56:33 +02:00
|
|
|
.include "../../x11/libXaw/buildlink3.mk"
|
|
|
|
.include "../../x11/libXmu/buildlink3.mk"
|
|
|
|
.include "../../x11/libXinerama/buildlink3.mk"
|
|
|
|
.include "../../mk/pam.buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|