Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
Frameworks is stop-motion animation frame capture software primarily for
Linux. Frameworks captures images from a camera and strings them together into
an animation. These still images may then be combined into a single video file
using other software. Only video4linux webcams are currently supported; work
is being done to add other types of digital cameras including IEEE 1394
camcorders, and USB still cameras. Frameworks is designed to be easily used
alongside the GIMP Animation Package (GAP).
Frameworks provides an interface to camera brightness and other controls. It
captures images as frame_0001.png, frame_0002.png, and so on. Frameworks
provides animation assistance in the form of onion skinning: displaying ghost
images of previous frames, and continuous preview: continuous playback of the
most recent few seconds followed by the live view from the camera. No editing
features are provided.
+44
View File
@@ -0,0 +1,44 @@
# $NetBSD: Makefile,v 1.25 2013/06/06 12:54:29 wiz Exp $
#
DISTNAME= frameworks-0.3.7
PKGREVISION= 19
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/
COMMENT= Stop-motion animation frame capture software
GNU_CONFIGURE= yes
USE_TOOLS+= pkg-config gmake autoconf
LDFLAGS+= -lm # Explicit for binutils 2.22 linker
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'
INSTALLATION_DIRS= share/applications share/icons/hicolor/48x48/apps
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 "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"
+5
View File
@@ -0,0 +1,5 @@
@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
+11
View File
@@ -0,0 +1,11 @@
$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
@@ -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;
+16
View File
@@ -0,0 +1,16 @@
$NetBSD: patch-aa,v 1.1.1.1 2009/01/10 21:08:14 jmcneill Exp $
NetBSD doesn't provide v4l1 compatibility, so use libv4l1 until
frameworks is ported to v4l2.
--- configure.in.orig 2007-02-27 22:18:10.000000000 -0500
+++ configure.in
@@ -12,7 +12,7 @@ AC_PROG_CC
AC_PROG_INSTALL
# Checks for libraries
-pkg_modules="gtk+-2.0 gthread-2.0 libglade-2.0"
+pkg_modules="gtk+-2.0 gthread-2.0 libglade-2.0 libv4l1"
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_LIBS)
+110
View File
@@ -0,0 +1,110 @@
$NetBSD: patch-ab,v 1.1.1.1 2009/01/10 21:08:14 jmcneill Exp $
NetBSD doesn't provide v4l1 compatibility, so use libv4l1 until
frameworks is ported to v4l2.
--- src/camera.c.orig 2007-02-27 22:18:50.000000000 -0500
+++ src/camera.c
@@ -1,5 +1,6 @@
#include <math.h>
#include "common.h"
+#include <libv4l1.h>
/* internal function prototypes */
gpointer read_thread(gpointer data);
@@ -158,7 +159,7 @@ gint open_cam(struct Camera *camera, GSt
{
if (camera->device <= 0) {
camera->device_name = device_name;
- camera->device = open(device_name->str, O_RDWR);
+ camera->device = v4l1_open(device_name->str, O_RDWR);
if (camera->device < 0) {
/* frameworks_error(device_string) */
camera->open = FALSE;
@@ -182,7 +183,7 @@ gint close_cam(struct Camera *camera)
{
if (camera->open == TRUE) {
mmap_teardown(camera);
- close(camera->device);
+ v4l1_close(camera->device);
g_string_free(camera->device_name, TRUE);
camera->device_name = NULL;
camera->device = 0;
@@ -201,12 +202,12 @@ void mmap_setup(struct Camera *camera)
mmap_teardown(camera);
if (camera->vid_caps.type & VID_TYPE_CAPTURE) {
/* mmap method is available */
- ret = ioctl(camera->device, VIDIOCGMBUF, &camera->vmbuf);
+ ret = v4l1_ioctl(camera->device, VIDIOCGMBUF, &camera->vmbuf);
if (ret < 0) {
perror("ioctl(VIDIOCGMBUF)");
camera->mmap = NULL;
} else {
- camera->mmap = mmap(0,
+ camera->mmap = v4l1_mmap(0,
camera->vmbuf.size,
PROT_READ | PROT_WRITE,
MAP_SHARED, camera->device,
@@ -224,7 +225,7 @@ void mmap_setup(struct Camera *camera)
void mmap_teardown(struct Camera *camera)
{
if (camera->mmap != NULL) {
- munmap(camera->mmap, camera->vmbuf.size);
+ v4l1_munmap(camera->mmap, camera->vmbuf.size);
camera->mmap = NULL;
}
}
@@ -259,12 +260,12 @@ void frameworks_camera_update_status(str
void set_status(struct Camera *camera)
{
- if (ioctl(camera->device, VIDIOCSPICT, &camera->vid_pic) == -1) {
+ if (v4l1_ioctl(camera->device, VIDIOCSPICT, &camera->vid_pic) == -1) {
/* error */
perror("ioctl(VIDIOCSPICT)");
/* printf("error setting video_picture\n"); */
}
- if (ioctl(camera->device, VIDIOCSWIN, &camera->vid_win) == -1) {
+ if (v4l1_ioctl(camera->device, VIDIOCSWIN, &camera->vid_win) == -1) {
perror("ioctl(VIDIOCSWIN)");
/* printf("error setting video_window\n"); */
}
@@ -272,9 +273,9 @@ void set_status(struct Camera *camera)
void get_status(struct Camera *camera)
{
- ioctl(camera->device, VIDIOCGCAP, &camera->vid_caps);
- ioctl(camera->device, VIDIOCGWIN, &camera->vid_win);
- ioctl(camera->device, VIDIOCGPICT, &camera->vid_pic);
+ v4l1_ioctl(camera->device, VIDIOCGCAP, &camera->vid_caps);
+ v4l1_ioctl(camera->device, VIDIOCGWIN, &camera->vid_win);
+ v4l1_ioctl(camera->device, VIDIOCGPICT, &camera->vid_pic);
/* apparently MONOCHORME means grey scale? this was in gqcam...*/
if (camera->vid_caps.type & VID_TYPE_MONOCHROME) {
@@ -329,14 +330,14 @@ int read_into(struct Camera *camera, str
vmmap.width = buf->width;
vmmap.height = buf->height;
vmmap.format = camera->vid_pic.palette;
- if(ioctl(camera->device, VIDIOCMCAPTURE, &vmmap) < 0) {
+ if(v4l1_ioctl(camera->device, VIDIOCMCAPTURE, &vmmap) < 0) {
perror("ioctl(VIDIOCMCAPTURE)");
mmap_teardown(camera); /* switch to read() */
return -1;
}
n = 0;
for (i=0; i<3; i++) {
- if (ioctl(camera->device, VIDIOCSYNC, &n) == -1) /* failure */
+ if (v4l1_ioctl(camera->device, VIDIOCSYNC, &n) == -1) /* failure */
{
if (errno == EINTR) {
; /* try again on EINTR */
@@ -355,7 +356,7 @@ int read_into(struct Camera *camera, str
}
} else { /* use read method */
for (i=0; i<3; i++) { /* give it 3 tries to get some data */
- bytes_read = read(camera->device, buf->data, bytes_requested);
+ bytes_read = v4l1_read(camera->device, buf->data, bytes_requested);
if (bytes_read > 0) {
/* more than zero isn't really success (should be "if
+24
View File
@@ -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);