summaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authornobutaka <nobutaka@FreeBSD.org>2002-05-20 17:48:25 +0000
committernobutaka <nobutaka@FreeBSD.org>2002-05-20 17:48:25 +0000
commitc5d85d08f54be3fcdd255aded0765af1c5fad372 (patch)
treeda5cd0286aa70880e2b9509e3060a6d07a16e9a2 /multimedia
parent0a4ac857cee6f2d446f382e338691158c8ba3c21 (diff)
downloadFreeBSD-ports-c5d85d08f54be3fcdd255aded0765af1c5fad372.zip
FreeBSD-ports-c5d85d08f54be3fcdd255aded0765af1c5fad372.tar.gz
Add libdvdnav. The library for the xine-dvdnav plugin.
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/libdvdnav/Makefile30
-rw-r--r--multimedia/libdvdnav/distinfo1
-rw-r--r--multimedia/libdvdnav/files/patch-example:Makefile.in11
-rw-r--r--multimedia/libdvdnav/files/patch-ltmain.sh49
-rw-r--r--multimedia/libdvdnav/files/patch-src:Makefile.in11
-rw-r--r--multimedia/libdvdnav/pkg-comment1
-rw-r--r--multimedia/libdvdnav/pkg-descr6
-rw-r--r--multimedia/libdvdnav/pkg-plist12
8 files changed, 121 insertions, 0 deletions
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 <nobutaka@nobutaka.com>
+#
+# $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 <bsd.port.mk>
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 <nobutaka@nobutaka.com>
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
OpenPOWER on IntegriCloud