aboutsummaryrefslogtreecommitdiff
path: root/sysutils/dvdvideo/Makefile
diff options
context:
space:
mode:
authorGanael LAPLANCHE <martymac@FreeBSD.org>2012-02-03 10:26:18 +0000
committerGanael LAPLANCHE <martymac@FreeBSD.org>2012-02-03 10:26:18 +0000
commitc5b623192a7a35844a4f6cbae35ac0274ad9a453 (patch)
treebeef734bd520517ecd2a0e6624675522f5bb9064 /sysutils/dvdvideo/Makefile
parent80206ec0904537c1764c24b1f6db6930e5978809 (diff)
downloadports-c5b623192a7a35844a4f6cbae35ac0274ad9a453.tar.gz
ports-c5b623192a7a35844a4f6cbae35ac0274ad9a453.zip
Notes
Diffstat (limited to 'sysutils/dvdvideo/Makefile')
-rw-r--r--sysutils/dvdvideo/Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/sysutils/dvdvideo/Makefile b/sysutils/dvdvideo/Makefile
new file mode 100644
index 000000000000..b7a55ed02adc
--- /dev/null
+++ b/sysutils/dvdvideo/Makefile
@@ -0,0 +1,47 @@
+# New ports collection makefile for: dvdvideo
+# Date created: 26 Jan 2012
+# Whom: Ganael Laplanche <ganael.laplanche@martymac.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= dvdvideo
+PORTVERSION= 20120126
+PORTREVISION= 1
+CATEGORIES= sysutils multimedia
+MASTER_SITES= http://contribs.martymac.org/FreeBSD-ports/distfiles/ \
+ LOCAL/martymac
+DISTNAME= python-${PORTNAME}-${PORTVERSION}
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= martymac@FreeBSD.org
+COMMENT= Video DVD backup tool
+
+LICENSE= GPLv3
+
+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
+.endif
+
+OPTIONS= DVDCSS "Include libdvdcss support" ${DVDCSS_OPTION}
+
+# DVDCSS version hardcoded in dvdvideo/libdvdcss.py
+DVDCSS_LIBVERSION= 3
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_DVDCSS)
+LIB_DEPENDS+= dvdcss.${DVDCSS_LIBVERSION}:${PORTSDIR}/multimedia/libdvdcss
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -E -e 's|(libdvdcss.so)\.2|\1.${DVDCSS_LIBVERSION}|' \
+ ${WRKSRC}/dvdvideo/libdvdcss.py
+
+.include <bsd.port.post.mk>