--- Makefile.orig 2012-11-13 08:24:51.000000000 +0100 +++ Makefile 2012-11-13 08:25:23.000000000 +0100 @@ -2,7 +2,7 @@ # $FreeBSD: ports/multimedia/libva-intel-driver/Makefile,v 1.1 2012/10/25 21:06:38 madpilot Exp $ PORTNAME= libva-intel-driver -PORTVERSION= 1.0.18 +PORTVERSION= 1.0.19 CATEGORIES= multimedia MASTER_SITES= http://www.freedesktop.org/software/vaapi/releases/${PORTNAME}/ @@ -18,8 +18,10 @@ USE_GMAKE= yes USE_BZIP2= yes USE_GL= gl +USE_AUTOTOOLS= aclocal autoheader automake autoconf libtoolize +ACLOCAL_ARGS= -I. +AUTOMAKE_ARGS= --add-missing USE_LDCONFIG= yes -GNU_CONFIGURE= yes CPPFLAGS+= -isystem${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib @@ -32,9 +34,9 @@ .endif post-patch: .SILENT - ${REINPLACE_CMD} -e '/LIBS/{ s/-ldl//; \ - s/-lrt//; s/-lpthread/${PTHREAD_LIBS}/; }' \ - -e 's|driverdir|& --define-variable prefix=${PREFIX}|' \ - ${WRKSRC}/configure + ${REINPLACE_CMD} -e 's/-ldl//' \ + ${WRKSRC}/src/Makefile.am + ${REINPLACE_CMD} -e 's|driverdir|& --define-variable prefix=${PREFIX}|' \ + ${WRKSRC}/configure.ac .include