aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2007-07-28 21:30:46 +0000
committerPav Lucistnik <pav@FreeBSD.org>2007-07-28 21:30:46 +0000
commit1658e3800308afd094f6cb34a9173df16368414b (patch)
tree784518912969f686876fa1311c1852194e160d5d /graphics
parent5af82a717547ad5047d53e174f819650366be35e (diff)
downloadports-1658e3800308afd094f6cb34a9173df16368414b.tar.gz
ports-1658e3800308afd094f6cb34a9173df16368414b.zip
Notes
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/gsnapshot/Makefile44
-rw-r--r--graphics/gsnapshot/distinfo3
-rw-r--r--graphics/gsnapshot/files/patch-src_filechooser.c27
-rw-r--r--graphics/gsnapshot/files/patch-src_gdisplay.c18
-rw-r--r--graphics/gsnapshot/pkg-descr6
-rw-r--r--graphics/gsnapshot/pkg-plist11
7 files changed, 110 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 506637a194b9..b47422a89200 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -232,6 +232,7 @@
SUBDIR += grx
SUBDIR += gscan2pdf
SUBDIR += gsculpt
+ SUBDIR += gsnapshot
SUBDIR += gstreamer-plugins-aalib
SUBDIR += gstreamer-plugins-cairo
SUBDIR += gstreamer-plugins-jpeg
diff --git a/graphics/gsnapshot/Makefile b/graphics/gsnapshot/Makefile
new file mode 100644
index 000000000000..b439033cc341
--- /dev/null
+++ b/graphics/gsnapshot/Makefile
@@ -0,0 +1,44 @@
+# New ports collection makefile for: gsnapshot
+# Date created: 23 July 2007
+# Whom: Yinghong.Liu <relaxbsd@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gsnapshot
+PORTVERSION= 1.0
+CATEGORIES= graphics
+MASTER_SITES= SF
+
+MAINTAINER= relaxbsd@gmail.com
+COMMENT= A gtk+ based screen capture
+
+USE_AUTOTOOLS= automake:15:env libtool:15
+USE_GNOME= gtk20
+GNU_CONFIGURE= yes
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+PORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
+
+DESKTOP_ENTRIES= "gsnapshot" \
+ "A gtk+ based screen capture" \
+ "" \
+ "gsnapshot" \
+ "Application;Graphics;" \
+ "false"
+
+pre-configure:
+ @${LN} -sf ${AUTOMAKE_DIR}/install-sh ${WRKSRC}
+ @${LN} -sf ${AUTOMAKE_DIR}/depcomp ${WRKSRC}
+ @${LN} -sf ${AUTOMAKE_DIR}/missing ${WRKSRC}
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for doc in ${PORTDOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/graphics/gsnapshot/distinfo b/graphics/gsnapshot/distinfo
new file mode 100644
index 000000000000..7e929ee3d531
--- /dev/null
+++ b/graphics/gsnapshot/distinfo
@@ -0,0 +1,3 @@
+MD5 (gsnapshot-1.0.tar.gz) = ef609075546f38e7a14f6ca59f8187df
+SHA256 (gsnapshot-1.0.tar.gz) = 69dd5826ab94e65e04c5177789c8cd899ed6245e8aebf446fe250a1f32d55192
+SIZE (gsnapshot-1.0.tar.gz) = 182662
diff --git a/graphics/gsnapshot/files/patch-src_filechooser.c b/graphics/gsnapshot/files/patch-src_filechooser.c
new file mode 100644
index 000000000000..48164fd74b24
--- /dev/null
+++ b/graphics/gsnapshot/files/patch-src_filechooser.c
@@ -0,0 +1,27 @@
+--- src/filechooser.c.orig Mon Jul 16 06:05:22 2007
++++ src/filechooser.c Mon Jul 23 21:26:21 2007
+@@ -19,9 +19,14 @@
+ */
+
+ #include "filechooser.h"
++#include <sys/param.h>
+
+ #ifndef get_current_dir_name
+-extern char *get_current_dir_name(void);
++extern char *get_current_dir_name_2() {
++ char *buf = malloc(MAXPATHLEN);
++ getwd(buf);
++ return buf;
++}
+ #endif
+
+ /*
+@@ -325,7 +330,7 @@
+ gchar *path;
+
+ if (dirname == FILECHOOSER_CWD)
+- path = (gchar *)get_current_dir_name ();
++ path = (gchar *)get_current_dir_name_2 ();
+ else
+ path = (gchar *)dirname;
+
diff --git a/graphics/gsnapshot/files/patch-src_gdisplay.c b/graphics/gsnapshot/files/patch-src_gdisplay.c
new file mode 100644
index 000000000000..e7393356a3f5
--- /dev/null
+++ b/graphics/gsnapshot/files/patch-src_gdisplay.c
@@ -0,0 +1,18 @@
+--- src/gdisplay.c.orig Mon Jul 16 06:05:23 2007
++++ src/gdisplay.c Mon Jul 23 20:28:31 2007
+@@ -19,9 +19,14 @@
+
+ #include "gdisplay.h"
+ #include "language.h"
++#include <sys/param.h>
+
+ #ifndef get_current_dir_name
+-extern char *get_current_dir_name(void);
++extern char *get_current_dir_name() {
++ char *buf = malloc(MAXPATHLEN);
++ getwd(buf);
++ return buf;
++}
+ #endif
+
+ static gdisplay_t global; /* (protected) encapsulated program data */
diff --git a/graphics/gsnapshot/pkg-descr b/graphics/gsnapshot/pkg-descr
new file mode 100644
index 000000000000..c264c3f8dfe8
--- /dev/null
+++ b/graphics/gsnapshot/pkg-descr
@@ -0,0 +1,6 @@
+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/
diff --git a/graphics/gsnapshot/pkg-plist b/graphics/gsnapshot/pkg-plist
new file mode 100644
index 000000000000..c60fe39ac712
--- /dev/null
+++ b/graphics/gsnapshot/pkg-plist
@@ -0,0 +1,11 @@
+bin/gdisplay
+bin/gsnapshot
+include/dialog.h
+include/filechooser.h
+include/grabber.h
+include/iconbox.h
+include/language.h
+include/print.h
+include/window.h
+include/xpmglyphs.h
+lib/libsnapshot.a