aboutsummaryrefslogtreecommitdiff
path: root/x11/xnee/Makefile
blob: 1d252d1bb96a5433129a44f610003906b6165b49 (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
46
47
48
49
50
51
52
53
54
55
# New ports collection makefile for:	xnee
# Date created:				27 May 2002
# Whom:					Alexey Dokuchaev <danfe@regency.nsu.ru>
#
# $FreeBSD$
#

PORTNAME=	xnee
PORTVERSION=	2.05
CATEGORIES=	x11
MASTER_SITES=	${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR=	${PORTNAME}
DISTNAME=	Xnee-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	X events recorder and player

BUILD_DEPENDS=	${LOCALBASE}/bin/makeinfo:${PORTSDIR}/print/texinfo

USE_X_PREFIX=	yes
WANT_GNOME=	yes
USE_GNOME=	gnomehack gnometarget
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--mandir=${PREFIX}/man --enable-cli --disable-doc

MAN1=		cnee.1
INFO=		xnee
PLIST_FILES=	bin/cnee \
		share/Xnee/example1.xns \
		share/Xnee/simple_bash.sh \
		share/Xnee/xnee.sh
PLIST_DIRS=	share/Xnee

.include <bsd.port.pre.mk>

.if ${HAVE_GNOME:Mgtk20}!=""
USE_GNOME+=	gtk20
PLIST_FILES+=	bin/gnee
PKGNAMESUFFIX=	-gtk
.else
CONFIGURE_ARGS+=	--disable-gui
.endif

post-patch:
	@${REINPLACE_CMD} -e \
		's|make man|$$(MAKE) man|g' ${WRKSRC}/cnee/Makefile.in

post-build:
	cd ${WRKSRC}/doc && ${LOCALBASE}/bin/makeinfo --no-split xnee.texi

post-install:
	${INSTALL_DATA} ${WRKSRC}/doc/xnee.info ${PREFIX}/${INFO_PATH}

.include <bsd.port.post.mk>