| @@ -1,150 +1,148 @@ | | | @@ -1,150 +1,148 @@ |
1 | # $NetBSD: Makefile,v 1.195 2020/03/10 22:11:12 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.196 2020/05/12 16:30:59 rillig Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= gdm-2.20.11 | | 4 | DISTNAME= gdm-2.20.11 |
5 | PKGREVISION= 31 | | 5 | PKGREVISION= 31 |
6 | CATEGORIES= x11 gnome | | 6 | CATEGORIES= x11 gnome |
7 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gdm/2.20/} | | 7 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gdm/2.20/} |
8 | EXTRACT_SUFX= .tar.bz2 | | 8 | EXTRACT_SUFX= .tar.bz2 |
9 | | | 9 | |
10 | MAINTAINER= pkgsrc-users@NetBSD.org | | 10 | MAINTAINER= pkgsrc-users@NetBSD.org |
11 | HOMEPAGE= https://www.gnome.org/ | | 11 | HOMEPAGE= https://www.gnome.org/ |
12 | COMMENT= Gnome Display Manager - a re-implementation of the xdm program | | 12 | COMMENT= Gnome Display Manager - a re-implementation of the xdm program |
13 | | | 13 | |
14 | DEPENDS+= zenity>=2.16.0:../../x11/zenity | | 14 | DEPENDS+= zenity>=2.16.0:../../x11/zenity |
15 | | | 15 | |
16 | USE_PKGLOCALEDIR= YES | | 16 | USE_PKGLOCALEDIR= YES |
17 | GNU_CONFIGURE= YES | | 17 | GNU_CONFIGURE= YES |
18 | USE_LIBTOOL= YES | | 18 | USE_LIBTOOL= YES |
19 | USE_TOOLS+= gmake intltool msgfmt pkg-config | | 19 | USE_TOOLS+= gmake intltool msgfmt pkg-config |
20 | BUILD_DEFS+= VARBASE | | 20 | BUILD_DEFS+= VARBASE |
21 | | | 21 | |
22 | .include "options.mk" | | 22 | .include "options.mk" |
23 | | | 23 | |
24 | CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q} | | 24 | CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q} |
25 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} | | 25 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} |
26 | CONFIGURE_ARGS+= --with-dmconfdir=${PKG_SYSCONFDIR:Q}/dm | | 26 | CONFIGURE_ARGS+= --with-dmconfdir=${PKG_SYSCONFDIR:Q}/dm |
27 | CONFIGURE_ARGS+= --with-sysconfsubdir= | | 27 | CONFIGURE_ARGS+= --with-sysconfsubdir= |
28 | CONFIGURE_ARGS+= --with-prefetch=yes | | 28 | CONFIGURE_ARGS+= --with-prefetch=yes |
29 | CONFIGURE_ENV+= PREFIX=${PREFIX:Q} | | 29 | CONFIGURE_ENV+= PREFIX=${PREFIX:Q} |
30 | CONFIGURE_ENV+= X11BASE=${X11BASE:Q} | | 30 | CONFIGURE_ENV+= X11BASE=${X11BASE:Q} |
31 | INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS} | | 31 | INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS} |
32 | INSTALL_MAKE_FLAGS+= GDM_CUSTOM_CONF=${EGDIR:Q}/custom.conf | | 32 | INSTALL_MAKE_FLAGS+= GDM_CUSTOM_CONF=${EGDIR:Q}/custom.conf |
33 | INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR:Q} | | 33 | INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR:Q} |
34 | MAKE_ENV+= CHMOD=${CHMOD:Q} CHOWN=${CHOWN:Q} | | 34 | MAKE_ENV+= CHMOD=${CHMOD:Q} CHOWN=${CHOWN:Q} |
35 | | | 35 | |
36 | OWN_DIRS= ${PKG_SYSCONFDIR}/Init | | 36 | OWN_DIRS= ${PKG_SYSCONFDIR}/Init |
37 | OWN_DIRS+= ${PKG_SYSCONFDIR}/PostLogin | | 37 | OWN_DIRS+= ${PKG_SYSCONFDIR}/PostLogin |
38 | OWN_DIRS+= ${PKG_SYSCONFDIR}/PostSession | | 38 | OWN_DIRS+= ${PKG_SYSCONFDIR}/PostSession |
39 | OWN_DIRS+= ${PKG_SYSCONFDIR}/PreSession | | 39 | OWN_DIRS+= ${PKG_SYSCONFDIR}/PreSession |
40 | OWN_DIRS+= ${PKG_SYSCONFDIR}/dm | | 40 | OWN_DIRS+= ${PKG_SYSCONFDIR}/dm |
41 | OWN_DIRS+= ${PKG_SYSCONFDIR}/modules | | 41 | OWN_DIRS+= ${PKG_SYSCONFDIR}/modules |
42 | OWN_DIRS+= ${VARBASE}/gdm | | 42 | OWN_DIRS+= ${VARBASE}/gdm |
43 | OWN_DIRS+= ${VARBASE}/log/gdm | | 43 | OWN_DIRS+= ${VARBASE}/log/gdm |
44 | | | 44 | |
45 | PKG_SYSCONFSUBDIR= gdm | | 45 | PKG_SYSCONFSUBDIR= gdm |
46 | EGDIR= ${PREFIX}/share/examples/gdm | | 46 | EGDIR= ${PREFIX}/share/examples/gdm |
47 | CONF_FILES= | | 47 | CONF_FILES= |
48 | .for f in custom.conf locale.alias \ | | 48 | .for f in custom.conf locale.alias \ |
49 | modules/AccessDwellMouseEvents modules/AccessKeyMouseEvents \ | | 49 | modules/AccessDwellMouseEvents modules/AccessKeyMouseEvents \ |
50 | modules/factory-AccessDwellMouseEvents \ | | 50 | modules/factory-AccessDwellMouseEvents \ |
51 | modules/factory-AccessKeyMouseEvents | | 51 | modules/factory-AccessKeyMouseEvents |
52 | CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} | | 52 | CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} |
53 | .endfor | | 53 | .endfor |
54 | .for f in Init/Default PostLogin/Default.sample PostSession/Default \ | | 54 | .for f in Init/Default PostLogin/Default.sample PostSession/Default \ |
55 | PreSession/Default XKeepsCrashing Xsession | | 55 | PreSession/Default XKeepsCrashing Xsession |
56 | CONF_FILES_PERMS+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} \ | | 56 | CONF_FILES_PERMS+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} \ |
57 | ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0755 | | 57 | ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0755 |
58 | .endfor | | 58 | .endfor |
59 | RCD_SCRIPTS= gdm | | 59 | RCD_SCRIPTS= gdm |
60 | | | 60 | |
61 | .include "../../mk/bsd.prefs.mk" | | 61 | .include "../../mk/bsd.prefs.mk" |
62 | | | 62 | |
63 | SUBST_CLASSES+= desktop | | 63 | SUBST_CLASSES+= desktop |
64 | SUBST_MESSAGE.desktop= Configuring GDM settings. | | 64 | SUBST_MESSAGE.desktop= Configuring GDM settings. |
65 | SUBST_STAGE.desktop= pre-configure | | 65 | SUBST_STAGE.desktop= pre-configure |
66 | SUBST_FILES.desktop= config/default.desktop.in | | | |
67 | #SUBST_FILES.desktop+= config/gnome.desktop.in | | | |
68 | SUBST_FILES.desktop+= config/gdm.conf.in | | 66 | SUBST_FILES.desktop+= config/gdm.conf.in |
69 | SUBST_SED.desktop= -e 's/^_//g' | | 67 | SUBST_SED.desktop= -e 's/^_//g' |
70 | SUBST_SED.desktop+= -e 's|^User=gdm$$|User=${GDMOWN}|g' | | 68 | SUBST_SED.desktop+= -e 's|^User=gdm$$|User=${GDMOWN}|g' |
71 | SUBST_SED.desktop+= -e 's|^Group=gdm$$|Group=${GDMGRP}|g' | | 69 | SUBST_SED.desktop+= -e 's|^Group=gdm$$|Group=${GDMGRP}|g' |
72 | SUBST_SED.desktop+= -e 's|^\#GtkTheme=.*$$|GtkTheme=Clearlooks|g' | | 70 | SUBST_SED.desktop+= -e 's|^\#GtkTheme=.*$$|GtkTheme=Clearlooks|g' |
73 | SUBST_SED.desktop+= -e 's|^\#FirstVT=.*$$|FirstVT=5|g' | | 71 | SUBST_SED.desktop+= -e 's|^\#FirstVT=.*$$|FirstVT=5|g' |
74 | SUBST_SED.desktop+= -e 's|^\#VTAllocation=.*$$|VTAllocation=true|g' | | 72 | SUBST_SED.desktop+= -e 's|^\#VTAllocation=.*$$|VTAllocation=true|g' |
75 | .if ${OPSYS} == "NetBSD" | | 73 | .if ${OPSYS} == "NetBSD" |
76 | SUBST_SED.desktop+= -e 's|^\#Logo=.*$$|Logo=${PREFIX}/share/pixmaps/NetBSD.xpm|g' | | 74 | SUBST_SED.desktop+= -e 's|^\#Logo=.*$$|Logo=${PREFIX}/share/pixmaps/NetBSD.xpm|g' |
77 | .endif | | 75 | .endif |
78 | .if ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD" | | 76 | .if ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD" |
79 | SUBST_SED.desktop+= -e 's|^\#RebootCommand=.*$$|RebootCommand=/sbin/shutdown -r now|g' | | 77 | SUBST_SED.desktop+= -e 's|^\#RebootCommand=.*$$|RebootCommand=/sbin/shutdown -r now|g' |
80 | SUBST_SED.desktop+= -e 's|^\#HaltCommand=.*$$|HaltCommand=/sbin/shutdown -p now|g' | | 78 | SUBST_SED.desktop+= -e 's|^\#HaltCommand=.*$$|HaltCommand=/sbin/shutdown -p now|g' |
81 | .endif | | 79 | .endif |
82 | SUBST_SED.desktop+= -e 's|^PreFetchProgram=.*$$|PreFetchProgram=${PREFIX}/libexec/gdmprefetch @${PKG_SYSCONFDIR}/gdmprefetchlist|g' | | 80 | SUBST_SED.desktop+= -e 's|^PreFetchProgram=.*$$|PreFetchProgram=${PREFIX}/libexec/gdmprefetch @${PKG_SYSCONFDIR}/gdmprefetchlist|g' |
83 | | | 81 | |
84 | SUBST_CLASSES+= gdmsetup | | 82 | SUBST_CLASSES+= gdmsetup |
85 | SUBST_MESSAGE.gdmsetup= Patching gdmsetup theme installer to use ${REAL_ROOT_USER}:${REAL_ROOT_GROUP} | | 83 | SUBST_MESSAGE.gdmsetup= Patching gdmsetup theme installer to use ${REAL_ROOT_USER}:${REAL_ROOT_GROUP} |
86 | SUBST_STAGE.gdmsetup= pre-configure | | 84 | SUBST_STAGE.gdmsetup= pre-configure |
87 | SUBST_FILES.gdmsetup= gui/gdmsetup.c | | 85 | SUBST_FILES.gdmsetup= gui/gdmsetup.c |
88 | SUBST_SED.gdmsetup= -e 's/root:root/${REAL_ROOT_USER}:${REAL_ROOT_GROUP}/g' | | 86 | SUBST_SED.gdmsetup= -e 's/root:root/${REAL_ROOT_USER}:${REAL_ROOT_GROUP}/g' |
89 | | | 87 | |
90 | .if ${OPSYS} == "SunOS" | | 88 | .if ${OPSYS} == "SunOS" |
91 | CFLAGS+= -DSunOS | | 89 | CFLAGS+= -DSunOS |
92 | GDMOWN= daemon | | 90 | GDMOWN= daemon |
93 | GDMGRP= other | | 91 | GDMGRP= other |
94 | .else | | 92 | .else |
95 | GDMOWN= daemon | | 93 | GDMOWN= daemon |
96 | GDMGRP= daemon | | 94 | GDMGRP= daemon |
97 | .endif | | 95 | .endif |
98 | | | 96 | |
99 | # The following forces the X server to start on the 5th virtual terminal. | | 97 | # The following forces the X server to start on the 5th virtual terminal. |
100 | # This is suboptimal but matches the defaults for the xdm configuration, | | 98 | # This is suboptimal but matches the defaults for the xdm configuration, |
101 | # which should work for most installations. See the definition of | | 99 | # which should work for most installations. See the definition of |
102 | # DEFAULTVT in xsrc/xfree/xc/programs/xdm/config/Imakefile. | | 100 | # DEFAULTVT in xsrc/xfree/xc/programs/xdm/config/Imakefile. |
103 | # | | 101 | # |
104 | # If we do not do this, we hit a very annoying and obscure problem: during | | 102 | # If we do not do this, we hit a very annoying and obscure problem: during |
105 | # system startup, gdm starts before init spawns gettys. If the X server | | 103 | # system startup, gdm starts before init spawns gettys. If the X server |
106 | # is started before init spawns the gettys (which easily happens on slow | | 104 | # is started before init spawns the gettys (which easily happens on slow |
107 | # machines), it grabs the first virtual terminal (instead of the first | | 105 | # machines), it grabs the first virtual terminal (instead of the first |
108 | # "free" one). Later on, when the first getty is started, it grabs the | | 106 | # "free" one). Later on, when the first getty is started, it grabs the |
109 | # same terminal X used (the first one). As a result, only one of them | | 107 | # same terminal X used (the first one). As a result, only one of them |
110 | # will receive key presses. And on slow machines, X will have lost access | | 108 | # will receive key presses. And on slow machines, X will have lost access |
111 | # to the keyboard. | | 109 | # to the keyboard. |
112 | .if (${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD") && \ | | 110 | .if (${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD") && \ |
113 | (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") | | 111 | (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") |
114 | CONFIGURE_ARGS+= X_SERVER_ARGS="vt05" | | 112 | CONFIGURE_ARGS+= X_SERVER_ARGS="vt05" |
115 | .endif | | 113 | .endif |
116 | | | 114 | |
117 | PLIST_VARS+= dmx | | 115 | PLIST_VARS+= dmx |
118 | .if exists(${X11BASE}/include/X11/extensions/dmxext.h) | | 116 | .if exists(${X11BASE}/include/X11/extensions/dmxext.h) |
119 | PLIST.dmx= yes | | 117 | PLIST.dmx= yes |
120 | .endif | | 118 | .endif |
121 | PRINT_PLIST_AWK+= /dmx/ { print "$${DMX}" $$0; next } | | 119 | PRINT_PLIST_AWK+= /dmx/ { print "$${DMX}" $$0; next } |
122 | | | 120 | |
123 | PLIST_VARS+= gdmopen | | 121 | PLIST_VARS+= gdmopen |
124 | .if exists(/usr/include/linux/vt.h) || ${OPSYS} == "SunOS" | | 122 | .if exists(/usr/include/linux/vt.h) || ${OPSYS} == "SunOS" |
125 | PLIST.gdmopen= yes | | 123 | PLIST.gdmopen= yes |
126 | .endif | | 124 | .endif |
127 | PRINT_PLIST_AWK+= /gdmopen/ { print "$${GDMOPEN}" $$0; next } | | 125 | PRINT_PLIST_AWK+= /gdmopen/ { print "$${GDMOPEN}" $$0; next } |
128 | | | 126 | |
129 | .include "../../devel/gettext-lib/buildlink3.mk" | | 127 | .include "../../devel/gettext-lib/buildlink3.mk" |
130 | .include "../../devel/glib2/buildlink3.mk" | | 128 | .include "../../devel/glib2/buildlink3.mk" |
131 | .include "../../devel/libglade/buildlink3.mk" | | 129 | .include "../../devel/libglade/buildlink3.mk" |
132 | .include "../../devel/pango/buildlink3.mk" | | 130 | .include "../../devel/pango/buildlink3.mk" |
133 | .include "../../devel/popt/buildlink3.mk" | | 131 | .include "../../devel/popt/buildlink3.mk" |
134 | .include "../../graphics/hicolor-icon-theme/buildlink3.mk" | | 132 | .include "../../graphics/hicolor-icon-theme/buildlink3.mk" |
135 | BUILDLINK_API_DEPENDS.libart+= libart>=2.3.11 | | 133 | BUILDLINK_API_DEPENDS.libart+= libart>=2.3.11 |
136 | .include "../../graphics/libart/buildlink3.mk" | | 134 | .include "../../graphics/libart/buildlink3.mk" |
137 | .include "../../graphics/libgnomecanvas/buildlink3.mk" | | 135 | .include "../../graphics/libgnomecanvas/buildlink3.mk" |
138 | .include "../../graphics/librsvg/buildlink3.mk" | | 136 | .include "../../graphics/librsvg/buildlink3.mk" |
139 | .include "../../security/tcp_wrappers/buildlink3.mk" | | 137 | .include "../../security/tcp_wrappers/buildlink3.mk" |
140 | .include "../../textproc/gnome-doc-utils/buildlink3.mk" | | 138 | .include "../../textproc/gnome-doc-utils/buildlink3.mk" |
141 | .include "../../textproc/libxml2/buildlink3.mk" | | 139 | .include "../../textproc/libxml2/buildlink3.mk" |
142 | .include "../../mk/omf-scrollkeeper.mk" | | 140 | .include "../../mk/omf-scrollkeeper.mk" |
143 | .include "../../x11/gtk2/buildlink3.mk" | | 141 | .include "../../x11/gtk2/buildlink3.mk" |
144 | | | 142 | |
145 | post-install: | | 143 | post-install: |
146 | ${INSTALL_DATA} ${FILESDIR}/NetBSD.xpm ${DESTDIR}${PREFIX}/share/pixmaps | | 144 | ${INSTALL_DATA} ${FILESDIR}/NetBSD.xpm ${DESTDIR}${PREFIX}/share/pixmaps |
147 | ${INSTALL_DATA} ${FILESDIR}/custom.desktop \ | | 145 | ${INSTALL_DATA} ${FILESDIR}/custom.desktop \ |
148 | ${DESTDIR}${PREFIX}/share/gdm/BuiltInSessions | | 146 | ${DESTDIR}${PREFIX}/share/gdm/BuiltInSessions |
149 | | | 147 | |
150 | .include "../../mk/bsd.pkg.mk" | | 148 | .include "../../mk/bsd.pkg.mk" |