| @@ -1,66 +1,71 @@ | | | @@ -1,66 +1,71 @@ |
1 | # $NetBSD: Makefile,v 1.11 2010/01/28 15:14:33 tnn Exp $ | | 1 | # $NetBSD: Makefile,v 1.12 2010/02/06 20:03:01 tnn Exp $ |
2 | | | 2 | |
3 | DISTNAME= xdm-1.1.9 | | 3 | DISTNAME= xdm-1.1.9 |
| | | 4 | PKGREVISION= 1 |
4 | CATEGORIES= x11 | | 5 | CATEGORIES= x11 |
5 | MASTER_SITES= ${MASTER_SITE_XORG:=app/} | | 6 | MASTER_SITES= ${MASTER_SITE_XORG:=app/} |
6 | EXTRACT_SUFX= .tar.bz2 | | 7 | EXTRACT_SUFX= .tar.bz2 |
7 | | | 8 | |
8 | MAINTAINER= blair.sadewitz@gmail.com | | 9 | MAINTAINER= blair.sadewitz@gmail.com |
9 | HOMEPAGE= http://xorg.freedesktop.org/ | | 10 | HOMEPAGE= http://xorg.freedesktop.org/ |
10 | COMMENT= X Display Manager from modular X.org | | 11 | COMMENT= X Display Manager from modular X.org |
11 | | | 12 | |
12 | DEPENDS+= sessreg-[0-9]*:../../x11/sessreg | | 13 | DEPENDS+= sessreg-[0-9]*:../../x11/sessreg |
13 | | | 14 | |
14 | PKG_DESTDIR_SUPPORT= user-destdir | | 15 | PKG_DESTDIR_SUPPORT= user-destdir |
15 | | | 16 | |
16 | CONFIGURE_ARGS+= --enable-dynamic-greeter | | 17 | CONFIGURE_ARGS+= --enable-dynamic-greeter |
17 | CONFIGURE_ARGS+= --enable-tcp-transport | | 18 | CONFIGURE_ARGS+= --enable-tcp-transport |
18 | CONFIGURE_ARGS+= --enable-unix-transport | | 19 | CONFIGURE_ARGS+= --enable-unix-transport |
19 | | | 20 | |
20 | USE_TOOLS+= pkg-config | | 21 | USE_TOOLS+= pkg-config |
21 | GNU_CONFIGURE= yes | | 22 | GNU_CONFIGURE= yes |
22 | USE_LIBTOOL= yes | | 23 | USE_LIBTOOL= yes |
23 | | | 24 | |
24 | RCD_SCRIPTS= xdm | | 25 | RCD_SCRIPTS= xdm |
25 | | | 26 | |
| | | 27 | BUILD_DEFS+= VARBASE |
| | | 28 | CONFIGURE_ARGS+= --with-authdir=${VARBASE}/lib/xdm |
| | | 29 | OWN_DIRS_PERMS+= ${VARBASE}/lib/xdm \ |
| | | 30 | ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0755 |
| | | 31 | |
26 | .include "../../mk/compiler.mk" | | 32 | .include "../../mk/compiler.mk" |
27 | | | 33 | |
28 | .if !empty(CC_VERSION:Mgcc-[3-4]*) | | 34 | .if !empty(CC_VERSION:Mgcc-[3-4]*) |
29 | CFLAGS+= -fno-strict-aliasing | | 35 | CFLAGS+= -fno-strict-aliasing |
30 | .endif | | 36 | .endif |
31 | | | 37 | |
| | | 38 | .if empty(PKGSRC_COMPILER:Mgcc) |
| | | 39 | CONFIGURE_ENV+= ac_cv_path_RAWCPP="cc -E -Uunix -" |
| | | 40 | .endif |
| | | 41 | |
32 | .if ${OPSYS} == "NetBSD" | | 42 | .if ${OPSYS} == "NetBSD" |
33 | CONFIGURE_ARGS+= --with-random-device=/dev/urandom | | 43 | CONFIGURE_ARGS+= --with-random-device=/dev/urandom |
34 | .endif | | 44 | .endif |
35 | | | 45 | |
36 | # The following forces the X server to start on the 5th virtual terminal. | | 46 | # The following forces the X server to start on the 5th virtual terminal. |
37 | # This is suboptimal but matches the defaults for the xdm configuration, | | 47 | # This is suboptimal but matches the defaults for the xdm configuration, |
38 | # which should work for most installations. See the definition of | | 48 | # which should work for most installations. See the definition of |
39 | # DEFAULTVT in xsrc/xfree/xc/programs/xdm/config/Imakefile. | | 49 | # DEFAULTVT in xsrc/xfree/xc/programs/xdm/config/Imakefile. |
40 | # | | 50 | # |
41 | # If we do not do this, we hit a very annoying and obscure problem: during | | 51 | # If we do not do this, we hit a very annoying and obscure problem: during |
42 | # system startup, xdm starts before init spawns gettys. If the X server | | 52 | # system startup, xdm starts before init spawns gettys. If the X server |
43 | # is started before init spawns the gettys (which easily happens on slow | | 53 | # is started before init spawns the gettys (which easily happens on slow |
44 | # machines), it grabs the first virtual terminal (instead of the first | | 54 | # machines), it grabs the first virtual terminal (instead of the first |
45 | # "free" one). Later on, when the first getty is started, it grabs the | | 55 | # "free" one). Later on, when the first getty is started, it grabs the |
46 | # same terminal X used (the first one). As a result, only one of them | | 56 | # same terminal X used (the first one). As a result, only one of them |
47 | # will receive key presses. And on slow machines, X will have lost access | | 57 | # will receive key presses. And on slow machines, X will have lost access |
48 | # to the keyboard. | | 58 | # to the keyboard. |
49 | .if (${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD") && \ | | 59 | .if (${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD") && \ |
50 | (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") | | 60 | (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") |
51 | CONFIGURE_ARGS+= --with-default-vt=vt05 | | 61 | CONFIGURE_ARGS+= --with-default-vt=vt05 |
52 | .endif | | 62 | .endif |
53 | | | 63 | |
54 | .include "../../mk/compiler.mk" | | | |
55 | .if empty(PKGSRC_COMPILER:Mgcc) | | | |
56 | CONFIGURE_ENV+= ac_cv_path_RAWCPP="cc -E -Uunix -" | | | |
57 | .endif | | | |
58 | | | | |
59 | .include "options.mk" | | 64 | .include "options.mk" |
60 | | | 65 | |
61 | .include "../../x11/libXaw/buildlink3.mk" | | 66 | .include "../../x11/libXaw/buildlink3.mk" |
62 | .include "../../x11/libXft/buildlink3.mk" | | 67 | .include "../../x11/libXft/buildlink3.mk" |
63 | .include "../../x11/libXmu/buildlink3.mk" | | 68 | .include "../../x11/libXmu/buildlink3.mk" |
64 | .include "../../x11/libXinerama/buildlink3.mk" | | 69 | .include "../../x11/libXinerama/buildlink3.mk" |
65 | .include "../../mk/pam.buildlink3.mk" | | 70 | .include "../../mk/pam.buildlink3.mk" |
66 | .include "../../mk/bsd.pkg.mk" | | 71 | .include "../../mk/bsd.pkg.mk" |