summaryrefslogtreecommitdiff
path: root/graphics/frameworks
diff options
context:
space:
mode:
authorjmcneill <jmcneill@pkgsrc.org>2009-01-10 21:48:51 +0000
committerjmcneill <jmcneill@pkgsrc.org>2009-01-10 21:48:51 +0000
commit3daf2e4f715f6c2309895b6f65f509c3b8e581ac (patch)
tree1bc9a008d47386f9e982a1af12105c5ea993aed6 /graphics/frameworks
parent4216bd6e0ad6572d223e9d6572c182a7b74de09e (diff)
downloadpkgsrc-3daf2e4f715f6c2309895b6f65f509c3b8e581ac.tar.gz
pkgsrc changes;
* install xdg desktop shortcut * install hicolor 48x48 icon * use /dev/video0 as the default device instead of /dev/video
Diffstat (limited to 'graphics/frameworks')
-rw-r--r--graphics/frameworks/Makefile21
-rw-r--r--graphics/frameworks/PLIST4
-rw-r--r--graphics/frameworks/distinfo6
-rw-r--r--graphics/frameworks/files/frameworks.desktop.in10
-rw-r--r--graphics/frameworks/patches/patch-ac24
5 files changed, 62 insertions, 3 deletions
diff --git a/graphics/frameworks/Makefile b/graphics/frameworks/Makefile
index e48dd0ed373..56b3ebbae02 100644
--- a/graphics/frameworks/Makefile
+++ b/graphics/frameworks/Makefile
@@ -1,9 +1,11 @@
-# $NetBSD: Makefile,v 1.1.1.1 2009/01/10 21:08:14 jmcneill Exp $
+# $NetBSD: Makefile,v 1.2 2009/01/10 21:48:51 jmcneill Exp $
#
DISTNAME= frameworks-0.3.7
CATEGORIES= graphics
MASTER_SITES= http://frameworks.polycrystal.org/release/
+SITES.frameworks.png= http://frameworks.polycrystal.org/images/
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} frameworks.png
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://frameworks.polycrystal.org/release/
@@ -11,11 +13,28 @@ COMMENT= Stop-motion animation frame capture software
GNU_CONFIGURE= yes
USE_TOOLS+= pkg-config gmake autoconf
+USE_DIRS+= xdg-1.4
+
+SUBST_CLASSES= xdg
+SUBST_STAGE.xdg= pre-configure
+SUBST_MESSAGE.xdg= Fixing paths in xdg menu entries.
+SUBST_FILES.xdg= frameworks.desktop
+SUBST_SED.xdg= -e 's,@PREFIX@,${PREFIX},g'
+
+post-extract:
+ cp ${FILESDIR}/frameworks.desktop.in ${WRKSRC}/frameworks.desktop
pre-configure:
cd ${WRKSRC} && autoconf
+post-install:
+ ${INSTALL_DATA} ${DISTDIR}/frameworks.png \
+ ${DESTDIR}${PREFIX}/share/icons/hicolor/48x48/apps/frameworks.png
+ ${INSTALL_DATA} ${WRKSRC}/frameworks.desktop \
+ ${DESTDIR}${PREFIX}/share/applications/frameworks.desktop
+
.include "../../devel/libglade/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/libv4l/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/frameworks/PLIST b/graphics/frameworks/PLIST
index c0021064da7..17532b064e1 100644
--- a/graphics/frameworks/PLIST
+++ b/graphics/frameworks/PLIST
@@ -1,3 +1,5 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2009/01/10 21:08:14 jmcneill Exp $
+@comment $NetBSD: PLIST,v 1.2 2009/01/10 21:48:51 jmcneill Exp $
bin/frameworks
+share/applications/frameworks.desktop
share/frameworks.glade
+share/icons/hicolor/48x48/apps/frameworks.png
diff --git a/graphics/frameworks/distinfo b/graphics/frameworks/distinfo
index 527789ea873..5b5026b8e0b 100644
--- a/graphics/frameworks/distinfo
+++ b/graphics/frameworks/distinfo
@@ -1,7 +1,11 @@
-$NetBSD: distinfo,v 1.1.1.1 2009/01/10 21:08:14 jmcneill Exp $
+$NetBSD: distinfo,v 1.2 2009/01/10 21:48:51 jmcneill Exp $
SHA1 (frameworks-0.3.7.tar.gz) = 0d7629355c47283497246ee5d7aefdca99d1e7b8
RMD160 (frameworks-0.3.7.tar.gz) = b63a877a4e477ed23993beaeda80326bd2c7cf1c
Size (frameworks-0.3.7.tar.gz) = 116266 bytes
+SHA1 (frameworks.png) = 11ec2eef2139d6d6ae4ba7094197196fc321a826
+RMD160 (frameworks.png) = e947d4fa52a59e81e4f42c9b2ed6be287080c705
+Size (frameworks.png) = 2910 bytes
SHA1 (patch-aa) = 639cc8de7ecbda4f22d762af7f22dd6f63f23e32
SHA1 (patch-ab) = f1ef0a5658062347925e367b80f95667c44a9a67
+SHA1 (patch-ac) = b3f0eb997e2252145387a5907dd50426d217ef39
diff --git a/graphics/frameworks/files/frameworks.desktop.in b/graphics/frameworks/files/frameworks.desktop.in
new file mode 100644
index 00000000000..bfd042b3e53
--- /dev/null
+++ b/graphics/frameworks/files/frameworks.desktop.in
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Frameworks
+Comment=Stop-motion frame capture
+Exec=@PREFIX@/bin/frameworks
+Icon=@PREFIX@/share/icons/hicolor/48x48/apps/frameworks.png
+StartupNotify=false
+Terminal=false
+Type=Application
+Categories=Application;AudioVideo;
diff --git a/graphics/frameworks/patches/patch-ac b/graphics/frameworks/patches/patch-ac
new file mode 100644
index 00000000000..0db3c47423d
--- /dev/null
+++ b/graphics/frameworks/patches/patch-ac
@@ -0,0 +1,24 @@
+$NetBSD: patch-ac,v 1.1 2009/01/10 21:48:51 jmcneill Exp $
+
+Use /dev/video0 as the default device.
+
+--- src/frameworks.c.orig 2009-01-10 16:42:18.000000000 -0500
++++ src/frameworks.c 2009-01-10 16:42:50.000000000 -0500
+@@ -44,7 +44,7 @@
+ GString *device_file = NULL;
+
+ /* To command line args: "-r" forces read(), and "device_name" is
+- * the filename of the video device (defaults to /dev/video). */
++ * the filename of the video device (defaults to /dev/video0). */
+ if (argc > 1) {
+ for (i=1; i<argc; i++) {
+ if (strcmp("-r", argv[i]) == 0) {
+@@ -60,7 +60,7 @@
+ }
+ }
+ if (device_file == NULL)
+- device_file = g_string_new("/dev/video");
++ device_file = g_string_new("/dev/video0");
+
+
+ g_thread_init(NULL);