ports/162197: [PATCH] multimedia/libdvdread: add option for libdvdcss

Jimmy Olgeni olgeni at FreeBSD.org
Mon Oct 31 13:50:13 UTC 2011


>Number:         162197
>Category:       ports
>Synopsis:       [PATCH] multimedia/libdvdread: add option for libdvdcss
>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:   Mon Oct 31 13:50:12 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Jimmy Olgeni
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD backoffice 8.2-STABLE FreeBSD 8.2-STABLE #1: Wed Oct 12 21:16:42 CEST 2011
>Description:
Add libdvdcss option, thus allowing tinderbox builds with libdvdcss enabled.

The default behavior was not changed.

Port maintainer (martymac at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- libdvdread-4.1.4.r1219.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/multimedia/libdvdread/Makefile,v
retrieving revision 1.39
diff -u -u -r1.39 Makefile
--- Makefile	3 Dec 2010 13:11:46 -0000	1.39
+++ Makefile	31 Oct 2011 13:44:45 -0000
@@ -22,10 +22,6 @@
 MAINTAINER=	martymac at FreeBSD.org
 COMMENT=	MPlayer version of the libdvdread project
 
-.if !defined(PACKAGE_BUILDING)
-LIB_DEPENDS=	dvdcss.${DVDCSS_LIBVERSION}:${PORTSDIR}/multimedia/libdvdcss
-.endif
-
 LICENSE=	GPLv2
 
 USE_BZIP2=	yes
@@ -42,6 +38,20 @@
 USE_GMAKE=	yes
 USE_LDCONFIG=	yes
 
+.if defined(PACKAGE_BUILDING)
+DVDCSS_OPTION=	off
+.else
+DVDCSS_OPTION=	on
+.endif
+
+OPTIONS=	DVDCSS "Include libdvdcss support" ${DVDCSS_OPTION}
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITH_DVDCSS)
+LIB_DEPENDS=	dvdcss.${DVDCSS_LIBVERSION}:${PORTSDIR}/multimedia/libdvdcss
+.endif
+
 # DVDCSS version hardcoded in src/dvd_input.c (dlopen'ed)
 DVDCSS_LIBVERSION=	3
 
@@ -51,4 +61,4 @@
 	@${REINPLACE_CMD} -E -e 's|(libdvdcss.so)\.2|\1.${DVDCSS_LIBVERSION}|' \
 		${WRKSRC}/src/dvd_input.c
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- libdvdread-4.1.4.r1219.patch ends here ---

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



More information about the freebsd-ports-bugs mailing list