2002-05-31 20:44:23 +00:00
|
|
|
# New ports collection makefile for: xnee
|
|
|
|
# Date created: 27 May 2002
|
|
|
|
# Whom: Alexey Dokuchaev <danfe@regency.nsu.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xnee
|
2007-06-04 06:40:15 +00:00
|
|
|
PORTVERSION= 2.06
|
2002-05-31 20:44:23 +00:00
|
|
|
CATEGORIES= x11
|
2005-07-26 08:21:13 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
2002-07-06 00:57:17 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2005-07-26 08:21:13 +00:00
|
|
|
DISTNAME= Xnee-${PORTVERSION}
|
2002-05-31 20:44:23 +00:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:21:36 +00:00
|
|
|
COMMENT= X events recorder and player
|
2002-05-31 20:44:23 +00:00
|
|
|
|
2007-06-04 06:40:15 +00:00
|
|
|
OPTIONS= GNEE "Build the GUI frontend" off \
|
|
|
|
PNEE "Build the Gnome Panel frontend" off
|
2006-06-17 10:19:31 +00:00
|
|
|
|
2007-06-04 06:40:15 +00:00
|
|
|
USE_XLIB= yes
|
2005-07-26 08:21:13 +00:00
|
|
|
USE_GNOME= gnomehack gnometarget
|
2006-06-17 10:19:31 +00:00
|
|
|
USE_GMAKE= yes
|
2002-07-06 00:57:17 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2007-07-23 09:36:51 +00:00
|
|
|
CONFIGURE_ARGS= --enable-cli --disable-doc
|
2002-10-27 23:37:34 +00:00
|
|
|
|
2006-06-17 10:19:31 +00:00
|
|
|
MAN1= cnee.1
|
2007-06-04 06:40:15 +00:00
|
|
|
INFO= cnee xnee
|
2006-01-07 15:35:52 +00:00
|
|
|
PLIST_FILES= bin/cnee \
|
2007-06-04 06:40:15 +00:00
|
|
|
%%DATADIR%%/example1.xns \
|
|
|
|
%%DATADIR%%/pixmaps/xnee.png \
|
|
|
|
%%DATADIR%%/pixmaps/xnee.xpm \
|
|
|
|
%%DATADIR%%/simple_bash.sh \
|
|
|
|
%%DATADIR%%/xnee.sh
|
|
|
|
PLIST_DIRS= %%DATADIR%%/pixmaps %%DATADIR%%
|
2005-07-26 08:21:13 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-07-28 23:58:25 +00:00
|
|
|
.if ${OSVERSION} < 600000
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/bin/makeinfo:${PORTSDIR}/print/texinfo
|
|
|
|
MAKEINFO= ${LOCALBASE}/bin/makeinfo
|
|
|
|
.else
|
|
|
|
MAKEINFO= /usr/bin/makeinfo
|
|
|
|
.endif
|
|
|
|
|
2007-06-04 06:40:15 +00:00
|
|
|
.if defined(WITH_GNEE)
|
2005-07-26 08:21:13 +00:00
|
|
|
USE_GNOME+= gtk20
|
|
|
|
PLIST_FILES+= bin/gnee
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-gui
|
|
|
|
.endif
|
2002-05-31 20:44:23 +00:00
|
|
|
|
2007-06-04 06:40:15 +00:00
|
|
|
.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
|
|
|
|
|
2006-01-07 15:35:52 +00:00
|
|
|
post-patch:
|
2007-06-04 06:40:15 +00:00
|
|
|
@${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
|
2006-06-17 10:19:31 +00:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|make man|$$(MAKE) man|g' ${WRKSRC}/cnee/Makefile.in
|
2007-06-04 06:40:15 +00:00
|
|
|
@${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
|
2006-06-17 10:19:31 +00:00
|
|
|
|
|
|
|
post-build:
|
2007-07-28 23:58:25 +00:00
|
|
|
cd ${WRKSRC}/cnee/src && ${MAKEINFO} --no-split cnee.texi
|
|
|
|
cd ${WRKSRC}/doc && ${MAKEINFO} --no-split xnee.texi
|
2006-01-07 15:35:52 +00:00
|
|
|
|
2005-12-26 19:30:18 +00:00
|
|
|
post-install:
|
2007-06-04 06:40:15 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/cnee/src/cnee.info ${PREFIX}/${INFO_PATH}
|
2005-07-26 08:21:13 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/xnee.info ${PREFIX}/${INFO_PATH}
|
2003-01-16 23:42:58 +00:00
|
|
|
|
2005-07-26 08:21:13 +00:00
|
|
|
.include <bsd.port.post.mk>
|