From c5d85d08f54be3fcdd255aded0765af1c5fad372 Mon Sep 17 00:00:00 2001 From: nobutaka Date: Mon, 20 May 2002 17:48:25 +0000 Subject: Add libdvdnav. The library for the xine-dvdnav plugin. --- multimedia/libdvdnav/Makefile | 30 +++++++++++++ multimedia/libdvdnav/distinfo | 1 + .../libdvdnav/files/patch-example:Makefile.in | 11 +++++ multimedia/libdvdnav/files/patch-ltmain.sh | 49 ++++++++++++++++++++++ multimedia/libdvdnav/files/patch-src:Makefile.in | 11 +++++ multimedia/libdvdnav/pkg-comment | 1 + multimedia/libdvdnav/pkg-descr | 6 +++ multimedia/libdvdnav/pkg-plist | 12 ++++++ 8 files changed, 121 insertions(+) create mode 100644 multimedia/libdvdnav/Makefile create mode 100644 multimedia/libdvdnav/distinfo create mode 100644 multimedia/libdvdnav/files/patch-example:Makefile.in create mode 100644 multimedia/libdvdnav/files/patch-ltmain.sh create mode 100644 multimedia/libdvdnav/files/patch-src:Makefile.in create mode 100644 multimedia/libdvdnav/pkg-comment create mode 100644 multimedia/libdvdnav/pkg-descr create mode 100644 multimedia/libdvdnav/pkg-plist (limited to 'multimedia') diff --git a/multimedia/libdvdnav/Makefile b/multimedia/libdvdnav/Makefile new file mode 100644 index 0000000..ae35c75 --- /dev/null +++ b/multimedia/libdvdnav/Makefile @@ -0,0 +1,30 @@ +# New ports collection makefile for: libdvdnav +# Date created: 21 May 2002 +# Whom: MANTANI Nobutaka +# +# $FreeBSD$ +# + +PORTNAME= libdvdnav +PORTVERSION= 0.1.0 +CATEGORIES= graphics +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= dvd + +MAINTAINER= nobutaka@FreeBSD.org + +LIB_DEPENDS= dvdread.2:${PORTSDIR}/graphics/libdvdread + +GNU_CONFIGURE= yes +CONFIGURE_ENV= THREAD_CFLAGS="${PTHREAD_CFLAGS}" \ + THREAD_LIBS="${PTHREAD_LIBS}" +INSTALLS_SHLIB= yes + +post-patch: + @${PERL} -pi -e \ + 's|THREAD_LIBS=.*$$|THREAD_LIBS="\$$THREAD_LIBS"|g ; \ + s|THREAD_CFLAGS=.*$$|THREAD_CFLAGS="\$$THREAD_CFLAGS"|g ; \ + s|-L/usr/local/lib|-L${LOCALBASE}/lib|g ; \ + s|-I/usr/local/include|-I${LOCALBASE}/include|g' ${WRKSRC}/configure + +.include diff --git a/multimedia/libdvdnav/distinfo b/multimedia/libdvdnav/distinfo new file mode 100644 index 0000000..6894f39 --- /dev/null +++ b/multimedia/libdvdnav/distinfo @@ -0,0 +1 @@ +MD5 (libdvdnav-0.1.0.tar.gz) = 01b5ffdbc834dc72317f57a3db959a0a diff --git a/multimedia/libdvdnav/files/patch-example:Makefile.in b/multimedia/libdvdnav/files/patch-example:Makefile.in new file mode 100644 index 0000000..ca251d2 --- /dev/null +++ b/multimedia/libdvdnav/files/patch-example:Makefile.in @@ -0,0 +1,11 @@ +--- examples/Makefile.in.orig Tue May 21 01:52:35 2002 ++++ examples/Makefile.in Tue May 21 01:52:51 2002 +@@ -116,7 +116,7 @@ + LIBS = @LIBS@ + menus_OBJECTS = menus.$(OBJEXT) + menus_DEPENDENCIES = $(top_builddir)/src/libdvdnav.la +-menus_LDFLAGS = ++menus_LDFLAGS = $(THREAD_LIBS) + COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) + LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) + CCLD = $(CC) diff --git a/multimedia/libdvdnav/files/patch-ltmain.sh b/multimedia/libdvdnav/files/patch-ltmain.sh new file mode 100644 index 0000000..0591f6b --- /dev/null +++ b/multimedia/libdvdnav/files/patch-ltmain.sh @@ -0,0 +1,49 @@ +--- ltmain.sh.orig Mon Apr 29 18:30:38 2002 ++++ ltmain.sh Tue May 21 01:46:02 2002 +@@ -958,6 +958,7 @@ + ;; + + -avoid-version) ++ build_old_libs=no + avoid_version=yes + continue + ;; +@@ -1045,14 +1046,14 @@ + # These systems don't actually have a C library (as such) + test "X$arg" = "X-lc" && continue + ;; +- *-*-openbsd* | *-*-freebsd*) ++ *-*-openbsd*) + # Do not include libc due to us having libc/libc_r. + test "X$arg" = "X-lc" && continue + ;; + esac + elif test "X$arg" = "X-lc_r"; then + case $host in +- *-*-openbsd* | *-*-freebsd*) ++ *-*-openbsd*) + # Do not include libc_r directly, use -pthread flag. + continue + ;; +@@ -2459,7 +2460,7 @@ + *-*-netbsd*) + # Don't link with libc until the a.out ld.so is fixed. + ;; +- *-*-openbsd* | *-*-freebsd*) ++ *-*-openbsd*) + # Do not include libc due to us having libc/libc_r. + ;; + *) +@@ -4247,10 +4248,12 @@ + fi + + # Install the pseudo-library for information purposes. ++ if /usr/bin/false; then + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + instname="$dir/$name"i + $show "$install_prog $instname $destdir/$name" + $run eval "$install_prog $instname $destdir/$name" || exit $? ++ fi + + # Maybe install the static library, too. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" diff --git a/multimedia/libdvdnav/files/patch-src:Makefile.in b/multimedia/libdvdnav/files/patch-src:Makefile.in new file mode 100644 index 0000000..ee80996 --- /dev/null +++ b/multimedia/libdvdnav/files/patch-src:Makefile.in @@ -0,0 +1,11 @@ +--- src/Makefile.in.orig Tue May 21 01:59:54 2002 ++++ src/Makefile.in Tue May 21 02:00:14 2002 +@@ -102,7 +102,7 @@ + + libdvdnav_la_SOURCES = decoder.c dvdnav.c vm.c vmcmd.c read_cache.c navigation.c highlight.c searching.c settings.c + +-libdvdnav_la_LDFLAGS = $(DVDREAD_LIBS) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -release $(LT_RELEASE) ++libdvdnav_la_LDFLAGS = $(DVDREAD_LIBS) + + + include_HEADERS = decoder.h dvdnav.h dvdnav_events.h dvdnav_internal.h vm.h vmcmd.h read_cache.h dvd_types.h diff --git a/multimedia/libdvdnav/pkg-comment b/multimedia/libdvdnav/pkg-comment new file mode 100644 index 0000000..75fdc31 --- /dev/null +++ b/multimedia/libdvdnav/pkg-comment @@ -0,0 +1 @@ +The library for the xine-dvdnav plugin diff --git a/multimedia/libdvdnav/pkg-descr b/multimedia/libdvdnav/pkg-descr new file mode 100644 index 0000000..1f3040c --- /dev/null +++ b/multimedia/libdvdnav/pkg-descr @@ -0,0 +1,6 @@ +The library for the xine-dvdnav plugin. + +WWW: http://dvd.sourceforge.net/xine-dvdnav.shtml + +-- +MANTANI Nobutaka diff --git a/multimedia/libdvdnav/pkg-plist b/multimedia/libdvdnav/pkg-plist new file mode 100644 index 0000000..bd7df2b --- /dev/null +++ b/multimedia/libdvdnav/pkg-plist @@ -0,0 +1,12 @@ +bin/dvdnav-config +include/dvdnav/decoder.h +include/dvdnav/dvd_types.h +include/dvdnav/dvdnav.h +include/dvdnav/dvdnav_events.h +include/dvdnav/dvdnav_internal.h +include/dvdnav/read_cache.h +include/dvdnav/vm.h +include/dvdnav/vmcmd.h +lib/libdvdnav.so.0 +lib/libdvdnav.so +@dirrm include/dvdnav -- cgit v1.1