aboutsummaryrefslogtreecommitdiff
path: root/sysutils/py-dvdvideo/Makefile
diff options
context:
space:
mode:
authorGanael LAPLANCHE <martymac@FreeBSD.org>2012-01-30 08:30:39 +0000
committerGanael LAPLANCHE <martymac@FreeBSD.org>2012-01-30 08:30:39 +0000
commitc46b970cf6df3e1d2788d12a93adf3c2e79a7679 (patch)
tree4f706c561903acc3203303973d678fee33f8c999 /sysutils/py-dvdvideo/Makefile
parent47cbd52e1d76ffc1dadd860a6876596cf8177753 (diff)
Notes
Diffstat (limited to 'sysutils/py-dvdvideo/Makefile')
-rw-r--r--sysutils/py-dvdvideo/Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/sysutils/py-dvdvideo/Makefile b/sysutils/py-dvdvideo/Makefile
new file mode 100644
index 000000000000..bcba51c502a9
--- /dev/null
+++ b/sysutils/py-dvdvideo/Makefile
@@ -0,0 +1,47 @@
+# New ports collection makefile for: py-dvdvideo
+# Date created: 26 Jan 2012
+# Whom: Ganael Laplanche <ganael.laplanche@martymac.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= dvdvideo
+PORTVERSION= 20120126
+CATEGORIES= sysutils
+MASTER_SITES= http://contribs.martymac.org/FreeBSD-ports/distfiles/ \
+ LOCAL/martymac
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+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>