1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Add xvidcap 1.1.3, capture your X display to individual frames

or MPEG video.
This commit is contained in:
Thierry Thomas 2004-04-28 22:12:58 +00:00
parent 8832b5ec51
commit 5eb4f9269a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=107884
7 changed files with 116 additions and 0 deletions

View File

@ -455,6 +455,7 @@
SUBDIR += xsu
SUBDIR += xsysinfo
SUBDIR += xsysstats
SUBDIR += xvidcap
SUBDIR += xwipower
SUBDIR += yawho
SUBDIR += zidrav

53
sysutils/xvidcap/Makefile Normal file
View File

@ -0,0 +1,53 @@
# New ports collection makefile for: xvidcap
# Date created: Sat 24 April 2004
# Whom: thierry@pompo.net
#
# $FreeBSD$
#
PORTNAME= xvidcap
PORTVERSION= 1.1.3
CATEGORIES= sysutils multimedia
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= thierry@FreeBSD.org
COMMENT= Capture your X display to individual frames or MPEG video
LIB_DEPENDS= avcodec.0:${PORTSDIR}/multimedia/ffmpeg
RUN_DEPENDS= animate:${PORTSDIR}/graphics/ImageMagick
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
USE_GETOPT_LONG= yes
USE_REINPLACE= yes
PLIST_FILES= bin/xvidcap
PORTDOCS= AUTHORS ChangeLog INSTALL NEWS README TODO XVidcap.ad
DOC_HOOK= $$(MAKE) $$(AM_MAKEFLAGS) install-data-hook
MAN1= xvidcap.1
.if !defined(WITHOUT_GTK)
USE_GNOME= gtk20
CONFIGURE_ARGS+= --with-gtk2
PLIST_SUB+= GTK=""
PLIST_FILES+= bin/gvidcap
MAN1+= gvidcap.1
.else
PLIST_SUB+= GTK="@comment "
.endif
pre-configure:
@${REINPLACE_CMD} -e 's|@PTHREAD_LIBS@|${PTHREAD_LIBS}|' \
-e 's|@PTHREAD_CFLAGS@|${PTHREAD_CFLAGS}|' \
${WRKSRC}/src/Makefile.in
.if defined(NOPORTDOCS)
@${REINPLACE_CMD} -e 's|${DOC_HOOK}|#${DOC_HOOK}|' \
${WRKSRC}/src/Makefile.in
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
MD5 (xvidcap-1.1.3.tar.gz) = ea896ffd35d6fe6d2abf51b38605f5fd
SIZE (xvidcap-1.1.3.tar.gz) = 1627036

View File

@ -0,0 +1,27 @@
--- src/Makefile.in.orig Sat Feb 14 21:06:20 2004
+++ src/Makefile.in Sun Apr 25 10:12:19 2004
@@ -175,9 +175,9 @@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
-AM_CFLAGS = @X_CFLAGS@ -DVERSION=\"@PACKAGE_VERSION@\" $(am__append_1)
+AM_CFLAGS = @X_CFLAGS@ -DVERSION=\"@PACKAGE_VERSION@\" @PTHREAD_CFLAGS@ $(am__append_1)
-AM_LDFLAGS = @X_LIBS@ -lpthread $(am__append_2) $(am__append_3)
+AM_LDFLAGS = @X_LIBS@ @PTHREAD_LIBS@ $(am__append_2) $(am__append_3)
# specific xvidcap / gvidcap
@@ -1801,9 +1801,9 @@
install-data-hook:
- mkdir -p ${datadir}/doc/${PACKAGE_TARNAME}_${PACKAGE_VERSION}
- ./mkresfile.sh > XVidcap.ad && cp XVidcap.ad ${datadir}/doc/${PACKAGE_TARNAME}_${PACKAGE_VERSION}
- cp ../README ../NEWS ../TODO ../INSTALL ../AUTHORS ../ChangeLog ${datadir}/doc/${PACKAGE_TARNAME}_${PACKAGE_VERSION}
+ mkdir -p ${datadir}/doc/${PACKAGE_TARNAME}
+ ./mkresfile.sh > XVidcap.ad && cp XVidcap.ad ${datadir}/doc/${PACKAGE_TARNAME}
+ cp ../README ../NEWS ../TODO ../INSTALL ../AUTHORS ../ChangeLog ${datadir}/doc/${PACKAGE_TARNAME}
uninstall-hook:
rm -rf ${datadir}/doc/${PACKAGE_TARNAME}_${PACKAGE_VERSION}

View File

@ -0,0 +1,14 @@
--- src/capture.c.orig Sat Feb 14 21:14:20 2004
+++ src/capture.c Sun Apr 25 01:21:53 2004
@@ -643,7 +643,11 @@
(*job->close) (fp);
else if (job->flags & FLG_SYNC) {
if (job->open == (void *(*)(char *, char*))fopen)
+#ifdef HAVE_FDATASYNC
fdatasync(fileno(fp));
+#else
+ fsync(fileno(fp));
+#endif
}
/* substract the time we needed for creating and saving

View File

@ -0,0 +1,12 @@
--- src/xt_control.c.orig Sat Feb 14 21:48:14 2004
+++ src/xt_control.c Sun Apr 25 10:56:23 2004
@@ -29,6 +29,9 @@
#include <stdlib.h>
#include <limits.h> /* PATH_MAX */
#include <ctype.h> /* isdigit() */
+#ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+#endif
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Shell.h>

View File

@ -0,0 +1,7 @@
xvidcap is a screen capture enabling you to capture videos off your
X-Window desktop for illustration or documentation purposes.
It is intended to be a standards-based alternative to tools like Lotus
ScreenCam.
WWW: http://xvidcap.sourceforge.net/