ports/111919: [graphics/php4-ffmpeg & graphics/php5-ffmpeg] Add an option to use ffmpeg development version.
Sunpoet Po-Chuan Hsieh
sunpoet at sunpoet.net
Thu Apr 19 20:20:15 UTC 2007
>Number: 111919
>Category: ports
>Synopsis: [graphics/php4-ffmpeg & graphics/php5-ffmpeg] Add an option to use ffmpeg development version.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Apr 19 20:20:13 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Sunpoet Po-Chuan Hsieh
>Release: FreeBSD 6.2-STABLE i386
>Organization:
SUNPOET.net
>Environment:
System: FreeBSD IRIS.sunpoet.net 6.2-STABLE FreeBSD 6.2-STABLE #3: Mon Apr 16 05:38:09 CST 2007 sunpoet at IRIS.sunpoet.net:/usr/obj/usr/src/sys/sunpoet i386
>Description:
graphics/php[45]-ffmpeg depend on ffmpeg by default.
This patch adds an option to use ffmpeg-devel instead.
After applying this patch, it looks like as follows:
% cd /usr/ports/graphics/php5-ffmpeg
% make build-depends-list
/usr/ports/devel/autoconf259
/usr/ports/graphics/gd
/usr/ports/lang/php5
/usr/ports/multimedia/ffmpeg
% make WITH_FFMPEG_DEVEL=yes build-depends-list
/usr/ports/devel/autoconf259
/usr/ports/graphics/gd
/usr/ports/lang/php5
/usr/ports/multimedia/ffmpeg-devel
>How-To-Repeat:
>Fix:
--- /usr/ports/graphics/php4-ffmpeg/Makefile.orig Mon Mar 12 12:55:47 2007
+++ /usr/ports/graphics/php4-ffmpeg/Makefile Fri Apr 20 01:02:49 2007
@@ -18,8 +18,15 @@
MAINTAINER= acm at FreeBSD.org
COMMENT= The ffmpeg shared extension for php
-LIB_DEPENDS= avcodec.1:${PORTSDIR}/multimedia/ffmpeg \
- gd.4:${PORTSDIR}/graphics/gd
+LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd
+
+OPTIONS= FFMPEG_DEVEL "Use ffmpeg development version" off
+
+.if !defined(WITH_FFMPEG_DEVEL)
+LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
+.else
+LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg-devel
+.endif
USE_BZIP2= yes
USE_PHP= yes
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list