diff options
author | jmmv <jmmv> | 2005-06-03 15:40:30 +0000 |
---|---|---|
committer | jmmv <jmmv> | 2005-06-03 15:40:30 +0000 |
commit | db0a1742e0418092d2d2a913af1d4061c6011c44 (patch) | |
tree | 9a24d97bde0ab8ade613f414143696dbb34522b1 /multimedia/libdv | |
parent | 4bb665f70ad9aa4e3eec333ab5c8114f7f819851 (diff) | |
download | pkgsrc-db0a1742e0418092d2d2a913af1d4061c6011c44.tar.gz |
Split libdv into two packages: libdv itself, which installs only the codec
library, and libdv-tools, which installs all the associated tools.
While doing this, clean-up useless dependencies in libdv's buildlink3.mk
file.
The main purpose of this change is to let mplayer use the dv codec (which
is the default setting) while not depending on unused packages (gtk+).
Diffstat (limited to 'multimedia/libdv')
-rw-r--r-- | multimedia/libdv/DESCR | 6 | ||||
-rw-r--r-- | multimedia/libdv/Makefile | 35 | ||||
-rw-r--r-- | multimedia/libdv/Makefile.common | 38 | ||||
-rw-r--r-- | multimedia/libdv/PLIST | 10 | ||||
-rw-r--r-- | multimedia/libdv/buildlink3.mk | 8 | ||||
-rw-r--r-- | multimedia/libdv/distinfo | 4 | ||||
-rw-r--r-- | multimedia/libdv/patches/patch-ab | 51 | ||||
-rw-r--r-- | multimedia/libdv/patches/patch-ac | 22 |
8 files changed, 120 insertions, 54 deletions
diff --git a/multimedia/libdv/DESCR b/multimedia/libdv/DESCR index 19eee8a3785..56e4e689b55 100644 --- a/multimedia/libdv/DESCR +++ b/multimedia/libdv/DESCR @@ -3,9 +3,3 @@ 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. - -This package also includes playdv for displaying DV-encoded video data, -dubdv for inserting audio into a digital video stream, encodedv for -encoding a series of images to a digital video stream, and dvconnect -for capturing and sending raw DV streams using the Linux IEEE 1394 -video1394 device. diff --git a/multimedia/libdv/Makefile b/multimedia/libdv/Makefile index 4426a9942f9..e0ce692a2dc 100644 --- a/multimedia/libdv/Makefile +++ b/multimedia/libdv/Makefile @@ -1,36 +1,9 @@ -# $NetBSD: Makefile,v 1.10 2005/04/11 21:46:41 tv Exp $ +# $NetBSD: Makefile,v 1.11 2005/06/03 15:40:30 jmmv Exp $ -DISTNAME= libdv-0.104 -CATEGORIES= multimedia -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libdv/} +.include "Makefile.common" -MAINTAINER= tech-pkg-ja@jp.NetBSD.org -HOMEPAGE= http://libdv.sourceforge.net/ -COMMENT= DV video codec library +PKGREVISION= 1 -USE_LANGUAGES= c c++ -USE_LIBTOOL= yes -GNU_CONFIGURE= yes -PKGCONFIG_OVERRIDE= ${WRKSRC}/libdv.pc.in -PTHREAD_AUTO_VARS= yes +MAKE_FLAGS+= SUBDIRS=libdv -LIBS+= ${LIBOSSAUDIO} - -.include "../../mk/bsd.prefs.mk" -.if empty(MACHINE_PLATFORM:M*-*-i386) -CONFIGURE_ARGS+= --disable-asm -.endif - -.if !exists(${X11BASE}/include/X11/extensions/Xvlib.h) -CONFIGURE_ARGS+=--disable-xv -.endif - -.include "../../converters/libiconv/buildlink3.mk" -.include "../../devel/gettext-lib/buildlink3.mk" -.include "../../devel/glib/buildlink3.mk" -.include "../../devel/pkgconfig/buildlink3.mk" -.include "../../devel/popt/buildlink3.mk" -.include "../../x11/gtk/buildlink3.mk" -.include "../../mk/ossaudio.buildlink3.mk" -.include "../../mk/pthread.buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/multimedia/libdv/Makefile.common b/multimedia/libdv/Makefile.common new file mode 100644 index 00000000000..3261e051a5d --- /dev/null +++ b/multimedia/libdv/Makefile.common @@ -0,0 +1,38 @@ +# $NetBSD: Makefile.common,v 1.1 2005/06/03 15:40:31 jmmv Exp $ + +DISTNAME= libdv-0.104 +CATEGORIES= multimedia +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libdv/} + +MAINTAINER= tech-pkg-ja@jp.NetBSD.org +HOMEPAGE= http://libdv.sourceforge.net/ +COMMENT= DV video codec library + +DISTINFO_FILE= ${.CURDIR}/../../multimedia/libdv/distinfo +PATCHDIR= ${.CURDIR}/../../multimedia/libdv/patches + +GNU_CONFIGURE= yes +USE_LANGUAGES= c c++ +USE_LIBTOOL= yes +PKGCONFIG_OVERRIDE= ${WRKSRC}/libdv.pc.in +PTHREAD_AUTO_VARS= yes + +CONFIGURE_ARGS+= --disable-gtk + +.include "../../mk/bsd.prefs.mk" +.if empty(MACHINE_PLATFORM:M*-*-i386) +CONFIGURE_ARGS+= --disable-asm +.endif + +.if !exists(${X11BASE}/include/X11/extensions/Xvlib.h) +CONFIGURE_ARGS+= --disable-xv +.endif + +LIBS+= ${LIBOSSAUDIO} + +.include "../../converters/libiconv/buildlink3.mk" +.include "../../devel/gettext-lib/buildlink3.mk" +.include "../../devel/pkgconfig/buildlink3.mk" +.include "../../devel/popt/buildlink3.mk" +.include "../../mk/ossaudio.buildlink3.mk" +.include "../../mk/pthread.buildlink3.mk" diff --git a/multimedia/libdv/PLIST b/multimedia/libdv/PLIST index 0611978c8e1..578ddc0e469 100644 --- a/multimedia/libdv/PLIST +++ b/multimedia/libdv/PLIST @@ -1,14 +1,6 @@ -@comment $NetBSD: PLIST,v 1.3 2004/11/25 14:52:20 adam Exp $ -bin/dubdv -bin/dvconnect -bin/encodedv -bin/playdv +@comment $NetBSD: PLIST,v 1.4 2005/06/03 15:40:31 jmmv Exp $ include/libdv/dv.h include/libdv/dv_types.h lib/libdv.la lib/pkgconfig/libdv.pc -man/man1/dubdv.1 -man/man1/dvconnect.1 -man/man1/encodedv.1 -man/man1/playdv.1 @dirrm include/libdv diff --git a/multimedia/libdv/buildlink3.mk b/multimedia/libdv/buildlink3.mk index a2d4974fb0d..c0eff97697c 100644 --- a/multimedia/libdv/buildlink3.mk +++ b/multimedia/libdv/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.2 2004/10/03 00:13:02 tv Exp $ +# $NetBSD: buildlink3.mk,v 1.3 2005/06/03 15:40:31 jmmv Exp $ BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ LIBDV_BUILDLINK3_MK:= ${LIBDV_BUILDLINK3_MK}+ @@ -16,10 +16,4 @@ BUILDLINK_RECOMMENDED.libdv+= libdv>=0.102nb1 BUILDLINK_PKGSRCDIR.libdv?= ../../multimedia/libdv .endif # LIBDV_BUILDLINK3_MK -.include "../../converters/libiconv/buildlink3.mk" -.include "../../devel/gettext-lib/buildlink3.mk" -.include "../../devel/glib/buildlink3.mk" -.include "../../devel/popt/buildlink3.mk" -.include "../../x11/gtk/buildlink3.mk" - BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/multimedia/libdv/distinfo b/multimedia/libdv/distinfo index a005a0fc191..6e65971b939 100644 --- a/multimedia/libdv/distinfo +++ b/multimedia/libdv/distinfo @@ -1,6 +1,8 @@ -$NetBSD: distinfo,v 1.5 2005/02/24 11:24:03 agc Exp $ +$NetBSD: distinfo,v 1.6 2005/06/03 15:40:31 jmmv Exp $ SHA1 (libdv-0.104.tar.gz) = 521a079193f4ae8f9995091b0590c87fde130650 RMD160 (libdv-0.104.tar.gz) = a91708ecb75533caf2b9038ca68064c7707dcfdf Size (libdv-0.104.tar.gz) = 554691 bytes SHA1 (patch-aa) = 6910450f2c93ac4989e8c132368d208ddd65cf0d +SHA1 (patch-ab) = f204ba8b80f48a5965397beb2239b44b45ca8920 +SHA1 (patch-ac) = a8d1fd55c9bf3ee59f34613e285314def3add60b diff --git a/multimedia/libdv/patches/patch-ab b/multimedia/libdv/patches/patch-ab new file mode 100644 index 00000000000..d49568f602f --- /dev/null +++ b/multimedia/libdv/patches/patch-ab @@ -0,0 +1,51 @@ +$NetBSD: patch-ab,v 1.1 2005/06/03 15:40:31 jmmv Exp $ + +--- encodedv/Makefile.in.orig 2004-11-30 03:23:42.000000000 +0000 ++++ encodedv/Makefile.in +@@ -57,19 +57,19 @@ PROGRAMS = $(bin_PROGRAMS) $(noinst_PROG + am_dubdv_OBJECTS = insert_audio.$(OBJEXT) + dubdv_OBJECTS = $(am_dubdv_OBJECTS) + am__DEPENDENCIES_1 = +-dubdv_DEPENDENCIES = ../libdv/libdv.la $(am__DEPENDENCIES_1) ++dubdv_DEPENDENCIES = $(am__DEPENDENCIES_1) + am_dvavi_OBJECTS = dvavi.$(OBJEXT) + dvavi_OBJECTS = $(am_dvavi_OBJECTS) +-dvavi_DEPENDENCIES = ../libdv/libdv.la ++dvavi_DEPENDENCIES = + am_dvconnect_OBJECTS = dvconnect.$(OBJEXT) + dvconnect_OBJECTS = $(am_dvconnect_OBJECTS) + dvconnect_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) + am_encodedv_OBJECTS = encodedv.$(OBJEXT) + encodedv_OBJECTS = $(am_encodedv_OBJECTS) +-encodedv_DEPENDENCIES = ../libdv/libdv.la $(am__DEPENDENCIES_1) ++encodedv_DEPENDENCIES = $(am__DEPENDENCIES_1) + am_fix_headers_OBJECTS = fix_headers.$(OBJEXT) + fix_headers_OBJECTS = $(am_fix_headers_OBJECTS) +-fix_headers_DEPENDENCIES = ../libdv/libdv.la ++fix_headers_DEPENDENCIES = + am_ppmqscale_OBJECTS = ppmqscale.$(OBJEXT) + ppmqscale_OBJECTS = $(am_ppmqscale_OBJECTS) + ppmqscale_LDADD = $(LDADD) +@@ -232,18 +232,18 @@ EXTRA_DIST = $(man_MANS) + MAINTAINERCLEANFILES = Makefile.in $(AUX_DIST) + CLEANFILES = + encodedv_SOURCES = encodedv.c +-encodedv_LDADD = ../libdv/libdv.la $(POPT_LIB) ++encodedv_LDADD = `pkg-config --libs libdv` $(POPT_LIB) + dubdv_SOURCES = insert_audio.c +-dubdv_LDADD = ../libdv/libdv.la $(POPT_LIB) ++dubdv_LDADD = `pkg-config --libs libdv` $(POPT_LIB) + fix_headers_SOURCES = fix_headers.c +-fix_headers_LDADD = ../libdv/libdv.la ++fix_headers_LDADD = `pkg-config --libs libdv` + scan_packet_headers_SOURCES = scan_packet_headers.c + steal_header_SOURCES = steal_header.c + ppmqscale_SOURCES = ppmqscale.c + dvconnect_SOURCES = dvconnect.c + dvconnect_LDADD = $(PTHREAD_LIBS) $(POPT_LIB) + dvavi_SOURCES = dvavi.c +-dvavi_LDADD = ../libdv/libdv.la ++dvavi_LDADD = `pkg-config --libs libdv` + all: all-am + + .SUFFIXES: diff --git a/multimedia/libdv/patches/patch-ac b/multimedia/libdv/patches/patch-ac new file mode 100644 index 00000000000..f83f6a11aab --- /dev/null +++ b/multimedia/libdv/patches/patch-ac @@ -0,0 +1,22 @@ +$NetBSD: patch-ac,v 1.1 2005/06/03 15:40:31 jmmv Exp $ + +--- playdv/Makefile.in.orig 2004-11-30 03:23:43.000000000 +0000 ++++ playdv/Makefile.in +@@ -58,7 +58,7 @@ am_playdv_OBJECTS = playdv.$(OBJEXT) dis + playdv_OBJECTS = $(am_playdv_OBJECTS) + am__DEPENDENCIES_1 = + playdv_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ +- $(am__DEPENDENCIES_1) ../libdv/libdv.la $(am__DEPENDENCIES_1) ++ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) + DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) + depcomp = $(SHELL) $(top_srcdir)/depcomp + am__depfiles_maybe = depfiles +@@ -209,7 +209,7 @@ CLEANFILES = + AM_CFLAGS = $(SDL_CFLAGS) $(GTK_CFLAGS) + noinst_HEADERS = display.h oss.h + playdv_SOURCES = playdv.c display.c display.h oss.c +-playdv_LDADD = $(SDL_LIBS) $(GTK_LIBS) $(XV_LIB) ../libdv/libdv.la $(POPT_LIB) ++playdv_LDADD = $(SDL_LIBS) $(GTK_LIBS) $(XV_LIB) `pkg-config --libs libdv` $(POPT_LIB) + all: all-am + + .SUFFIXES: |