aboutsummaryrefslogtreecommitdiff
path: root/x11/xidle/Makefile
blob: 2229b5483fd72cd1227397aaed53050231dcd8bf (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
# New ports collection makefile for:	xidle
# Date created:				2005-10-24
# Whom:					Roman Bogorodskiy <novel@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	xidle
PORTVERSION=	24102005
PORTREVISION=	2
CATEGORIES=	x11
MASTER_SITES=	${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	novel

MAINTAINER=	novel@FreeBSD.org
COMMENT=	Run a program on X inactivity

USE_BZIP2=	yes
CFLAGS+=	-I${LOCALBASE}/include -D__dead=static
MAKE_ARGS+=	X11LIBDIR="${LOCALBASE}/lib" \
		CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"

USE_XORG=	x11 xscrnsaver
PLIST_FILES=	bin/xidle
MAN1=		xidle.1

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 502104
post-extract:
	@${REINPLACE_CMD} -e 's|getopt_long_only|getopt_long|' ${WRKSRC}/xidle.c
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/xidle ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/xidle.1 ${PREFIX}/man/man1

.include <bsd.port.post.mk>