# $MidnightBSD: trunk/multimedia/schroedinger/Makefile 18950 2015-05-15 00:46:46Z laffer1 $

PORTNAME=	schroedinger
PORTVERSION=	1.0.11
PORTREVISION=	2
CATEGORIES=	multimedia
MASTER_SITES=	http://diracvideo.org/download/schroedinger/

MAINTAINER=	ports@MidnightBSD.org
COMMENT=	High-speed Dirac codec

LICENSE=	gpl2 lgpl mit mpl
LICENSE_COMB=	dual
LICENSE_FILE_MIT=	${WRKSRC}/COPYING.MIT
LICENSE_FILE_MPL=	${WRKSRC}/COPYING.MPL

LIB_DEPENDS=	liborc-0.4.so:${PORTSDIR}/devel/orc

USES=		libtool pkgconfig
GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip
USE_LDCONFIG=	yes

post-patch:
	@${REINPLACE_CMD} -e 's|^pkgconfigdir=.*|pkgconfigdir="\\$${prefix}/libdata/pkgconfig"|' \
		-e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure

.include <bsd.port.mk>
