blob: 076ff3128a4c5f169fddec065076253e933e0911 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# New ports collection makefile for: xnee
# Date created: 27 May 2002
# Whom: Alexey Dokuchaev <danfe@regency.nsu.ru>
#
# $FreeBSD$
#
PORTNAME= xnee
PORTVERSION= 2.06
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= Xnee-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= X events recorder and player
OPTIONS= GNEE "Build the GUI frontend" off \
PNEE "Build the Gnome Panel frontend" off
USE_XLIB= yes
USE_GNOME= gnomehack gnometarget
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-cli --disable-doc
MAN1= cnee.1
INFO= cnee xnee
PLIST_FILES= bin/cnee \
%%DATADIR%%/example1.xns \
%%DATADIR%%/pixmaps/xnee.png \
%%DATADIR%%/pixmaps/xnee.xpm \
%%DATADIR%%/simple_bash.sh \
%%DATADIR%%/xnee.sh
PLIST_DIRS= %%DATADIR%%/pixmaps %%DATADIR%%
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 600000
BUILD_DEPENDS+= ${LOCALBASE}/bin/makeinfo:${PORTSDIR}/print/texinfo
MAKEINFO= ${LOCALBASE}/bin/makeinfo
.else
MAKEINFO= /usr/bin/makeinfo
.endif
.if defined(WITH_GNEE)
USE_GNOME+= gtk20
PLIST_FILES+= bin/gnee
.else
CONFIGURE_ARGS+= --disable-gui
.endif
.if defined(WITH_PNEE)
USE_GNOME+= gnomepanel
MAN1+= pnee.1
PLIST_FILES+= libdata/bonobo/servers/pnee.server \
libexec/pnee \
%%DATADIR%%/pixmaps/pnee-record.png \
%%DATADIR%%/pixmaps/pnee-replay.png \
%%DATADIR%%/pixmaps/pnee-stop-mini.png \
%%DATADIR%%/pixmaps/pnee-stop.png
.else
CONFIGURE_ARGS+= --disable-gnome-applet
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|$${libdir}/gnome-panel|$${prefix}/libexec|g ; \
s|$${libdir}/bonobo/|$${prefix}/libdata/bonobo/|g ; \
s|CCC||g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
's|@PIXMAP_DIR@|pixmap|g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e \
's|make man|$$(MAKE) man|g' ${WRKSRC}/cnee/Makefile.in
@${REINPLACE_CMD} -e \
's|: install-docDATA|:|g' ${WRKSRC}/cnee/src/Makefile.in
@${REINPLACE_CMD} -e \
's|cp pnee|$$(INSTALL_DATA) pnee|g' ${WRKSRC}/pnee/Makefile.in
@${REINPLACE_CMD} -e \
's|cp $$(PNEE)|$$(INSTALL_PROGRAM) $$(PNEE)|g' ${WRKSRC}/pnee/src/Makefile.in
post-build:
cd ${WRKSRC}/cnee/src && ${MAKEINFO} --no-split cnee.texi
cd ${WRKSRC}/doc && ${MAKEINFO} --no-split xnee.texi
post-install:
${INSTALL_DATA} ${WRKSRC}/cnee/src/cnee.info ${PREFIX}/${INFO_PATH}
${INSTALL_DATA} ${WRKSRC}/doc/xnee.info ${PREFIX}/${INFO_PATH}
.include <bsd.port.post.mk>
|