ports/127849: New port: multimedia/libdvdread-mplayer

Ganael Laplanche ganael.laplanche at martymac.com
Sat Oct 4 11:50:15 UTC 2008


>Number:         127849
>Category:       ports
>Synopsis:       New port: multimedia/libdvdread-mplayer
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 04 11:50:11 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Ganael Laplanche
>Release:        8.0-CURRENT
>Organization:
http://contribs.martymac.com
>Environment:
FreeBSD home.martymac.com 8.0-CURRENT FreeBSD 8.0-CURRENT #24: Thu Sep 18 17:14:04 CEST 2008     root at home.martymac.com:/usr/obj/usr/src/sys/MYKERNEL  amd64
>Description:
This port is the new (Mplayer team's) version of the dvdread library, which has been split apart from the dvdnav library. Here is the Changelog :

libdvdread (4.1.3)
  * an embarassing amount of fixes regarding potential memory and resource leaks
    (patches contributed by Erik Hovland)
  * added dvdread-config (dvdnav-config's younger brother)
  * added pkgconfig support
  * split dvdread to a separate tree
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	libdvdread-mplayer
#	libdvdread-mplayer/pkg-plist
#	libdvdread-mplayer/Makefile
#	libdvdread-mplayer/distinfo
#	libdvdread-mplayer/files
#	libdvdread-mplayer/files/patch-Makefile
#	libdvdread-mplayer/files/patch-configure2
#	libdvdread-mplayer/pkg-descr
#
echo c - libdvdread-mplayer
mkdir -p libdvdread-mplayer > /dev/null 2>&1
echo x - libdvdread-mplayer/pkg-plist
sed 's/^X//' >libdvdread-mplayer/pkg-plist << '58ff0b826dc4d88c27bcb55ca0265cc2'
Xbin/dvdread-config
Xinclude/dvdread/dvd_reader.h
Xinclude/dvdread/ifo_print.h
Xinclude/dvdread/ifo_read.h
Xinclude/dvdread/ifo_types.h
Xinclude/dvdread/nav_print.h
Xinclude/dvdread/nav_read.h
Xinclude/dvdread/dvd_udf.h
Xinclude/dvdread/nav_types.h
Xinclude/dvdread/bitreader.h
X at dirrm include/dvdread
Xlib/libdvdread.so.4.1.3
Xlib/libdvdread.so.4
Xlib/libdvdread.so
Xlib/libdvdread.a
Xlibdata/pkgconfig/dvdread.pc
58ff0b826dc4d88c27bcb55ca0265cc2
echo x - libdvdread-mplayer/Makefile
sed 's/^X//' >libdvdread-mplayer/Makefile << 'abfc209f1c060dc5bd5bc9889f156be8'
X# New ports collection makefile for: libdvdread-mplayer
X# Date created:                      04 October 2008
X# Whom:                              Ganael Laplanche <ganael.laplanche at martymac.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	libdvdread-mplayer
XPORTVERSION=	4.1.3
XCATEGORIES=	multimedia
XMASTER_SITES=	http://www1.mplayerhq.hu/MPlayer/releases/dvdnav/ \
X		http://www2.mplayerhq.hu/MPlayer/releases/dvdnav/ \
X		http://www3.mplayerhq.hu/MPlayer/releases/dvdnav/ \
X		http://www4.mplayerhq.hu/MPlayer/releases/dvdnav/ \
X		http://www5.mplayerhq.hu/MPlayer/releases/dvdnav/ \
X		ftp://ftp1.mplayerhq.hu/MPlayer/releases/dvdnav/ \
X		ftp://ftp2.mplayerhq.hu/MPlayer/releases/dvdnav/
XDISTNAME=	libdvdread-${PORTVERSION}
X
XMAINTAINER=	ganael.laplanche at martymac.com
XCOMMENT=	Mplayer version of the lidvdread project
X
XUSE_BZIP2=	yes
XCFLAGS+=	"-I${LOCALBASE}/include"
XLDFLAGS+=	"-L${LOCALBASE}/lib"
XHAS_CONFIGURE=	yes
XCONFIGURE_SCRIPT=	configure2
XCONFIGURE_ARGS=	--prefix="${PREFIX}" \
X		--libdir="${PREFIX}/lib" \
X		--libdatadir="${PREFIX}/libdata/pkgconfig" \
X		--shlibdir="${PREFIX}/lib" \
X		--incdir="${PREFIX}/include/dvdread" \
X		--disable-opts \
X		--disable-debug \
X		--extra-cflags="${CFLAGS}" \
X		--extra-ldflags="${LDFLAGS}"
XUSE_GMAKE=	yes
XCONFLICTS=	libdvdread-[0-9]*
XUSE_LDCONFIG=	yes
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|-ldl ||g' \
X		${WRKSRC}/Makefile
X
X.include <bsd.port.mk>
abfc209f1c060dc5bd5bc9889f156be8
echo x - libdvdread-mplayer/distinfo
sed 's/^X//' >libdvdread-mplayer/distinfo << '5a09704f165e52b56ad9a113efb2db54'
XMD5 (libdvdread-4.1.3.tar.bz2) = 6dc068d442c85a3cdd5ad3da75f6c6e8
XSHA256 (libdvdread-4.1.3.tar.bz2) = 07c39907beccd141adb710403c4704a1e1fe2f3f61d1e5a74fc5bcb7679819b4
XSIZE (libdvdread-4.1.3.tar.bz2) = 96899
5a09704f165e52b56ad9a113efb2db54
echo c - libdvdread-mplayer/files
mkdir -p libdvdread-mplayer/files > /dev/null 2>&1
echo x - libdvdread-mplayer/files/patch-Makefile
sed 's/^X//' >libdvdread-mplayer/files/patch-Makefile << 'fcfd58000ea016c23145b5f28a20ec53'
X--- Makefile.orig	2008-08-31 11:27:37.000000000 +0200
X+++ Makefile	2008-10-04 12:42:55.833207676 +0200
X@@ -90,8 +90,8 @@
X # Install targets
X 
X install-headers:
X-	install -d $(DESTDIR)$(dvdread_incdir)
X-	install -m 644 $(DVDREAD_HEADERS) $(DESTDIR)$(dvdread_incdir)
X+	install -d $(DESTDIR)$(incdir)
X+	install -m 644 $(DVDREAD_HEADERS) $(DESTDIR)$(incdir)
X 
X install-shared: $(SHLIB)
X 	install -d $(DESTDIR)$(shlibdir)
X@@ -154,8 +154,8 @@
X 	$(pcedit) $< > $@
X 
X install-pkgconfig: $(.OBJDIR)/dvdread.pc
X-	install -d $(DESTDIR)$(libdir)/pkgconfig
X-	install -m 0644 $(.OBJDIR)/dvdread.pc $(DESTDIR)$(libdir)/pkgconfig
X+	install -d $(DESTDIR)$(libdatadir)
X+	install -m 0644 $(.OBJDIR)/dvdread.pc $(DESTDIR)$(libdatadir)
X 
X vpath %.so ${.OBJDIR}
X vpath %.o ${.OBJDIR}
fcfd58000ea016c23145b5f28a20ec53
echo x - libdvdread-mplayer/files/patch-configure2
sed 's/^X//' >libdvdread-mplayer/files/patch-configure2 << '166f03458169d34a657ef33c3bc86bb2'
X--- configure2.orig	2008-08-31 11:27:37.000000000 +0200
X+++ configure2	2008-10-04 12:41:51.534005961 +0200
X@@ -26,6 +26,7 @@
X   echo "  --help                   print this message"
X   echo "  --prefix=PREFIX          install in PREFIX [$PREFIX]"
X   echo "  --libdir=DIR             install libs in DIR [PREFIX/lib]"
X+  echo "  --libdatadir=DIR         install pkgconfig files in DIR [PREFIX/lib/pkgconfig]"
X   echo "  --shlibdir=DIR           install shared libs in DIR [PREFIX/lib]"
X   echo "  --incdir=DIR             install includes in DIR [PREFIX/include/libdvdread]"
X   echo "  --enable-static          build static libraries [default=yes]"
X@@ -67,6 +68,8 @@
X   ;;
X   --libdir=*) libdir="$optval"
X   ;;
X+  --libdatadir=*) libdatadir="$optval"
X+  ;;
X   --shlibdir=*) shlibdir="$optval"
X   ;;
X   --incdir=*) incdir="$optval"
X@@ -95,8 +98,9 @@
X PREFIX=`cd $PREFIX && pwd`
X 
X test -z "$libdir" && libdir=$PREFIX/lib
X+test -z "$libdatadir" && libdir=$PREFIX/lib/pkgconfig
X test -z "$shlibdir" && shlibdir=$PREFIX/lib
X-test -z "$incdir" && dvdread_incdir=$PREFIX/include/dvdread
X+test -z "$incdir" && incdir=$PREFIX/include/dvdread
X 
X targetos=`uname -s`
X case $targetos in
X@@ -112,9 +116,9 @@
X # Automatically generated by configure, do not edit
X PREFIX=$PREFIX
X libdir=$libdir
X+libdatadir=$libdatadir
X shlibdir=$shlibdir
X incdir=$incdir
X-dvdread_incdir=$dvdread_incdir
X BUILD_SHARED=$SHARED
X BUILD_STATIC=$STATIC
X SHLIB_VERSION=$dvdread_sh_version
166f03458169d34a657ef33c3bc86bb2
echo x - libdvdread-mplayer/pkg-descr
sed 's/^X//' >libdvdread-mplayer/pkg-descr << '1bcb4dedf2bf410e1d86fcdcd9b2288f'
XMplayer version of the libdvdread project.
X
XWWW: http://www.mplayerhq.hu/MPlayer/releases/dvdnav
1bcb4dedf2bf410e1d86fcdcd9b2288f
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list