aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/ratpoison/Makefile
blob: f8c5f9e39fe2c69d0c4f63a0977b0501baf11138 (plain) (blame)
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
# Created by: Gergely Nagy <8@free.bsd.hu>
# $FreeBSD$

PORTNAME=   ratpoison
PORTVERSION=    1.4.5
PORTREVISION=   1
CATEGORIES= x11-wm
MASTER_SITES=   ${MASTER_SITE_SAVANNAH} \
        http://mirror.4bit.ws/
MASTER_SITE_SUBDIR= ratpoison

MAINTAINER= dhn@FreeBSD.org
COMMENT=    Simple window manager with no fat library dependencies

USE_XORG=   xext xinerama xtst
GNU_CONFIGURE=  yes

OPTIONS_DEFINE= GDM_SUPPORT DOCS
GDM_SUPPORT_DESC=   Install session data files for GDM

SUB_FILES=  ratpoison.desktop

.include <bsd.port.options.mk>

post-patch:
    ${REINPLACE_CMD} -e 's|bash|sh|g' ${WRKSRC}/contrib/allwindows.sh

.if ${PORT_OPTIONS:MGDM_SUPPORT}
PLIST_SUB+= WITH_GDM=""

post-install:
    ${MKDIR} ${PREFIX}/etc/dm/Sessions
    ${INSTALL_DATA} ${WRKDIR}/ratpoison.desktop ${PREFIX}/etc/dm/Sessions/
.else
PLIST_SUB+= WITH_GDM="@comment "
.endif

.if ${PORT_OPTIONS:MDOCS}
MAN1=       ratpoison.1
INFO=       ratpoison
.else
INSTALL_TARGET= SUBDIRS=src install-exec
.endif

.include <bsd.port.mk>