1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit savedconfig toolchain-funcs
7 DESCRIPTION="a dynamic window manager for X11"
8 HOMEPAGE="https://dwm.suckless.org/"
9 SRC_URI="https://dl.suckless.org/${PN}/${P}.tar.gz"
13 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
20 xinerama? ( x11-libs/libXinerama )
24 xinerama? ( x11-base/xorg-proto )
32 -e "/^\(LDFLAGS\|CFLAGS\|CPPFLAGS\)/{s| = | += |g;s|-s ||g}" \
35 restore_config config.h
40 emake CC=$(tc-getCC) dwm
42 emake CC=$(tc-getCC) XINERAMAFLAGS="" XINERAMALIBS="" dwm
47 emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
49 exeinto /etc/X11/Sessions
50 newexe "${FILESDIR}"/dwm-session2 dwm
52 insinto /usr/share/xsessions
53 doins "${FILESDIR}"/dwm.desktop