2004-04-09 22:16:20 +02:00
|
|
|
# New ports collection makefile for: gstreamer-python
|
|
|
|
# Date created: Fri Apr 9 16:24:13 CEST 2004
|
|
|
|
# Whom: Koop Mast <kwm@rainbow-runner.nl>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2009-01-10 06:22:13 +01:00
|
|
|
# $MCom: ports/multimedia/py-gstreamer/Makefile,v 1.20 2008/07/26 17:21:38 marcus Exp $
|
2004-04-09 22:16:20 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gstreamer
|
2011-02-25 12:05:04 +01:00
|
|
|
PORTVERSION= 0.10.21
|
2004-04-09 22:16:20 +02:00
|
|
|
CATEGORIES= multimedia python gnome
|
2006-04-30 01:03:03 +02:00
|
|
|
MASTER_SITES= http://gstreamer.freedesktop.org/src/gst-python/
|
2004-04-09 22:16:20 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= gst-python-${PORTVERSION}
|
|
|
|
|
2006-06-09 20:00:35 +02:00
|
|
|
MAINTAINER= multimedia@FreeBSD.org
|
2004-04-09 22:16:20 +02:00
|
|
|
COMMENT= A set of Python bindings for gstreamer
|
|
|
|
|
2004-11-20 19:17:25 +01:00
|
|
|
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/libxml2mod.so:${PORTSDIR}/textproc/py-libxml2
|
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/libxml2mod.so:${PORTSDIR}/textproc/py-libxml2
|
|
|
|
|
2010-07-24 18:13:57 +02:00
|
|
|
LICENSE= LGPL21
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2004-04-09 22:16:20 +02:00
|
|
|
USE_PYTHON= yes
|
2005-06-21 22:02:27 +02:00
|
|
|
USE_BZIP2= yes
|
2004-04-09 22:16:20 +02:00
|
|
|
USE_GMAKE= yes
|
2011-02-25 12:05:04 +01:00
|
|
|
USE_GNOME= pygobject gnomehack pkgconfig
|
2005-02-28 23:16:10 +01:00
|
|
|
USE_GSTREAMER= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2008-03-24 04:52:36 +01:00
|
|
|
PLIST_SUB= VERSION="${GST_VERSION}"
|
2009-05-29 22:35:14 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
|
|
|
LDFLAGS="-L${LOCALBASE} ${PTHREAD_LIBS}"
|
2004-04-09 22:16:20 +02:00
|
|
|
|
2004-11-20 19:17:25 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|DLFCN|dl|g' ${WRKSRC}/gst/__init__.py
|
2009-08-05 14:59:53 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|alsasink|osssink|g' -e 's|alsasrc|osssrc|g' \
|
|
|
|
${WRKSRC}/gst/extend/jukebox.py \
|
|
|
|
${WRKSRC}/common/m4/gst-default.m4
|
|
|
|
.for d in audio-controller.py decodebin.py mixer.py vumeter.py
|
|
|
|
@${REINPLACE_CMD} -e 's|alsasink|osssink|g' -e 's|alsasrc|osssrc|g' \
|
2008-03-24 04:52:36 +01:00
|
|
|
${WRKSRC}/examples/${d}
|
|
|
|
.endfor
|
2004-11-20 19:17:25 +01:00
|
|
|
|
2006-10-05 21:29:41 +02:00
|
|
|
post-install:
|
2006-12-16 06:57:03 +01:00
|
|
|
@cd ${PYTHONPREFIX_SITELIBDIR} && ${PYTHON_CMD} -OOOO -c 'import pygst' && \
|
2006-10-21 20:22:57 +02:00
|
|
|
${PYTHON_CMD} -c 'import pygst'
|
2006-10-05 21:29:41 +02:00
|
|
|
|
2004-04-09 22:16:20 +02:00
|
|
|
.include <bsd.port.mk>
|