summaryrefslogtreecommitdiff
path: root/x11/imwheel/Makefile
blob: a410cf2267ea40b0c85dac3110ba5a134ec45d8c (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
# Created by: jhb
# $FreeBSD$

PORTNAME=	imwheel
PORTVERSION=	1.0.0.p12
PORTREVISION=	2
CATEGORIES=	x11
MASTER_SITES=	ftp://jcatki.no-ip.org/pub/imwheel/ \
		SF/${PORTNAME}/${PORTNAME}-source/1.0.0pre12

DISTNAME=	${PORTNAME}-${PORTVERSION:S/.p12/pre12/}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Utility to translate mouse wheel actions into X keyboard events

USE_XORG=	x11 xpm xtst xext xmu
USE_GMAKE=	YES
GNU_CONFIGURE=	YES
CONFIGURE_ARGS=	--disable-gpm

MAN1=		imwheel.1

NO_STAGE=	yes
.include <bsd.port.options.mk>

post-patch:
.for i in imwheel.1 util.c
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/${i}
.endfor

post-install:
.if ${PORT_OPTIONS:MDOCS}
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/EMACS ${DOCSDIR}
.endif

.include <bsd.port.mk>