ports/114829: New port:graphics/gsnapshot A gtk+ based screen capture
Yinghong.Liu
relaxbsd at gmail.com
Mon Jul 23 14:00:15 UTC 2007
>Number: 114829
>Category: ports
>Synopsis: New port:graphics/gsnapshot A gtk+ based screen capture
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Jul 23 14:00:12 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Yinghong.Liu
>Release: FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD relaxbsd.org 6.2-STABLE FreeBSD 6.2-STABLE #0: Thu May 10 21:42:19 CST 2007 hamigua at relaxbsd.org:/usr/src/sys/i386/compile/LYH i386
>Description:
gsnapshot is a GTK2 application. It provides for capturing a screen snapshot of
the entire screen, a window or a region, with a simple user The package also
provides the gdisplay program, a simple image viewer with built-in directory
file browser.
WWW: http://www.softcraft.org/gsnapshot/
>How-To-Repeat:
>Fix:
--- gsnapshot.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# gsnapshot/
# gsnapshot/Makefile
# gsnapshot/distinfo
# gsnapshot/files
# gsnapshot/pkg-descr
# gsnapshot/pkg-plist
# gsnapshot/files/patch-src_filechooser.c
# gsnapshot/files/patch-src_gdisplay.c
#
echo c - gsnapshot/
mkdir -p gsnapshot/ > /dev/null 2>&1
echo x - gsnapshot/Makefile
sed 's/^X//' >gsnapshot/Makefile << 'END-of-gsnapshot/Makefile'
X# New ports collection makefile for: gsnapshot
X# Date created: 23 July 2007
X# Whom: Yinghong.Liu <relaxbsd at gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME= gsnapshot
XPORTVERSION= 1.0
XCATEGORIES= graphics
XMASTER_SITES= SF
X
XMAINTAINER= relaxbsd at gmail.com
XCOMMENT= A gtk+ based screen capture
X
XUSE_AUTOTOOLS= automake:15:env libtool:15
XUSE_GNOME= gtk20
XGNU_CONFIGURE= yes
X
XWRKSRC= ${WRKDIR}/${PORTNAME}
X
XPORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
X
XDESKTOP_ENTRIES= "gsnapshot" \
X "A gtk+ based screen capture" \
X "" \
X "gsnapshot" \
X "Application;Graphics;" \
X "false"
X
Xpre-configure:
X @${LN} -sf ${AUTOMAKE_DIR}/install-sh ${WRKSRC}
X @${LN} -sf ${AUTOMAKE_DIR}/depcomp ${WRKSRC}
X @${LN} -sf ${AUTOMAKE_DIR}/missing ${WRKSRC}
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X @${MKDIR} ${DOCSDIR}
X.for doc in ${PORTDOCS}
X @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-gsnapshot/Makefile
echo x - gsnapshot/distinfo
sed 's/^X//' >gsnapshot/distinfo << 'END-of-gsnapshot/distinfo'
XMD5 (gsnapshot-1.0.tar.gz) = ef609075546f38e7a14f6ca59f8187df
XSHA256 (gsnapshot-1.0.tar.gz) = 69dd5826ab94e65e04c5177789c8cd899ed6245e8aebf446fe250a1f32d55192
XSIZE (gsnapshot-1.0.tar.gz) = 182662
END-of-gsnapshot/distinfo
echo c - gsnapshot/files
mkdir -p gsnapshot/files > /dev/null 2>&1
echo x - gsnapshot/pkg-descr
sed 's/^X//' >gsnapshot/pkg-descr << 'END-of-gsnapshot/pkg-descr'
Xgsnapshot is a GTK2 application. It provides for capturing a screen snapshot of
Xthe entire screen, a window or a region, with a simple user The package also
Xprovides the gdisplay program, a simple image viewer with built-in directory
Xfile browser.
X
XWWW: http://www.softcraft.org/gsnapshot/
END-of-gsnapshot/pkg-descr
echo x - gsnapshot/pkg-plist
sed 's/^X//' >gsnapshot/pkg-plist << 'END-of-gsnapshot/pkg-plist'
Xbin/gdisplay
Xbin/gsnapshot
Xinclude/dialog.h
Xinclude/filechooser.h
Xinclude/grabber.h
Xinclude/iconbox.h
Xinclude/language.h
Xinclude/print.h
Xinclude/window.h
Xinclude/xpmglyphs.h
Xlib/libsnapshot.a
END-of-gsnapshot/pkg-plist
echo x - gsnapshot/files/patch-src_filechooser.c
sed 's/^X//' >gsnapshot/files/patch-src_filechooser.c << 'END-of-gsnapshot/files/patch-src_filechooser.c'
X--- src/filechooser.c.orig Mon Jul 16 06:05:22 2007
X+++ src/filechooser.c Mon Jul 23 21:26:21 2007
X@@ -19,9 +19,14 @@
X */
X
X #include "filechooser.h"
X+#include <sys/param.h>
X
X #ifndef get_current_dir_name
X-extern char *get_current_dir_name(void);
X+extern char *get_current_dir_name_2() {
X+ char *buf = malloc(MAXPATHLEN);
X+ getwd(buf);
X+ return buf;
X+}
X #endif
X
X /*
X@@ -325,7 +330,7 @@
X gchar *path;
X
X if (dirname == FILECHOOSER_CWD)
X- path = (gchar *)get_current_dir_name ();
X+ path = (gchar *)get_current_dir_name_2 ();
X else
X path = (gchar *)dirname;
X
END-of-gsnapshot/files/patch-src_filechooser.c
echo x - gsnapshot/files/patch-src_gdisplay.c
sed 's/^X//' >gsnapshot/files/patch-src_gdisplay.c << 'END-of-gsnapshot/files/patch-src_gdisplay.c'
X--- src/gdisplay.c.orig Mon Jul 16 06:05:23 2007
X+++ src/gdisplay.c Mon Jul 23 20:28:31 2007
X@@ -19,9 +19,14 @@
X
X #include "gdisplay.h"
X #include "language.h"
X+#include <sys/param.h>
X
X #ifndef get_current_dir_name
X-extern char *get_current_dir_name(void);
X+extern char *get_current_dir_name() {
X+ char *buf = malloc(MAXPATHLEN);
X+ getwd(buf);
X+ return buf;
X+}
X #endif
X
X static gdisplay_t global; /* (protected) encapsulated program data */
END-of-gsnapshot/files/patch-src_gdisplay.c
exit
--- gsnapshot.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list