diff options
author | Thierry Thomas <thierry@FreeBSD.org> | 2004-04-28 22:12:58 +0000 |
---|---|---|
committer | Thierry Thomas <thierry@FreeBSD.org> | 2004-04-28 22:12:58 +0000 |
commit | 5eb4f9269af804fca29d42b385ad9872cbe1458e (patch) | |
tree | 09ead7f3d7447004c66297cb75d11df1172c414a /sysutils/xvidcap | |
parent | 8832b5ec516e2557e792ea770ffd58f7bb90500e (diff) | |
download | ports-5eb4f9269af804fca29d42b385ad9872cbe1458e.tar.gz ports-5eb4f9269af804fca29d42b385ad9872cbe1458e.zip |
Add xvidcap 1.1.3, capture your X display to individual frames
or MPEG video.
Notes
Notes:
svn path=/head/; revision=107884
Diffstat (limited to 'sysutils/xvidcap')
-rw-r--r-- | sysutils/xvidcap/Makefile | 53 | ||||
-rw-r--r-- | sysutils/xvidcap/distinfo | 2 | ||||
-rw-r--r-- | sysutils/xvidcap/files/patch-src::Makefile.in | 27 | ||||
-rw-r--r-- | sysutils/xvidcap/files/patch-src::capture.c | 14 | ||||
-rw-r--r-- | sysutils/xvidcap/files/patch-src::xt_control.c | 12 | ||||
-rw-r--r-- | sysutils/xvidcap/pkg-descr | 7 |
6 files changed, 115 insertions, 0 deletions
diff --git a/sysutils/xvidcap/Makefile b/sysutils/xvidcap/Makefile new file mode 100644 index 000000000000..319c214f784b --- /dev/null +++ b/sysutils/xvidcap/Makefile @@ -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> diff --git a/sysutils/xvidcap/distinfo b/sysutils/xvidcap/distinfo new file mode 100644 index 000000000000..fcae67c5859d --- /dev/null +++ b/sysutils/xvidcap/distinfo @@ -0,0 +1,2 @@ +MD5 (xvidcap-1.1.3.tar.gz) = ea896ffd35d6fe6d2abf51b38605f5fd +SIZE (xvidcap-1.1.3.tar.gz) = 1627036 diff --git a/sysutils/xvidcap/files/patch-src::Makefile.in b/sysutils/xvidcap/files/patch-src::Makefile.in new file mode 100644 index 000000000000..7578c31c58bc --- /dev/null +++ b/sysutils/xvidcap/files/patch-src::Makefile.in @@ -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} diff --git a/sysutils/xvidcap/files/patch-src::capture.c b/sysutils/xvidcap/files/patch-src::capture.c new file mode 100644 index 000000000000..eec5e4bfc0fa --- /dev/null +++ b/sysutils/xvidcap/files/patch-src::capture.c @@ -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 diff --git a/sysutils/xvidcap/files/patch-src::xt_control.c b/sysutils/xvidcap/files/patch-src::xt_control.c new file mode 100644 index 000000000000..e5dbbbf2cc3b --- /dev/null +++ b/sysutils/xvidcap/files/patch-src::xt_control.c @@ -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> diff --git a/sysutils/xvidcap/pkg-descr b/sysutils/xvidcap/pkg-descr new file mode 100644 index 000000000000..067fe5eda888 --- /dev/null +++ b/sysutils/xvidcap/pkg-descr @@ -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/ |