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@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 + +.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 +.include