aboutsummaryrefslogtreecommitdiff
path: root/sysutils/dvdvideo
diff options
context:
space:
mode:
authorGanael LAPLANCHE <martymac@FreeBSD.org>2012-06-11 08:06:43 +0000
committerGanael LAPLANCHE <martymac@FreeBSD.org>2012-06-11 08:06:43 +0000
commit037c066f9e1d24008c6c147e3b5c7abda9876f02 (patch)
tree86a4df653a03e73329ec38c1a4610df1fa497259 /sysutils/dvdvideo
parenta5d54335c2b3da342e18bef282bbe1c12ed10000 (diff)
downloadports-037c066f9e1d24008c6c147e3b5c7abda9876f02.tar.gz
ports-037c066f9e1d24008c6c147e3b5c7abda9876f02.zip
Notes
Diffstat (limited to 'sysutils/dvdvideo')
-rw-r--r--sysutils/dvdvideo/Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/sysutils/dvdvideo/Makefile b/sysutils/dvdvideo/Makefile
index ac298d3a3d80..8e7e8036e7c3 100644
--- a/sysutils/dvdvideo/Makefile
+++ b/sysutils/dvdvideo/Makefile
@@ -7,7 +7,7 @@
PORTNAME= dvdvideo
PORTVERSION= 20120126
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= sysutils multimedia
MASTER_SITES= http://contribs.martymac.org/FreeBSD-ports/distfiles/ \
LOCAL/martymac
@@ -23,14 +23,11 @@ USE_PYTHON= 3.1+
USE_PYDISTUTILS= yes
PYDISTUTILS_EGGINFO= python_dvdvideo-0.1-py${PYTHON_VER}.egg-info
-.if defined(PACKAGE_BUILDING)
-DVDCSS_OPTION= off
-.else
-DVDCSS_OPTION= on
+OPTIONS_DEFINE= DVDCSS
+.if !defined(PACKAGE_BUILDING)
+OPTIONS_DEFAULT= DVDCSS
.endif
-OPTIONS= DVDCSS "Include libdvdcss support" ${DVDCSS_OPTION}
-
# DVDCSS version hardcoded in dvdvideo/libdvdcss.py
DVDCSS_LIBVERSION= 3
@@ -40,8 +37,8 @@ DVDCSS_LIBVERSION= 3
BROKEN= bad plist with latest python
.endif
-.if defined(WITH_DVDCSS)
-LIB_DEPENDS+= dvdcss.${DVDCSS_LIBVERSION}:${PORTSDIR}/multimedia/libdvdcss
+.if ${PORT_OPTIONS:MDVDCSS}
+LIB_DEPENDS+= dvdcss:${PORTSDIR}/multimedia/libdvdcss
.endif
post-patch: