summaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2001-11-19 19:35:04 +0000
committerlioux <lioux@FreeBSD.org>2001-11-19 19:35:04 +0000
commit85006ea1e41dcac650f853ef4ca8bfb71e472d80 (patch)
tree42f8936105b1ff05f6c9fe7e2da0ec2a5c17f346 /multimedia
parent0281522a0929fe09188fb1ac10b4a5b6b2460ef8 (diff)
downloadFreeBSD-ports-85006ea1e41dcac650f853ef4ca8bfb71e472d80.zip
FreeBSD-ports-85006ea1e41dcac650f853ef4ca8bfb71e472d80.tar.gz
New port libdv version 0.9: Quasar DV codec (libdv): software codec
for DV video encoding format Reviewed by: petef
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/libdv/Makefile43
-rw-r--r--multimedia/libdv/distinfo1
-rw-r--r--multimedia/libdv/files/patch-Makefile.in20
-rw-r--r--multimedia/libdv/files/patch-configure11
-rw-r--r--multimedia/libdv/files/patch-encodedv:dvconnect.c19
-rw-r--r--multimedia/libdv/files/patch-playdv:display.c35
-rw-r--r--multimedia/libdv/files/patch-playdv:oss.c22
-rw-r--r--multimedia/libdv/pkg-comment1
-rw-r--r--multimedia/libdv/pkg-descr11
-rw-r--r--multimedia/libdv/pkg-plist9
10 files changed, 172 insertions, 0 deletions
diff --git a/multimedia/libdv/Makefile b/multimedia/libdv/Makefile
new file mode 100644
index 0000000..ba2f16b
--- /dev/null
+++ b/multimedia/libdv/Makefile
@@ -0,0 +1,43 @@
+# New ports collection makefile for: libdv
+# Date created: Sun Nov 18 19:42:02 BRST 2001
+# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= libdv
+PORTVERSION= 0.9
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= lioux@FreeBSD.org
+
+BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconfig
+LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
+ popt.0:${PORTSDIR}/devel/popt \
+ SDL-1.1.3:${PORTSDIR}/devel/sdl12
+
+USE_GTK= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include \
+ -I${X11BASE}/include `${GTK_CONFIG} --cflags` \
+ `${GDK_PIXBUF_CONFIG} --cflags`" \
+ LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -L${X11BASE}/lib \
+ `${GTK_CONFIG} --libs` `${GDK_PIXBUF_CONFIG} --libs`"
+CONFIGURE_ARGS= --with-sdl-prefix="${LOCALBASE}"
+INSTALLS_SHLIB= yes
+
+MAN1= encodedv.1 playdv.1
+
+GDK_PIXBUF_CONFIG?=${X11BASE}/bin/gdk-pixbuf-config
+
+post-configure:
+ @find ${WRKSRC} -type f -name Makefile -exec \
+ ${PERL} -pi.orig -ne 's!-l(gdk|glib|gtk) !!g' {} \;
+
+post-install:
+.ifndef(NOPORTDOCS)
+.endif
+
+.include <bsd.port.mk>
diff --git a/multimedia/libdv/distinfo b/multimedia/libdv/distinfo
new file mode 100644
index 0000000..a99be38
--- /dev/null
+++ b/multimedia/libdv/distinfo
@@ -0,0 +1 @@
+MD5 (libdv-0.9.tar.gz) = f8709211c3309ba0071d1a3c4bf7ba26
diff --git a/multimedia/libdv/files/patch-Makefile.in b/multimedia/libdv/files/patch-Makefile.in
new file mode 100644
index 0000000..d06f6da
--- /dev/null
+++ b/multimedia/libdv/files/patch-Makefile.in
@@ -0,0 +1,20 @@
+--- Makefile.in.orig Mon Nov 19 02:04:08 2001
++++ Makefile.in Mon Nov 19 02:05:55 2001
+@@ -348,7 +348,7 @@
+ install-exec-am:
+ install-exec: install-exec-recursive
+
+-install-data-am: install-pkgconfigDATA
++install-data-am:
+ install-data: install-data-recursive
+
+ install-am: all-am
+@@ -356,7 +356,7 @@
+ install: install-recursive
+ uninstall-am: uninstall-pkgconfigDATA
+ uninstall: uninstall-recursive
+-all-am: Makefile $(DATA) config.h
++all-am: Makefile config.h
+ all-redirect: all-recursive-am
+ install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
diff --git a/multimedia/libdv/files/patch-configure b/multimedia/libdv/files/patch-configure
new file mode 100644
index 0000000..75a4798
--- /dev/null
+++ b/multimedia/libdv/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig Sun Jun 24 22:49:16 2001
++++ configure Mon Nov 19 15:33:53 2001
+@@ -6381,7 +6381,7 @@
+ HOST_X86_FALSE=
+ fi
+
+-REQUIRES='glib >= 1.2.4 gtk+ >= 1.2.4'
++REQUIRES='gtk >= 1.2.4'
+
+ succeeded=no
+
diff --git a/multimedia/libdv/files/patch-encodedv:dvconnect.c b/multimedia/libdv/files/patch-encodedv:dvconnect.c
new file mode 100644
index 0000000..8bf2c32
--- /dev/null
+++ b/multimedia/libdv/files/patch-encodedv:dvconnect.c
@@ -0,0 +1,19 @@
+--- encodedv/dvconnect.c.orig Sun Jun 24 13:21:45 2001
++++ encodedv/dvconnect.c Mon Nov 19 00:53:05 2001
+@@ -24,6 +24,7 @@
+ */
+
+ #include <stdio.h>
++#include <sys/types.h>
+ #include <sys/ioctl.h>
+ #include <sys/mman.h>
+ #include <string.h>
+@@ -38,7 +39,7 @@
+ #include <popt.h>
+ #endif
+
+-#include <malloc.h>
++#include <stdlib.h>
+
+ #define CIP_N_NTSC 2436
+ #define CIP_D_NTSC 38400
diff --git a/multimedia/libdv/files/patch-playdv:display.c b/multimedia/libdv/files/patch-playdv:display.c
new file mode 100644
index 0000000..02b0a85
--- /dev/null
+++ b/multimedia/libdv/files/patch-playdv:display.c
@@ -0,0 +1,35 @@
+--- playdv/display.c.orig Sun Jun 24 13:06:30 2001
++++ playdv/display.c Mon Nov 19 00:37:55 2001
+@@ -47,6 +47,8 @@
+ #include <popt.h>
+ #endif
+
++dv_display_t *dv_dpy_on_exit_hack;
++
+ static int dv_display_SDL_init(dv_display_t *dv_dpy, gchar *w_name, gchar *i_name );
+ static gboolean dv_display_gdk_init(dv_display_t *dv_dpy, gint *argc, gchar ***argv );
+
+@@ -675,6 +677,13 @@
+ } /* if */
+ } /* dv_display_exit_handler */
+
++static void
++dv_display_on_exit_hack_handler()
++{
++ if(dv_dpy_on_exit_hack) {
++ dv_display_exit(dv_dpy_on_exit_hack);
++ } /* if */
++} /* dv_display_exit_handler */
+
+ gboolean
+ dv_display_init(dv_display_t *dv_dpy, gint *argc, gchar ***argv, gint width, gint height,
+@@ -804,7 +813,8 @@
+ fprintf(stderr, " Using gtk for display\n");
+
+ ok:
+- on_exit(dv_display_exit_handler, dv_dpy);
++ dv_dpy_on_exit_hack = dv_dpy;
++ atexit(dv_display_on_exit_hack_handler);
+ return(TRUE);
+
+ fail:
diff --git a/multimedia/libdv/files/patch-playdv:oss.c b/multimedia/libdv/files/patch-playdv:oss.c
new file mode 100644
index 0000000..583be30
--- /dev/null
+++ b/multimedia/libdv/files/patch-playdv:oss.c
@@ -0,0 +1,22 @@
+--- playdv/oss.c.orig Sun Nov 18 21:50:24 2001
++++ playdv/oss.c Sun Nov 18 21:53:48 2001
+@@ -36,6 +36,19 @@
+
+ #include "oss.h"
+
++#ifndef O_LARGEFILE
++# define O_LARGEFILE 0
++#endif
++
++#ifndef AFMT_S16_NE
++# include <machine/endian.h>
++# if BYTE_ORDER == LITTLE_ENDIAN
++# define AFMT_S16_NE AFMT_S16_LE
++# else
++# define AFMT_S16_NE AFMT_S16_BE
++# endif
++#endif
++
+ static const gchar *default_device = "/dev/audio";
+
+ dv_oss_t *
diff --git a/multimedia/libdv/pkg-comment b/multimedia/libdv/pkg-comment
new file mode 100644
index 0000000..068c7a5
--- /dev/null
+++ b/multimedia/libdv/pkg-comment
@@ -0,0 +1 @@
+Quasar DV codec (libdv): software codec for DV video encoding format
diff --git a/multimedia/libdv/pkg-descr b/multimedia/libdv/pkg-descr
new file mode 100644
index 0000000..c2ac178
--- /dev/null
+++ b/multimedia/libdv/pkg-descr
@@ -0,0 +1,11 @@
+The Quasar DV codec (libdv) is a software codec for DV video, the
+encoding format used by most digital camcorders, typically those
+that support the IEEE 1394 (a.k.a. FireWire or i.Link) interface.
+Libdv was developed according to the official standards for DV
+video: IEC 61834 and SMPTE 314M.
+
+Please note that this software is only concerned with the DV video
+compression format, which is different from capturing the data from
+a camcorder.
+
+WWW: http://libdv.sourceforge.net/
diff --git a/multimedia/libdv/pkg-plist b/multimedia/libdv/pkg-plist
new file mode 100644
index 0000000..a7bb3d1
--- /dev/null
+++ b/multimedia/libdv/pkg-plist
@@ -0,0 +1,9 @@
+bin/encodedv
+bin/playdv
+include/libdv/dv.h
+include/libdv/dv_types.h
+lib/libdv.a
+lib/libdv.la
+lib/libdv.so
+lib/libdv.so.1
+@dirrm include/libdv
OpenPOWER on IntegriCloud