pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/frameworks pkgsrc changes;



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c1d516e8e48d
branches:  trunk
changeset: 552847:c1d516e8e48d
user:      jmcneill <jmcneill%pkgsrc.org@localhost>
date:      Sat Jan 10 21:48:51 2009 +0000

description:
pkgsrc changes;

 * install xdg desktop shortcut
 * install hicolor 48x48 icon
 * use /dev/video0 as the default device instead of /dev/video

diffstat:

 graphics/frameworks/Makefile                    |  21 ++++++++++++++++++++-
 graphics/frameworks/PLIST                       |   4 +++-
 graphics/frameworks/distinfo                    |   6 +++++-
 graphics/frameworks/files/frameworks.desktop.in |  10 ++++++++++
 graphics/frameworks/patches/patch-ac            |  24 ++++++++++++++++++++++++
 5 files changed, 62 insertions(+), 3 deletions(-)

diffs (113 lines):

diff -r dfe93134d5f6 -r c1d516e8e48d graphics/frameworks/Makefile
--- a/graphics/frameworks/Makefile      Sat Jan 10 21:10:48 2009 +0000
+++ b/graphics/frameworks/Makefile      Sat Jan 10 21:48:51 2009 +0000
@@ -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@localhost
 HOMEPAGE=      http://frameworks.polycrystal.org/release/
@@ -11,11 +13,28 @@
 
 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 -r dfe93134d5f6 -r c1d516e8e48d graphics/frameworks/PLIST
--- a/graphics/frameworks/PLIST Sat Jan 10 21:10:48 2009 +0000
+++ b/graphics/frameworks/PLIST Sat Jan 10 21:48:51 2009 +0000
@@ -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 -r dfe93134d5f6 -r c1d516e8e48d graphics/frameworks/distinfo
--- a/graphics/frameworks/distinfo      Sat Jan 10 21:10:48 2009 +0000
+++ b/graphics/frameworks/distinfo      Sat Jan 10 21:48:51 2009 +0000
@@ -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 -r dfe93134d5f6 -r c1d516e8e48d graphics/frameworks/files/frameworks.desktop.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/frameworks/files/frameworks.desktop.in   Sat Jan 10 21:48:51 2009 +0000
@@ -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 -r dfe93134d5f6 -r c1d516e8e48d graphics/frameworks/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/frameworks/patches/patch-ac      Sat Jan 10 21:48:51 2009 +0000
@@ -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);



Home | Main Index | Thread Index | Old Index