1 # $NetBSD: Makefile,v 1.174 2013/05/10 21:01:16 richard Exp $
7 MASTER_SITES
= ${MASTER_SITE_GNOME
:=sources
/gdm
/2.20/}
10 MAINTAINER
= pkgsrc-users@NetBSD.org
11 HOMEPAGE
= http
://www.gnome.org
/
12 COMMENT
= Gnome Display Manager
- a re-implementation of the xdm program
14 DEPENDS
+= zenity
>=2.16.0:..
/..
/x11
/zenity
19 USE_TOOLS
+= gmake intltool msgfmt pkg-config
24 CONFIGURE_ARGS
+= --localstatedir
=${VARBASE
:Q
}
25 CONFIGURE_ARGS
+= --sysconfdir
=${PKG_SYSCONFDIR
:Q
}
26 CONFIGURE_ARGS
+= --with-dmconfdir
=${PKG_SYSCONFDIR
:Q
}/dm
27 CONFIGURE_ARGS
+= --with-sysconfsubdir
=
28 CONFIGURE_ARGS
+= --with-prefetch
=yes
29 CONFIGURE_ENV
+= PREFIX
=${PREFIX
:Q
}
30 CONFIGURE_ENV
+= X11BASE
=${X11BASE
:Q
}
31 INSTALL_MAKE_FLAGS
+= ${MAKE_FLAGS}
32 INSTALL_MAKE_FLAGS
+= GDM_CUSTOM_CONF
=${EGDIR
:Q
}/custom.conf
33 INSTALL_MAKE_FLAGS
+= sysconfdir
=${EGDIR
:Q
}
34 MAKE_ENV
+= CHMOD
=${CHMOD
:Q
} CHOWN
=${CHOWN
:Q
}
36 OWN_DIRS
= ${PKG_SYSCONFDIR}/Init
37 OWN_DIRS
+= ${PKG_SYSCONFDIR}/PostLogin
38 OWN_DIRS
+= ${PKG_SYSCONFDIR}/PostSession
39 OWN_DIRS
+= ${PKG_SYSCONFDIR}/PreSession
40 OWN_DIRS
+= ${PKG_SYSCONFDIR}/dm
41 OWN_DIRS
+= ${PKG_SYSCONFDIR}/modules
42 OWN_DIRS
+= ${VARBASE}/gdm
43 OWN_DIRS
+= ${VARBASE}/log
/gdm
45 PKG_SYSCONFSUBDIR
= gdm
46 EGDIR
= ${PREFIX}/share
/examples
/gdm
48 .for f in custom.conf locale.alias \
49 modules
/AccessDwellMouseEvents modules
/AccessKeyMouseEvents \
50 modules
/factory-AccessDwellMouseEvents \
51 modules
/factory-AccessKeyMouseEvents
52 CONF_FILES
+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
54 .for f in Init
/Default PostLogin
/Default.sample PostSession
/Default \
55 PreSession
/Default XKeepsCrashing Xsession
56 CONF_FILES_PERMS
+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} \
57 ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0755
61 .
include "../../mk/bsd.prefs.mk"
63 SUBST_CLASSES
+= desktop
64 SUBST_MESSAGE.desktop
= Configuring GDM settings.
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
69 SUBST_SED.desktop
= -e
's/^_//g'
70 SUBST_SED.desktop
+= -e
's|^User=gdm$$|User=${GDMOWN}|g'
71 SUBST_SED.desktop
+= -e
's|^Group=gdm$$|Group=${GDMGRP}|g'
72 SUBST_SED.desktop
+= -e
's|^\#GtkTheme=.*$$|GtkTheme=Clearlooks|g'
73 SUBST_SED.desktop
+= -e
's|^\#FirstVT=.*$$|FirstVT=5|g'
74 SUBST_SED.desktop
+= -e
's|^\#VTAllocation=.*$$|VTAllocation=true|g'
75 .if
${OPSYS} == "NetBSD"
76 SUBST_SED.desktop
+= -e
's|^\#Logo=.*$$|Logo=${PREFIX}/share/pixmaps/NetBSD.xpm|g'
78 .if
${OPSYS} == "NetBSD" ||
${OPSYS} == "OpenBSD"
79 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'
82 SUBST_SED.desktop
+= -e
's|^PreFetchProgram=.*$$|PreFetchProgram=${PREFIX}/libexec/gdmprefetch @${PKG_SYSCONFDIR}/gdmprefetchlist|g'
84 SUBST_CLASSES
+= gdmsetup
85 SUBST_MESSAGE.gdmsetup
= Patching gdmsetup theme installer to use
${REAL_ROOT_USER}:${REAL_ROOT_GROUP}
86 SUBST_STAGE.gdmsetup
= post-patch
87 SUBST_FILES.gdmsetup
= gui
/gdmsetup.c
88 SUBST_SED.gdmsetup
= -e
's/root:root/${REAL_ROOT_USER}:${REAL_ROOT_GROUP}/g'
90 .if
${OPSYS} == "SunOS"
99 # 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,
101 # which should work for most installations. See the definition of
102 # DEFAULTVT in xsrc/xfree/xc/programs/xdm/config/Imakefile.
104 # 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
106 # is started before init spawns the gettys (which easily happens on slow
107 # 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
109 # 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
112 .if
(${OPSYS} == "NetBSD" ||
${OPSYS} == "OpenBSD") && \
113 (${MACHINE_ARCH} == "i386" ||
${MACHINE_ARCH} == "x86_64")
114 CONFIGURE_ARGS
+= X_SERVER_ARGS
="vt05"
118 .if exists
(${X11BASE}/include/X11
/extensions
/dmxext.h
)
121 PRINT_PLIST_AWK
+= /dmx
/ { print "$${DMX}" $$0; next
}
124 .if exists
(/usr
/include/linux
/vt.h
)
127 PRINT_PLIST_AWK
+= /gdmopen
/ { print "$${GDMOPEN}" $$0; next
}
129 .
include "../../devel/gettext-lib/buildlink3.mk"
130 .
include "../../devel/glib2/buildlink3.mk"
131 .
include "../../devel/libglade/buildlink3.mk"
132 .
include "../../devel/pango/buildlink3.mk"
133 .
include "../../devel/popt/buildlink3.mk"
134 .
include "../../graphics/hicolor-icon-theme/buildlink3.mk"
135 BUILDLINK_API_DEPENDS.libart
+= libart
>=2.3.11
136 .
include "../../graphics/libart/buildlink3.mk"
137 .
include "../../graphics/libgnomecanvas/buildlink3.mk"
138 .
include "../../graphics/librsvg/buildlink3.mk"
139 .
include "../../security/tcp_wrappers/buildlink3.mk"
140 .
include "../../textproc/gnome-doc-utils/buildlink3.mk"
141 .
include "../../textproc/libxml2/buildlink3.mk"
142 .
include "../../mk/omf-scrollkeeper.mk"
143 .
include "../../x11/gtk2/buildlink3.mk"
146 ${INSTALL_DATA} ${FILESDIR}/NetBSD.xpm
${DESTDIR}${PREFIX}/share
/pixmaps
147 ${INSTALL_DATA} ${FILESDIR}/custom.desktop \
148 ${DESTDIR}${PREFIX}/share
/gdm
/BuiltInSessions
150 .
include "../../mk/bsd.pkg.mk"