aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authormartymac <martymac@FreeBSD.org>2012-06-11 16:06:43 +0800
committermartymac <martymac@FreeBSD.org>2012-06-11 16:06:43 +0800
commit10f4508b1a0131ed3e84b37bedeb3713f1bcb4cb (patch)
treeeee553be947f2ca193bdc2c3909047dd3dd4282c /sysutils
parenta10d8a34026d67849c08a6ed648f552275284f0b (diff)
downloadfreebsd-ports-gnome-10f4508b1a0131ed3e84b37bedeb3713f1bcb4cb.tar.gz
freebsd-ports-gnome-10f4508b1a0131ed3e84b37bedeb3713f1bcb4cb.tar.zst
freebsd-ports-gnome-10f4508b1a0131ed3e84b37bedeb3713f1bcb4cb.zip
- Un-version LIB_DEPENDS
- Switch to OptionsNg
Diffstat (limited to 'sysutils')
-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: