aboutsummaryrefslogtreecommitdiff
path: root/multimedia/gstreamer-pitfdll/Makefile
blob: dd77216aca197a3e169fcdc09c3606020bc0995a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# New ports collection makefile for:	gstreamer plugins pitfdll
# Date created:		08 Oct 2005
# Whom:			Koop Mast <kwm@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	gstreamer-pitfdll
PORTVERSION=	0.8.2
CATEGORIES=	multimedia
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	pitfdll
DISTNAME=	pitfdll-${PORTVERSION}

MAINTAINER=	kwm@FreeBSD.org
COMMENT=	GStreamer DLL loader plugin

RUN_DEPENDS=	${LOCALBASE}/lib/win32/wmv8ds32.ax:${PORTSDIR}/multimedia/win32-codecs

USE_X_PREFIX=	yes
ONLY_FOR_ARCHS=	i386
USE_BZIP2=	yes
USE_GMAKE=	yes
USE_AUTOTOOLS=	libtool:15
USE_GNOME=	gnometarget
USE_REINPLACE=	yes
USE_GSTREAMER=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"
PLIST_SUB=	VERSION="${GST_VERSION}"

GST_VERSION=	0.8

post-patch:
	@${REINPLACE_CMD} -e 's|/usr/lib/win32|${LOCALBASE}/lib/win32|g' \
		${WRKSRC}/ext/pitfdll/Makefile.in \
		${WRKSRC}/gst-libs/ext/loader/wine/Makefile.in

post-install:
# register plugins
	-@${X11BASE}/bin/gst-register-${GST_VERSION} \
		--gst-registry=${PREFIX}/share/gnome/cache/gstreamer-${GST_VERSION}/registry.xml 2>/dev/null

.include <bsd.port.mk>