summaryrefslogtreecommitdiff
path: root/wm/golem/Makefile
blob: b9bc28cb77fca19daa56805ec6fcb1b8da75ac1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# $NetBSD: Makefile,v 1.14 2005/06/02 18:10:33 wiz Exp $
#

DISTNAME=	golem-0.0.5
PKGREVISION=	2
CATEGORIES=	wm
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=golem/}

MAINTAINER=	reide@darkest.org
HOMEPAGE=	http://golem.sourceforge.net/
COMMENT=	Fast and lightweight yet customizable window manager

USE_PKGINSTALL=	YES
USE_TOOLS+=	gmake
GNU_CONFIGURE=	YES

CONFIGURE_ARGS=	--enable-i18n

.if exists(${X11BASE}/include/X11/extensions/Xinerama.h)
CONFIGURE_ARGS+=	--enable-xinerama
.endif

PKG_OPTIONS_VAR=	PKG_OPTIONS.golem
PKG_SUPPORTED_OPTIONS=	esound
PKG_OPTIONS_LEGACY_VARS+=	GOLEM_WITH_SOUND:esound

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mesound)
CONFIGURE_ARGS+=	--enable-sound
PLIST_SUBST=		NOT_SOUND=
.include "../../audio/esound/buildlink3.mk"
.else
PLIST_SUBST=		NOT_SOUND="@comment "
.endif

CFLAGS+=	-DPKG_SYSCONFDIR="\"${PKG_SYSCONFDIR}\""

EGDIR=		${PREFIX}/share/examples/golem
CONF_FILES=	${EGDIR}/golemrc.default ${PKG_SYSCONFDIR}/golemrc

post-patch:
	@${SED} ${FILES_SUBST_SED} ${WRKSRC}/sample.golem/golemrc > \
		${WRKSRC}/golemrc
	${RM} -f ${WRKSRC}/sample.golem/golemrc*

post-install:
	${INSTALL_DATA_DIR} ${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/golemrc ${EGDIR}/golemrc.default

.include "../../graphics/xpm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"