From 516d8475b72d554f975739cf2434161dbd6ab1c8 Mon Sep 17 00:00:00 2001 From: lioux Date: Thu, 18 Apr 2002 17:53:38 +0000 Subject: o Add libdvdcss as a library dependency so that we can properly match libdvdcss version with libdvdread since it depends on matching libdvdcss API o No meaningless overhead since libdvdread automatically uses libdvdcss whether the port has knowledge of it or not. Besides, all ports using libdvdread list libdvdcss as a dependency as well (exception made to xine_d5d_plugin but an updated version will) o Also, it's a 22K overhead o Furthermore, all ports depending on libdvdread SHOULD depend on libdvdcss for obvious reasons Reviewed by: fenner --- multimedia/libdvdread/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'multimedia/libdvdread/Makefile') diff --git a/multimedia/libdvdread/Makefile b/multimedia/libdvdread/Makefile index 756c75ee..10b9572 100644 --- a/multimedia/libdvdread/Makefile +++ b/multimedia/libdvdread/Makefile @@ -7,18 +7,25 @@ PORTNAME= libdvdread PORTVERSION= 0.9.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= graphics MASTER_SITES= http://www.dtek.chalmers.se/groups/dvd/dist/ MAINTAINER= 3d@FreeBSD.org +LIB_DEPENDS= dvdcss.${DVDCSS_LIBVERSION}:${PORTSDIR}/graphics/libdvdcss + GNU_CONFIGURE= yes USE_LIBTOOL= yes INSTALLS_SHLIB= yes DOC_FILES= AUTHORS NEWS README TODO +# ugly hack to have libdvdread directly depend on libdvdcss since +# it already does for practical reasons even though not for compile +# time ones +DVDCSS_LIBVERSION= 2 + # optional CFLAGS safeness .if !defined(WITH_OPTIMIZED_CFLAGS) USE_AUTOCONF= yes @@ -36,7 +43,7 @@ post-patch: s|cd \$$\(srcdir\) && \$$\(ACLOCAL\)|\#|' ${WRKSRC}/${p} .endfor # update this in sync with libdvdcss shared library version - @${PERL} -pi -e 's|(libdvdcss.so).0|\1|' \ + @${PERL} -pi -e 's|(libdvdcss.so).0|\1.${DVDCSS_LIBVERSION}|' \ ${WRKSRC}/dvdread/dvd_reader.c post-configure: -- cgit v1.1