blob: f1a00360a3d8336dd5d9101bd717721490d62642 (
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
91
92
93
94
|
# Created by: Alexey Dokuchaev <danfe@regency.nsu.ru>
# $FreeBSD$
PORTNAME= xnee
PORTVERSION= 3.15
PORTREVISION= 1
CATEGORIES= x11
MASTER_SITES= GNU
MAINTAINER= pawel@FreeBSD.org
COMMENT= X events recorder and player
LIB_DEPENDS= pthread-stubs:${PORTSDIR}/devel/libpthread-stubs \
xcb:${PORTSDIR}/x11/libxcb
LICENSE= GPLv3
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_XORG= x11 xau xdmcp xext xi xtst
USE_GNOME= gnomehack
MAKE_JOBS_SAFE= yes
CONFIGURE_ARGS= --enable-cli --disable-doc --disable-xinput2
MAN1= cnee.1 xnee.1
INFO= xnee
OPTIONS_DEFINE= GNEE PNEE
GNEE_DESC= GUI frontend
PNEE_DESC= GNOME panel frontend
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGNEE}
LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre \
cairo:${PORTSDIR}/graphics/cairo \
png15:${PORTSDIR}/graphics/png \
freetype:${PORTSDIR}/print/freetype2 \
expat:${PORTSDIR}/textproc/expat2 \
fontconfig:${PORTSDIR}/x11-fonts/fontconfig
CONFIGURE_ARGS+=--enable-gui
USES+= gettext iconv
USE_XORG+= pixman xcomposite xcursor xdamage xfixes xinerama xrandr xrender
USE_GNOME+= gdkpixbuf2 gtk20 libgnomeui
MAN1+= gnee.1
PLIST_SUB+= GNEE=""
DESKTOP_ENTRIES= "Gnee" "${COMMENT}" "${PORTNAME}.png" \
"gnee" "Development;" true
.else
CONFIGURE_ARGS+=--disable-gui
PLIST_SUB+= GNEE="@comment "
.endif
.if ${PORT_OPTIONS:MPNEE}
BROKEN= Does not build, needs newer gnomepanel
CONFIGURE_ARGS+=-enable-gnome-applet
USE_GNOME+= gnomepanel
MAN1+= pnee.1
PLIST_SUB+= PNEE=""
.else
CONFIGURE_ARGS+= --disable-gnome-applet
CONFIGURE_ENV+= libgnomeui_CFLAGS="${TRUE}" \
libgnomeui_LIBS="${TRUE}"
PLIST_SUB+= PNEE="@comment "
.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 ; \
s|@DOC_DIR@||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|$$(libgnomeui_CFLAGS)||g ; \
s|$$(libgnomeui_LIBS)||g' ${WRKSRC}/gnee/src/Makefile.in
@${REINPLACE_CMD} -e \
's|src test|src|g' ${WRKSRC}/libxnee/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-install:
${INSTALL_DATA} ${WRKSRC}/doc/xnee.info ${PREFIX}/${INFO_PATH}
.include <bsd.port.mk>
|