Date: Wed, 9 Oct 2013 02:41:00 +0000 (UTC) From: William Grzybowski <wg@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r329855 - head/graphics/php5-ffmpeg Message-ID: <201310090241.r992f0PV048419@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: wg Date: Wed Oct 9 02:41:00 2013 New Revision: 329855 URL: http://svnweb.freebsd.org/changeset/ports/329855 Log: graphics/php5-ffmpeg: link using ffmpeg0 - Link using ffmpeg0 - Convert lib depends to new format Approved by: portmgr (bapt, implicit) Modified: head/graphics/php5-ffmpeg/Makefile Modified: head/graphics/php5-ffmpeg/Makefile ============================================================================== --- head/graphics/php5-ffmpeg/Makefile Wed Oct 9 02:14:33 2013 (r329854) +++ head/graphics/php5-ffmpeg/Makefile Wed Oct 9 02:41:00 2013 (r329855) @@ -3,7 +3,7 @@ PORTNAME= ffmpeg PORTVERSION= 0.6.0 -PORTREVISION= 8 +PORTREVISION= 9 CATEGORIES= graphics MASTER_SITES= SF/${PORTNAME}-php/${PORTNAME}-php/${PORTVERSION} PKGNAMEPREFIX= php5- @@ -13,19 +13,38 @@ EXTRACT_SUFX= .tbz2 MAINTAINER= acm@FreeBSD.org COMMENT= The ffmpeg shared extension for php -LIB_DEPENDS= gd:${PORTSDIR}/graphics/gd \ - avutil.1:${PORTSDIR}/multimedia/ffmpeg +LIB_DEPENDS= libgd.so:${PORTSDIR}/graphics/gd \ + libavutil0.so:${PORTSDIR}/multimedia/ffmpeg0 CFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib/ffmpeg0 USE_BZIP2= yes USE_PHP= yes USE_PHPIZE= yes USE_PHPEXT= yes -CONFIGURE_ARGS+= --with-ffmpeg=${LOCALBASE}/include +CONFIGURE_ARGS+= --with-ffmpeg=${LOCALBASE}/include/ffmpeg0 NO_STAGE= yes post-patch: @${REINPLACE_CMD} -e 's|==|=|g' ${WRKSRC}/config.m4 + @${REINPLACE_CMD} \ + -e 's,<avcodec\.h>,<libavcodec/avcodec\.h>,g' \ + -e 's,<avformat\.h>,<libavformat/avformat\.h>,g' \ + -e 's,<swscale\.h>,<libswscale/swscale\.h>,g' \ + ${WRKSRC}/*.c \ + ${WRKSRC}/*.h + +pre-configure: + @${REINPLACE_CMD} \ + -e 's,lavcodec,lavcodec0,g' \ + -e 's,lavformat,lavformat0,g' \ + -e 's,lavutil,lavutil0,g' \ + -e 's,lswscale,lswscale0,g' \ + ${WRKSRC}/configure + +post-configure: + @${REINPLACE_CMD} -e 's,include/ffmpeg$$,include/ffmpeg0,g' \ + ${WRKSRC}/Makefile .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310090241.r992f0PV048419>