aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-06-04 14:40:15 +0800
committermiwi <miwi@FreeBSD.org>2007-06-04 14:40:15 +0800
commit18bb52f4ce8a6f5385a9c11baf920f42f3764228 (patch)
treef2e0c958505a4405e64cdab13c8414306f5d1d03 /x11
parentabcbef867039684f28b51d4b8f0f3aea51d87c59 (diff)
downloadfreebsd-ports-gnome-18bb52f4ce8a6f5385a9c11baf920f42f3764228.tar.gz
freebsd-ports-gnome-18bb52f4ce8a6f5385a9c11baf920f42f3764228.tar.zst
freebsd-ports-gnome-18bb52f4ce8a6f5385a9c11baf920f42f3764228.zip
- Update to 2.06
PR: 113010 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'x11')
-rw-r--r--x11/xnee/Makefile55
-rw-r--r--x11/xnee/distinfo6
-rw-r--r--x11/xnee/files/patch-cnee__src__cnee_printer.c16
3 files changed, 60 insertions, 17 deletions
diff --git a/x11/xnee/Makefile b/x11/xnee/Makefile
index bb939ee834e0..e26130a48ddb 100644
--- a/x11/xnee/Makefile
+++ b/x11/xnee/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= xnee
-PORTVERSION= 2.05
-PORTREVISION= 1
+PORTVERSION= 2.06
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -16,41 +15,69 @@ DISTNAME= Xnee-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= X events recorder and player
-BUILD_DEPENDS= ${LOCALBASE}/bin/makeinfo:${PORTSDIR}/print/texinfo
+OPTIONS= GNEE "Build the GUI frontend" off \
+ PNEE "Build the Gnome Panel frontend" off
-USE_X_PREFIX= yes
-WANT_GNOME= yes
+USE_XLIB= yes
USE_GNOME= gnomehack gnometarget
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --mandir=${PREFIX}/man --enable-cli --disable-doc
+CONFIGURE_ARGS= --mandir=${MANPREFIX}/man --enable-cli --disable-doc
MAN1= cnee.1
-INFO= xnee
+INFO= cnee xnee
PLIST_FILES= bin/cnee \
- share/Xnee/example1.xns \
- share/Xnee/simple_bash.sh \
- share/Xnee/xnee.sh
-PLIST_DIRS= share/Xnee
+ %%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 ${HAVE_GNOME:Mgtk20}!=""
+.if defined(WITH_GNEE)
USE_GNOME+= gtk20
PLIST_FILES+= bin/gnee
-PKGNAMESUFFIX= -gtk
.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}/doc && ${LOCALBASE}/bin/makeinfo --no-split xnee.texi
+ cd ${WRKSRC}/cnee/src && /usr/bin/makeinfo --no-split cnee.texi
+ cd ${WRKSRC}/doc && /usr/bin/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>
diff --git a/x11/xnee/distinfo b/x11/xnee/distinfo
index 34365a099a5b..e26ef904d764 100644
--- a/x11/xnee/distinfo
+++ b/x11/xnee/distinfo
@@ -1,3 +1,3 @@
-MD5 (Xnee-2.05.tar.gz) = cffd6240d1b362ba2b805d115f362020
-SHA256 (Xnee-2.05.tar.gz) = 4e4a0a49bd5c5f0d89339ce360bfeb062b4302b61671c755993b4f80bbdd241f
-SIZE (Xnee-2.05.tar.gz) = 598222
+MD5 (Xnee-2.06.tar.gz) = 1b605eba1b014a5b686df72820deedcb
+SHA256 (Xnee-2.06.tar.gz) = b431dce34f53990f3841203c1c03c394b899e4b324ea753f03a764b7750d84c4
+SIZE (Xnee-2.06.tar.gz) = 592914
diff --git a/x11/xnee/files/patch-cnee__src__cnee_printer.c b/x11/xnee/files/patch-cnee__src__cnee_printer.c
new file mode 100644
index 000000000000..8c62f170c50b
--- /dev/null
+++ b/x11/xnee/files/patch-cnee__src__cnee_printer.c
@@ -0,0 +1,16 @@
+--- cnee/src/cnee_printer.c.orig Thu Nov 9 06:20:31 2006
++++ cnee/src/cnee_printer.c Mon May 28 13:25:56 2007
+@@ -388,6 +388,13 @@
+
+
+
++ fprintf (fd ,"@dircategory Miscellaneous\n");
++ fprintf (fd ,"@direntry\n");
++ fprintf (fd ,"* Cnee: (cnee). Record, replays or distributes X11 data.\n");
++ fprintf (fd ,"@end direntry\n");
++
++
++
+ fprintf (fd, "@ifinfo\n");
+ fprintf (fd, "@node Top, Options,, (dir)\n");
+ fprintf (fd, "@top \n");