Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Aug 2012 08:33:10 +0000 (UTC)
From:      Martin Matuska <mm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r302427 - in head/multimedia: ffmpeg-011 ffmpeg-011/files ffmpeg-devel ffmpeg-devel/files
Message-ID:  <201208120833.q7C8XA0c056690@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mm
Date: Sun Aug 12 08:33:10 2012
New Revision: 302427
URL: http://svn.freebsd.org/changeset/ports/302427

Log:
  Fix incorrect ffplay in pkg-plist [1]
  Adjust program and library suffixes and pkg-config files
  
  Reported by:	Juergen Lock and Jimmy Olgeny [1]

Added:
  head/multimedia/ffmpeg-011/files/patch-doc-Makefile   (contents, props changed)
  head/multimedia/ffmpeg-devel/files/ffserver-devel.in
     - copied unchanged from r302425, head/multimedia/ffmpeg-devel/files/ffserver-head.in
  head/multimedia/ffmpeg-devel/files/patch-doc-Makefile   (contents, props changed)
Deleted:
  head/multimedia/ffmpeg-devel/files/ffserver-head.in
Modified:
  head/multimedia/ffmpeg-011/Makefile
  head/multimedia/ffmpeg-011/files/patch-configure
  head/multimedia/ffmpeg-011/files/patch-library.mak
  head/multimedia/ffmpeg-011/pkg-plist
  head/multimedia/ffmpeg-devel/Makefile
  head/multimedia/ffmpeg-devel/files/patch-configure
  head/multimedia/ffmpeg-devel/files/patch-library.mak
  head/multimedia/ffmpeg-devel/pkg-plist

Modified: head/multimedia/ffmpeg-011/Makefile
==============================================================================
--- head/multimedia/ffmpeg-011/Makefile	Sun Aug 12 08:21:10 2012	(r302426)
+++ head/multimedia/ffmpeg-011/Makefile	Sun Aug 12 08:33:10 2012	(r302427)
@@ -6,6 +6,7 @@
 
 PORTNAME=	ffmpeg
 PORTVERSION=	0.11.1
+PORTREVISION=	1
 CATEGORIES=	multimedia audio ipv6 net
 MASTER_SITES=	http://ffmpeg.org/releases/
 PKGNAMESUFFIX=	-011
@@ -52,15 +53,11 @@ OPENAL_DESC=	OpenAL 1.1 capture support
 X11GRAB_DESC=	Enable x11 grabbing
 
 FFPROGS=	ffmpeg ffprobe
-FFLIBS=		libavcodec libavdevice libavfilter libavformat \
-		libavutil libpostproc libswresample libswscale
-INSTALL_TARGET=	install-data install-libs install-headers
+INSTALL_TARGET=	install-progs install-data install-libs install-headers
 FFMPEG_SUFFIX=	-011
 PLIST_SUB+=	SUFF="${FFMPEG_SUFFIX}"
 MAN1=		ffmpeg${FFMPEG_SUFFIX}.1 ffprobe${FFMPEG_SUFFIX}.1
 
-SHLIB_VER=	11
-PLIST_SUB+=	SHLIB_VER=${SHLIB_VER}
 USE_LDCONFIG=	${PREFIX}/lib/ffmpeg${FFMPEG_SUFFIX}
 
 .include <bsd.port.options.mk>
@@ -90,6 +87,8 @@ CONFIGURE_ARGS+=--prefix="${PREFIX}" \
 		--libdir="${PREFIX}/lib/ffmpeg${FFMPEG_SUFFIX}" \
 		--shlibdir="${PREFIX}/lib/ffmpeg${FFMPEG_SUFFIX}" \
 		--datadir="${DATADIR}" \
+		--build-suffix="${FFMPEG_SUFFIX}" \
+		--progs-suffix="${FFMPEG_SUFFIX}" \
 		--enable-shared \
 		--enable-gpl \
 		--enable-postproc \
@@ -345,7 +344,7 @@ CONFIGURE_ARGS+=	--disable-libschroeding
 # sdl
 .if ${PORT_OPTIONS:MSDL}
 USE_SDL+=	sdl
-PLIST_FILES+=	bin/ffplay
+PLIST_FILES+=	bin/ffplay${FFMPEG_SUFFIX}
 FFPROGS+=	ffplay
 MAN1+=	ffplay${FFMPEG_SUFFIX}.1
 .if ${PORT_OPTIONS:MDOCS}
@@ -463,7 +462,7 @@ post-patch:
 		s|-pthread|${PTHREAD_LIBS}|g; \
 		s|gsm/gsm.h|gsm.h|g" \
 		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
-	@${REINPLACE_CMD} -e 's|-ldl||; s|$$(LIBMAJOR)|${SHLIB_VER}|g;' \
+	@${REINPLACE_CMD} -e 's|-ldl||' \
 		-e 's|opencv opencv/cxcore.h|opencv-core opencv2/core/core_c.h|g' \
 		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
 	@${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL5}|g' \
@@ -484,18 +483,7 @@ post-configure:
 		${WRKSRC}/config.mak
 .endif
 
-pre-install:
-.for PROG in ${FFPROGS}
-	@${MKDIR} ${PREFIX}/bin
-	${INSTALL_PROGRAM} ${WRKSRC}/${PROG} ${PREFIX}/bin/${PROG}${FFMPEG_SUFFIX}
-.endfor
-
 post-install:
-.for LIB in ${FFLIBS}
-	@${MKDIR} ${PREFIX}/libdata/pkgconfig
-	@${INSTALL_DATA} ${WRKSRC}/${LIB}/${LIB}.pc \
-		${PREFIX}/libdata/pkgconfig/${LIB}${FFMPEG_SUFFIX}.pc
-.endfor
 .for PROG in ${FFPROGS}
 	@${MKDIR} ${MAN1PREFIX}/man/man1
 	${INSTALL_MAN} ${WRKSRC}/doc/${PROG}.1 ${MAN1PREFIX}/man/man1/${PROG}${FFMPEG_SUFFIX}.1

Modified: head/multimedia/ffmpeg-011/files/patch-configure
==============================================================================
--- head/multimedia/ffmpeg-011/files/patch-configure	Sun Aug 12 08:21:10 2012	(r302426)
+++ head/multimedia/ffmpeg-011/files/patch-configure	Sun Aug 12 08:33:10 2012	(r302427)
@@ -1,6 +1,6 @@
---- configure.orig	2012-01-22 14:41:15.000000000 +0100
-+++ configure	2012-01-22 16:05:39.961156595 +0100
-@@ -1806,7 +1806,7 @@
+--- configure.orig	2012-06-07 23:01:19.000000000 +0200
++++ configure	2012-08-12 09:42:57.454507301 +0200
+@@ -1860,7 +1860,7 @@
  nogas=":"
  
  # machine
@@ -9,7 +9,7 @@
  cpu="generic"
  
  # OS
-@@ -3176,10 +3176,10 @@
+@@ -3286,10 +3286,10 @@
  texi2html -version > /dev/null 2>&1 && enable texi2html || disable texi2html
  makeinfo --version > /dev/null 2>&1 && enable makeinfo  || disable makeinfo
  
@@ -24,7 +24,7 @@
  
  check_header sys/videoio.h
  
-@@ -3517,7 +3517,7 @@
+@@ -3659,7 +3659,7 @@
  SRC_PATH:=\$(SRC_PATH:.%=..%)
  endif
  CC_IDENT=$cc_ident
@@ -33,3 +33,63 @@
  CC=$cc
  CXX=$cxx
  AS=$as
+@@ -3839,13 +3839,13 @@
+ requires=$5
+ enabled ${name#lib} || return 0
+ mkdir -p $name
+-cat <<EOF > $name/$name.pc
++cat <<EOF > $name/${name}${build_suffix}.pc
+ prefix=$prefix
+ exec_prefix=\${prefix}
+ libdir=$libdir
+ includedir=$incdir
+ 
+-Name: $name
++Name: ${name}${build_suffix}
+ Description: $comment
+ Version: $version
+ Requires: $(enabled shared || echo $requires)
+@@ -3855,7 +3855,7 @@
+ Libs.private: $(enabled shared && echo $libs)
+ Cflags: -I\${includedir}
+ EOF
+-cat <<EOF > $name/$name-uninstalled.pc
++cat <<EOF > $name/${name}${build_suffix}-uninstalled.pc
+ prefix=
+ exec_prefix=
+ libdir=\${pcfiledir}
+@@ -3872,22 +3872,22 @@
+ }
+ 
+ libavfilter_pc_deps=""
+-enabled libavfilter_deps_avcodec    && prepend libavfilter_pc_deps "libavcodec = $LIBAVCODEC_VERSION,"
+-enabled libavfilter_deps_avformat   && prepend libavfilter_pc_deps "libavformat = $LIBAVFORMAT_VERSION,"
+-enabled libavfilter_deps_swscale    && prepend libavfilter_pc_deps "libswscale = $LIBSWSCALE_VERSION,"
+-enabled libavfilter_deps_swresample && prepend libavfilter_pc_deps "libswresample = $LIBSWRESAMPLE_VERSION,"
+-enabled libavfilter_deps_postproc   && prepend libavfilter_pc_deps "libpostproc = $LIBPOSTPROC_VERSION,"
++enabled libavfilter_deps_avcodec    && prepend libavfilter_pc_deps "libavcodec${build_suffix} = $LIBAVCODEC_VERSION,"
++enabled libavfilter_deps_avformat   && prepend libavfilter_pc_deps "libavformat${build_suffix} = $LIBAVFORMAT_VERSION,"
++enabled libavfilter_deps_swscale    && prepend libavfilter_pc_deps "libswscale${build_suffix} = $LIBSWSCALE_VERSION,"
++enabled libavfilter_deps_swresample && prepend libavfilter_pc_deps "libswresample${build_suffix} = $LIBSWRESAMPLE_VERSION,"
++enabled libavfilter_deps_postproc   && prepend libavfilter_pc_deps "libpostproc${build_suffix} = $LIBPOSTPROC_VERSION,"
+ libavfilter_pc_deps=${libavfilter_pc_deps%, }
+ 
+-libavdevice_pc_deps="libavformat = $LIBAVFORMAT_VERSION"
+-enabled lavfi_indev && prepend libavdevice_pc_deps "libavfilter = $LIBAVFILTER_VERSION,"
++libavdevice_pc_deps="libavformat${build_suffix} = $LIBAVFORMAT_VERSION"
++enabled lavfi_indev && prepend libavdevice_pc_deps "libavfilter${build_suffix} = $LIBAVFILTER_VERSION,"
+ 
+ pkgconfig_generate libavutil "FFmpeg utility library" "$LIBAVUTIL_VERSION" "$LIBM"
+-pkgconfig_generate libavcodec "FFmpeg codec library" "$LIBAVCODEC_VERSION" "$extralibs" "libavutil = $LIBAVUTIL_VERSION"
+-pkgconfig_generate libavformat "FFmpeg container format library" "$LIBAVFORMAT_VERSION" "$extralibs" "libavcodec = $LIBAVCODEC_VERSION"
++pkgconfig_generate libavcodec "FFmpeg codec library" "$LIBAVCODEC_VERSION" "$extralibs" "libavutil${build_suffix} = $LIBAVUTIL_VERSION"
++pkgconfig_generate libavformat "FFmpeg container format library" "$LIBAVFORMAT_VERSION" "$extralibs" "libavcodec${build_suffix} = $LIBAVCODEC_VERSION"
+ pkgconfig_generate libavdevice "FFmpeg device handling library" "$LIBAVDEVICE_VERSION" "$extralibs" "$libavdevice_pc_deps"
+ pkgconfig_generate libavfilter "FFmpeg video filtering library" "$LIBAVFILTER_VERSION" "$extralibs" "$libavfilter_pc_deps"
+-pkgconfig_generate libpostproc "FFmpeg postprocessing library" "$LIBPOSTPROC_VERSION" "" "libavutil = $LIBAVUTIL_VERSION"
++pkgconfig_generate libpostproc "FFmpeg postprocessing library" "$LIBPOSTPROC_VERSION" "" "libavutil${build_suffix} = $LIBAVUTIL_VERSION"
+ pkgconfig_generate libavresample "Libav audio resampling library" "$LIBAVRESAMPLE_VERSION" "$extralibs"
+-pkgconfig_generate libswscale "FFmpeg image rescaling library" "$LIBSWSCALE_VERSION" "$LIBM" "libavutil = $LIBAVUTIL_VERSION"
+-pkgconfig_generate libswresample "FFmpeg audio rescaling library" "$LIBSWRESAMPLE_VERSION" "$LIBM" "libavutil = $LIBAVUTIL_VERSION"
++pkgconfig_generate libswscale "FFmpeg image rescaling library" "$LIBSWSCALE_VERSION" "$LIBM" "libavutil${build_suffix} = $LIBAVUTIL_VERSION"
++pkgconfig_generate libswresample "FFmpeg audio rescaling library" "$LIBSWRESAMPLE_VERSION" "$LIBM" "libavutil${build_suffix} = $LIBAVUTIL_VERSION"

Added: head/multimedia/ffmpeg-011/files/patch-doc-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/ffmpeg-011/files/patch-doc-Makefile	Sun Aug 12 08:33:10 2012	(r302427)
@@ -0,0 +1,11 @@
+--- doc/Makefile.orig	2012-08-12 09:52:01.464511585 +0200
++++ doc/Makefile	2012-08-12 09:52:10.248048618 +0200
+@@ -54,7 +54,7 @@
+ 
+ $(DOCS): | doc/
+ 
+-install-progs-$(CONFIG_DOC): install-man
++#install-progs-$(CONFIG_DOC): install-man
+ 
+ install-man: $(MANPAGES)
+ 	$(Q)mkdir -p "$(MANDIR)/man1"

Modified: head/multimedia/ffmpeg-011/files/patch-library.mak
==============================================================================
--- head/multimedia/ffmpeg-011/files/patch-library.mak	Sun Aug 12 08:21:10 2012	(r302426)
+++ head/multimedia/ffmpeg-011/files/patch-library.mak	Sun Aug 12 08:33:10 2012	(r302427)
@@ -1,14 +1,24 @@
---- library.mak.orig	2012-08-06 10:08:41.247506447 +0200
-+++ library.mak	2012-08-06 10:09:53.263505539 +0200
-@@ -76,8 +76,8 @@
+--- library.mak.orig	2012-05-25 20:02:16.000000000 +0200
++++ library.mak	2012-08-12 09:31:55.551526509 +0200
+@@ -74,9 +74,9 @@
  	$(Q)mkdir -p "$(INCINSTDIR)"
  	$$(INSTALL) -m 644 $$^ "$(INCINSTDIR)"
  
- install-lib$(NAME)-pkgconfig: $(SUBDIR)lib$(NAME).pc
+-install-lib$(NAME)-pkgconfig: $(SUBDIR)lib$(NAME).pc
 -	$(Q)mkdir -p "$(LIBDIR)/pkgconfig"
 -	$$(INSTALL) -m 644 $$^ "$(LIBDIR)/pkgconfig"
-+#	$(Q)mkdir -p "$(LIBDIR)/pkgconfig"
-+#	$$(INSTALL) -m 644 $$^ "$(LIBDIR)/pkgconfig"
++install-lib$(NAME)-pkgconfig: $(SUBDIR)lib$(NAME)$(BUILDSUF).pc
++	$(Q)mkdir -p "$(prefix)/libdata/pkgconfig"
++	$$(INSTALL) -m 644 $$^ "$(prefix)/libdata/pkgconfig"
  
  uninstall-libs::
  	-$(RM) "$(SHLIBDIR)/$(SLIBNAME_WITH_MAJOR)" \
+@@ -88,7 +88,7 @@
+ 
+ uninstall-headers::
+ 	$(RM) $(addprefix "$(INCINSTDIR)/",$(HEADERS)) $(addprefix "$(INCINSTDIR)/",$(BUILT_HEADERS))
+-	$(RM) "$(LIBDIR)/pkgconfig/lib$(NAME).pc"
++	$(RM) "$(prefix)/libdata/pkgconfig/lib$(NAME).pc"
+ 	-rmdir "$(INCINSTDIR)"
+ endef
+ 

Modified: head/multimedia/ffmpeg-011/pkg-plist
==============================================================================
--- head/multimedia/ffmpeg-011/pkg-plist	Sun Aug 12 08:21:10 2012	(r302426)
+++ head/multimedia/ffmpeg-011/pkg-plist	Sun Aug 12 08:33:10 2012	(r302427)
@@ -67,38 +67,38 @@ include/ffmpeg%%SUFF%%/libavutil/timesta
 include/ffmpeg%%SUFF%%/libpostproc/postprocess.h
 include/ffmpeg%%SUFF%%/libswresample/swresample.h
 include/ffmpeg%%SUFF%%/libswscale/swscale.h
-lib/ffmpeg%%SUFF%%/libavcodec.a
-lib/ffmpeg%%SUFF%%/libavcodec.so
-lib/ffmpeg%%SUFF%%/libavcodec.so.%%SHLIB_VER%%
-lib/ffmpeg%%SUFF%%/libavcodec.so.54.23.100
-lib/ffmpeg%%SUFF%%/libavdevice.a
-lib/ffmpeg%%SUFF%%/libavdevice.so
-lib/ffmpeg%%SUFF%%/libavdevice.so.%%SHLIB_VER%%
-lib/ffmpeg%%SUFF%%/libavdevice.so.54.0.100
-lib/ffmpeg%%SUFF%%/libavfilter.a
-lib/ffmpeg%%SUFF%%/libavfilter.so
-lib/ffmpeg%%SUFF%%/libavfilter.so.%%SHLIB_VER%%
-lib/ffmpeg%%SUFF%%/libavfilter.so.2.77.100
-lib/ffmpeg%%SUFF%%/libavformat.a
-lib/ffmpeg%%SUFF%%/libavformat.so
-lib/ffmpeg%%SUFF%%/libavformat.so.%%SHLIB_VER%%
-lib/ffmpeg%%SUFF%%/libavformat.so.54.6.100
-lib/ffmpeg%%SUFF%%/libavutil.a
-lib/ffmpeg%%SUFF%%/libavutil.so
-lib/ffmpeg%%SUFF%%/libavutil.so.%%SHLIB_VER%%
-lib/ffmpeg%%SUFF%%/libavutil.so.51.54.100
-lib/ffmpeg%%SUFF%%/libpostproc.a
-lib/ffmpeg%%SUFF%%/libpostproc.so
-lib/ffmpeg%%SUFF%%/libpostproc.so.%%SHLIB_VER%%
-lib/ffmpeg%%SUFF%%/libpostproc.so.52.0.100
-lib/ffmpeg%%SUFF%%/libswresample.a
-lib/ffmpeg%%SUFF%%/libswresample.so
-lib/ffmpeg%%SUFF%%/libswresample.so.%%SHLIB_VER%%
-lib/ffmpeg%%SUFF%%/libswresample.so.0.15.100
-lib/ffmpeg%%SUFF%%/libswscale.a
-lib/ffmpeg%%SUFF%%/libswscale.so
-lib/ffmpeg%%SUFF%%/libswscale.so.%%SHLIB_VER%%
-lib/ffmpeg%%SUFF%%/libswscale.so.2.1.100
+lib/ffmpeg%%SUFF%%/libavcodec%%SUFF%%.a
+lib/ffmpeg%%SUFF%%/libavcodec%%SUFF%%.so
+lib/ffmpeg%%SUFF%%/libavcodec%%SUFF%%.so.54
+lib/ffmpeg%%SUFF%%/libavcodec%%SUFF%%.so.54.23.100
+lib/ffmpeg%%SUFF%%/libavdevice%%SUFF%%.a
+lib/ffmpeg%%SUFF%%/libavdevice%%SUFF%%.so
+lib/ffmpeg%%SUFF%%/libavdevice%%SUFF%%.so.54
+lib/ffmpeg%%SUFF%%/libavdevice%%SUFF%%.so.54.0.100
+lib/ffmpeg%%SUFF%%/libavfilter%%SUFF%%.a
+lib/ffmpeg%%SUFF%%/libavfilter%%SUFF%%.so
+lib/ffmpeg%%SUFF%%/libavfilter%%SUFF%%.so.2
+lib/ffmpeg%%SUFF%%/libavfilter%%SUFF%%.so.2.77.100
+lib/ffmpeg%%SUFF%%/libavformat%%SUFF%%.a
+lib/ffmpeg%%SUFF%%/libavformat%%SUFF%%.so
+lib/ffmpeg%%SUFF%%/libavformat%%SUFF%%.so.54
+lib/ffmpeg%%SUFF%%/libavformat%%SUFF%%.so.54.6.100
+lib/ffmpeg%%SUFF%%/libavutil%%SUFF%%.a
+lib/ffmpeg%%SUFF%%/libavutil%%SUFF%%.so
+lib/ffmpeg%%SUFF%%/libavutil%%SUFF%%.so.51
+lib/ffmpeg%%SUFF%%/libavutil%%SUFF%%.so.51.54.100
+lib/ffmpeg%%SUFF%%/libpostproc%%SUFF%%.a
+lib/ffmpeg%%SUFF%%/libpostproc%%SUFF%%.so
+lib/ffmpeg%%SUFF%%/libpostproc%%SUFF%%.so.52
+lib/ffmpeg%%SUFF%%/libpostproc%%SUFF%%.so.52.0.100
+lib/ffmpeg%%SUFF%%/libswresample%%SUFF%%.a
+lib/ffmpeg%%SUFF%%/libswresample%%SUFF%%.so
+lib/ffmpeg%%SUFF%%/libswresample%%SUFF%%.so.0
+lib/ffmpeg%%SUFF%%/libswresample%%SUFF%%.so.0.15.100
+lib/ffmpeg%%SUFF%%/libswscale%%SUFF%%.a
+lib/ffmpeg%%SUFF%%/libswscale%%SUFF%%.so
+lib/ffmpeg%%SUFF%%/libswscale%%SUFF%%.so.2
+lib/ffmpeg%%SUFF%%/libswscale%%SUFF%%.so.2.1.100
 libdata/pkgconfig/libavcodec%%SUFF%%.pc
 libdata/pkgconfig/libavdevice%%SUFF%%.pc
 libdata/pkgconfig/libavfilter%%SUFF%%.pc

Modified: head/multimedia/ffmpeg-devel/Makefile
==============================================================================
--- head/multimedia/ffmpeg-devel/Makefile	Sun Aug 12 08:21:10 2012	(r302426)
+++ head/multimedia/ffmpeg-devel/Makefile	Sun Aug 12 08:33:10 2012	(r302427)
@@ -25,9 +25,7 @@ BUILD_DEPENDS=	yasm:${PORTSDIR}/devel/ya
 		${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils \
 		texi2html:${PORTSDIR}/textproc/texi2html
 
-CONFLICTS=	ffmpeg-0.7*
-
-LATEST_LINK=	ffmpeg-devel
+LATEST_LINK=	ffmpeg${PKGNAMESUFFIX}
 
 GIT_SNAPSHOT=	388243bb27f3d9b8f50d54268a784d55a7171f10
 GIT_SUFFIX=	${GIT_SNAPSHOT:C/^(.......).*$/\1/g}
@@ -62,16 +60,13 @@ OPENAL_DESC=	OpenAL 1.1 capture support
 X11GRAB_DESC=	Enable x11 grabbing
 
 FFPROGS=	ffmpeg ffprobe
-FFLIBS=		libavcodec libavdevice libavfilter libavformat \
-		libavutil libpostproc libswresample libswscale
-INSTALL_TARGET=	install-data install-libs install-headers
-FFMPEG_SUFFIX=	-head
+INSTALL_TARGET=	install-progs install-data install-libs install-headers
+FFMPEG_SUFFIX=	-devel
 PLIST_SUB+=	SUFF="${FFMPEG_SUFFIX}"
 MAN1=		ffmpeg${FFMPEG_SUFFIX}.1 ffprobe${FFMPEG_SUFFIX}.1
 
-SHLIB_VER=	99
-PLIST_SUB+=	SHLIB_VER=${SHLIB_VER}
 USE_LDCONFIG=	${PREFIX}/lib/ffmpeg${FFMPEG_SUFFIX}
+DATADIR=	${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX}
 
 .include <bsd.port.options.mk>
 
@@ -100,6 +95,8 @@ CONFIGURE_ARGS+=--prefix="${PREFIX}" \
 		--libdir="${PREFIX}/lib/ffmpeg${FFMPEG_SUFFIX}" \
 		--shlibdir="${PREFIX}/lib/ffmpeg${FFMPEG_SUFFIX}" \
 		--datadir="${DATADIR}" \
+		--build-suffix="${FFMPEG_SUFFIX}" \
+		--progs-suffix="${FFMPEG_SUFFIX}" \
 		--enable-shared \
 		--enable-gpl \
 		--enable-postproc \
@@ -364,7 +361,7 @@ CONFIGURE_ARGS+=	--disable-libschroeding
 # sdl
 .if ${PORT_OPTIONS:MSDL}
 USE_SDL+=	sdl
-PLIST_FILES+=	bin/ffplay
+PLIST_FILES+=	bin/ffplay${FFMPEG_SUFFIX}
 FFPROGS+=	ffplay
 MAN1+=	ffplay${FFMPEG_SUFFIX}.1
 .if ${PORT_OPTIONS:MDOCS}
@@ -487,7 +484,7 @@ post-patch:
 		s|-pthread|${PTHREAD_LIBS}|g; \
 		s|gsm/gsm.h|gsm.h|g" \
 		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
-	@${REINPLACE_CMD} -e 's|-ldl||; s|$$(LIBMAJOR)|${SHLIB_VER}|g;' \
+	@${REINPLACE_CMD} -e 's|-ldl||' \
 		-e 's|opencv opencv/cxcore.h|opencv-core opencv2/core/core_c.h|g' \
 		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
 	@${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL5}|g' \
@@ -508,18 +505,7 @@ post-configure:
 		${WRKSRC}/config.mak
 .endif
 
-pre-install:
-.for PROG in ${FFPROGS}
-	@${MKDIR} ${PREFIX}/bin
-	${INSTALL_PROGRAM} ${WRKSRC}/${PROG} ${PREFIX}/bin/${PROG}${FFMPEG_SUFFIX}
-.endfor
-
 post-install:
-.for LIB in ${FFLIBS}
-	@${MKDIR} ${PREFIX}/libdata/pkgconfig
-	@${INSTALL_DATA} ${WRKSRC}/${LIB}/${LIB}.pc \
-		${PREFIX}/libdata/pkgconfig/${LIB}${FFMPEG_SUFFIX}.pc
-.endfor
 .for PROG in ${FFPROGS}
 	@${MKDIR} ${MAN1PREFIX}/man/man1
 	${INSTALL_MAN} ${WRKSRC}/doc/${PROG}.1 ${MAN1PREFIX}/man/man1/${PROG}${FFMPEG_SUFFIX}.1

Copied: head/multimedia/ffmpeg-devel/files/ffserver-devel.in (from r302425, head/multimedia/ffmpeg-devel/files/ffserver-head.in)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/ffmpeg-devel/files/ffserver-devel.in	Sun Aug 12 08:33:10 2012	(r302427, copy of r302425, head/multimedia/ffmpeg-devel/files/ffserver-head.in)
@@ -0,0 +1,26 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: ffserver-head
+# REQUIRE: NETWORKING
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable ffserver:
+#
+#ffserver_head_enable="YES"
+#
+ffserver_head_enable="${ffserver_head_enable-NO}"
+
+. /etc/rc.subr
+
+name=ffserver_head
+rcvar=ffserver_head_enable
+
+command="%%PREFIX%%/bin/${name} &"
+required_files=%%PREFIX%%/etc/ffserver-head.conf
+
+load_rc_config ${name}
+run_rc_command "$1"

Modified: head/multimedia/ffmpeg-devel/files/patch-configure
==============================================================================
--- head/multimedia/ffmpeg-devel/files/patch-configure	Sun Aug 12 08:21:10 2012	(r302426)
+++ head/multimedia/ffmpeg-devel/files/patch-configure	Sun Aug 12 08:33:10 2012	(r302427)
@@ -1,6 +1,6 @@
---- configure.orig	2012-01-22 14:41:15.000000000 +0100
-+++ configure	2012-01-22 16:05:39.961156595 +0100
-@@ -1806,7 +1806,7 @@
+--- configure.orig	2012-08-06 10:06:26.000000000 +0200
++++ configure	2012-08-12 09:48:55.838509614 +0200
+@@ -1924,7 +1924,7 @@
  nogas=":"
  
  # machine
@@ -9,9 +9,9 @@
  cpu="generic"
  
  # OS
-@@ -3176,10 +3176,10 @@
- texi2html -version > /dev/null 2>&1 && enable texi2html || disable texi2html
+@@ -3506,10 +3506,10 @@
  makeinfo --version > /dev/null 2>&1 && enable makeinfo  || disable makeinfo
+ pod2man --help > /dev/null 2>&1 && enable pod2man || disable pod2man
  
 -check_header linux/fb.h
 -check_header linux/videodev.h
@@ -24,7 +24,7 @@
  
  check_header sys/videoio.h
  
-@@ -3517,7 +3517,7 @@
+@@ -3897,7 +3897,7 @@
  SRC_PATH:=\$(SRC_PATH:.%=..%)
  endif
  CC_IDENT=$cc_ident
@@ -33,3 +33,63 @@
  CC=$cc
  CXX=$cxx
  AS=$as
+@@ -4093,13 +4093,13 @@
+ requires=$5
+ enabled ${name#lib} || return 0
+ mkdir -p $name
+-cat <<EOF > $name/$name.pc
++cat <<EOF > $name/${name}${build_suffix}.pc
+ prefix=$prefix
+ exec_prefix=\${prefix}
+ libdir=$libdir
+ includedir=$incdir
+ 
+-Name: $name
++Name: ${name}${build_suffix}
+ Description: $comment
+ Version: $version
+ Requires: $(enabled shared || echo $requires)
+@@ -4113,7 +4113,7 @@
+ mkdir -p doc/examples/pc-uninstalled
+ includedir=${source_path}
+ [ "$includedir" = . ] && includedir="\${pcfiledir}/../../.."
+-cat <<EOF > doc/examples/pc-uninstalled/$name.pc
++cat <<EOF > doc/examples/pc-uninstalled/${name}${build_suffix}.pc
+ prefix=
+ exec_prefix=
+ libdir=\${pcfiledir}/../../../$name
+@@ -4130,22 +4130,22 @@
+ }
+ 
+ libavfilter_pc_deps=""
+-enabled libavfilter_deps_avcodec    && prepend libavfilter_pc_deps "libavcodec = $LIBAVCODEC_VERSION,"
+-enabled libavfilter_deps_avformat   && prepend libavfilter_pc_deps "libavformat = $LIBAVFORMAT_VERSION,"
+-enabled libavfilter_deps_swscale    && prepend libavfilter_pc_deps "libswscale = $LIBSWSCALE_VERSION,"
+-enabled libavfilter_deps_swresample && prepend libavfilter_pc_deps "libswresample = $LIBSWRESAMPLE_VERSION,"
+-enabled libavfilter_deps_postproc   && prepend libavfilter_pc_deps "libpostproc = $LIBPOSTPROC_VERSION,"
++enabled libavfilter_deps_avcodec    && prepend libavfilter_pc_deps "libavcodec${build_suffix} = $LIBAVCODEC_VERSION,"
++enabled libavfilter_deps_avformat   && prepend libavfilter_pc_deps "libavformat${build_suffix} = $LIBAVFORMAT_VERSION,"
++enabled libavfilter_deps_swscale    && prepend libavfilter_pc_deps "libswscale${build_suffix} = $LIBSWSCALE_VERSION,"
++enabled libavfilter_deps_swresample && prepend libavfilter_pc_deps "libswresample${build_suffix} = $LIBSWRESAMPLE_VERSION,"
++enabled libavfilter_deps_postproc   && prepend libavfilter_pc_deps "libpostproc${build_suffix} = $LIBPOSTPROC_VERSION,"
+ libavfilter_pc_deps=${libavfilter_pc_deps%, }
+ 
+-libavdevice_pc_deps="libavformat = $LIBAVFORMAT_VERSION"
+-enabled lavfi_indev && prepend libavdevice_pc_deps "libavfilter = $LIBAVFILTER_VERSION,"
++libavdevice_pc_deps="libavformat${build_suffix} = $LIBAVFORMAT_VERSION"
++enabled lavfi_indev && prepend libavdevice_pc_deps "libavfilter${build_suffix} = $LIBAVFILTER_VERSION,"
+ 
+ pkgconfig_generate libavutil "FFmpeg utility library" "$LIBAVUTIL_VERSION" "$LIBM"
+-pkgconfig_generate libavcodec "FFmpeg codec library" "$LIBAVCODEC_VERSION" "$extralibs" "libavutil = $LIBAVUTIL_VERSION"
+-pkgconfig_generate libavformat "FFmpeg container format library" "$LIBAVFORMAT_VERSION" "$extralibs" "libavcodec = $LIBAVCODEC_VERSION"
++pkgconfig_generate libavcodec "FFmpeg codec library" "$LIBAVCODEC_VERSION" "$extralibs" "libavutil${build_suffix} = $LIBAVUTIL_VERSION"
++pkgconfig_generate libavformat "FFmpeg container format library" "$LIBAVFORMAT_VERSION" "$extralibs" "libavcodec${build_suffix} = $LIBAVCODEC_VERSION"
+ pkgconfig_generate libavdevice "FFmpeg device handling library" "$LIBAVDEVICE_VERSION" "$extralibs" "$libavdevice_pc_deps"
+ pkgconfig_generate libavfilter "FFmpeg video filtering library" "$LIBAVFILTER_VERSION" "$extralibs" "$libavfilter_pc_deps"
+-pkgconfig_generate libpostproc "FFmpeg postprocessing library" "$LIBPOSTPROC_VERSION" "" "libavutil = $LIBAVUTIL_VERSION"
++pkgconfig_generate libpostproc "FFmpeg postprocessing library" "$LIBPOSTPROC_VERSION" "" "libavutil${build_suffix} = $LIBAVUTIL_VERSION"
+ pkgconfig_generate libavresample "Libav audio resampling library" "$LIBAVRESAMPLE_VERSION" "$extralibs"
+-pkgconfig_generate libswscale "FFmpeg image rescaling library" "$LIBSWSCALE_VERSION" "$LIBM" "libavutil = $LIBAVUTIL_VERSION"
+-pkgconfig_generate libswresample "FFmpeg audio rescaling library" "$LIBSWRESAMPLE_VERSION" "$LIBM" "libavutil = $LIBAVUTIL_VERSION"
++pkgconfig_generate libswscale "FFmpeg image rescaling library" "$LIBSWSCALE_VERSION" "$LIBM" "libavutil${build_suffix} = $LIBAVUTIL_VERSION"
++pkgconfig_generate libswresample "FFmpeg audio rescaling library" "$LIBSWRESAMPLE_VERSION" "$LIBM" "libavutil${build_suffix} = $LIBAVUTIL_VERSION"

Added: head/multimedia/ffmpeg-devel/files/patch-doc-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/ffmpeg-devel/files/patch-doc-Makefile	Sun Aug 12 08:33:10 2012	(r302427)
@@ -0,0 +1,11 @@
+--- doc/Makefile.orig	2012-08-06 10:06:26.000000000 +0200
++++ doc/Makefile	2012-08-12 09:53:14.566506176 +0200
+@@ -54,7 +54,7 @@
+ install-man:
+ 
+ ifdef HAVE_POD2MAN
+-install-progs-$(CONFIG_DOC): install-man
++#install-progs-$(CONFIG_DOC): install-man
+ 
+ install-man: $(MANPAGES)
+ 	$(Q)mkdir -p "$(MANDIR)/man1"

Modified: head/multimedia/ffmpeg-devel/files/patch-library.mak
==============================================================================
--- head/multimedia/ffmpeg-devel/files/patch-library.mak	Sun Aug 12 08:21:10 2012	(r302426)
+++ head/multimedia/ffmpeg-devel/files/patch-library.mak	Sun Aug 12 08:33:10 2012	(r302427)
@@ -1,14 +1,24 @@
---- library.mak.orig	2012-08-06 10:08:41.247506447 +0200
-+++ library.mak	2012-08-06 10:09:53.263505539 +0200
-@@ -76,8 +76,8 @@
+--- library.mak.orig	2012-05-25 20:02:16.000000000 +0200
++++ library.mak	2012-08-12 09:31:55.551526509 +0200
+@@ -74,9 +74,9 @@
  	$(Q)mkdir -p "$(INCINSTDIR)"
  	$$(INSTALL) -m 644 $$^ "$(INCINSTDIR)"
  
- install-lib$(NAME)-pkgconfig: $(SUBDIR)lib$(NAME).pc
+-install-lib$(NAME)-pkgconfig: $(SUBDIR)lib$(NAME).pc
 -	$(Q)mkdir -p "$(LIBDIR)/pkgconfig"
 -	$$(INSTALL) -m 644 $$^ "$(LIBDIR)/pkgconfig"
-+#	$(Q)mkdir -p "$(LIBDIR)/pkgconfig"
-+#	$$(INSTALL) -m 644 $$^ "$(LIBDIR)/pkgconfig"
++install-lib$(NAME)-pkgconfig: $(SUBDIR)lib$(NAME)$(BUILDSUF).pc
++	$(Q)mkdir -p "$(prefix)/libdata/pkgconfig"
++	$$(INSTALL) -m 644 $$^ "$(prefix)/libdata/pkgconfig"
  
  uninstall-libs::
  	-$(RM) "$(SHLIBDIR)/$(SLIBNAME_WITH_MAJOR)" \
+@@ -88,7 +88,7 @@
+ 
+ uninstall-headers::
+ 	$(RM) $(addprefix "$(INCINSTDIR)/",$(HEADERS)) $(addprefix "$(INCINSTDIR)/",$(BUILT_HEADERS))
+-	$(RM) "$(LIBDIR)/pkgconfig/lib$(NAME).pc"
++	$(RM) "$(prefix)/libdata/pkgconfig/lib$(NAME).pc"
+ 	-rmdir "$(INCINSTDIR)"
+ endef
+ 

Modified: head/multimedia/ffmpeg-devel/pkg-plist
==============================================================================
--- head/multimedia/ffmpeg-devel/pkg-plist	Sun Aug 12 08:21:10 2012	(r302426)
+++ head/multimedia/ffmpeg-devel/pkg-plist	Sun Aug 12 08:33:10 2012	(r302427)
@@ -72,38 +72,38 @@ include/ffmpeg%%SUFF%%/libpostproc/postp
 include/ffmpeg%%SUFF%%/libswresample/swresample.h
 include/ffmpeg%%SUFF%%/libswscale/swscale.h
 include/ffmpeg%%SUFF%%/libswscale/version.h
-lib/ffmpeg%%SUFF%%/libavcodec.a
-lib/ffmpeg%%SUFF%%/libavcodec.so
-lib/ffmpeg%%SUFF%%/libavcodec.so.%%SHLIB_VER%%
-lib/ffmpeg%%SUFF%%/libavcodec.so.54.49.100
-lib/ffmpeg%%SUFF%%/libavdevice.a
-lib/ffmpeg%%SUFF%%/libavdevice.so
-lib/ffmpeg%%SUFF%%/libavdevice.so.%%SHLIB_VER%%
-lib/ffmpeg%%SUFF%%/libavdevice.so.54.2.100
-lib/ffmpeg%%SUFF%%/libavfilter.a
-lib/ffmpeg%%SUFF%%/libavfilter.so
-lib/ffmpeg%%SUFF%%/libavfilter.so.%%SHLIB_VER%%
-lib/ffmpeg%%SUFF%%/libavfilter.so.3.5.102
-lib/ffmpeg%%SUFF%%/libavformat.a
-lib/ffmpeg%%SUFF%%/libavformat.so
-lib/ffmpeg%%SUFF%%/libavformat.so.%%SHLIB_VER%%
-lib/ffmpeg%%SUFF%%/libavformat.so.54.22.101
-lib/ffmpeg%%SUFF%%/libavutil.a
-lib/ffmpeg%%SUFF%%/libavutil.so
-lib/ffmpeg%%SUFF%%/libavutil.so.%%SHLIB_VER%%
-lib/ffmpeg%%SUFF%%/libavutil.so.51.66.101
-lib/ffmpeg%%SUFF%%/libpostproc.a
-lib/ffmpeg%%SUFF%%/libpostproc.so
-lib/ffmpeg%%SUFF%%/libpostproc.so.%%SHLIB_VER%%
-lib/ffmpeg%%SUFF%%/libpostproc.so.52.0.100
-lib/ffmpeg%%SUFF%%/libswresample.a
-lib/ffmpeg%%SUFF%%/libswresample.so
-lib/ffmpeg%%SUFF%%/libswresample.so.%%SHLIB_VER%%
-lib/ffmpeg%%SUFF%%/libswresample.so.0.15.100
-lib/ffmpeg%%SUFF%%/libswscale.a
-lib/ffmpeg%%SUFF%%/libswscale.so
-lib/ffmpeg%%SUFF%%/libswscale.so.%%SHLIB_VER%%
-lib/ffmpeg%%SUFF%%/libswscale.so.2.1.101
+lib/ffmpeg%%SUFF%%/libavcodec%%SUFF%%.a
+lib/ffmpeg%%SUFF%%/libavcodec%%SUFF%%.so
+lib/ffmpeg%%SUFF%%/libavcodec%%SUFF%%.so.54
+lib/ffmpeg%%SUFF%%/libavcodec%%SUFF%%.so.54.49.100
+lib/ffmpeg%%SUFF%%/libavdevice%%SUFF%%.a
+lib/ffmpeg%%SUFF%%/libavdevice%%SUFF%%.so
+lib/ffmpeg%%SUFF%%/libavdevice%%SUFF%%.so.54
+lib/ffmpeg%%SUFF%%/libavdevice%%SUFF%%.so.54.2.100
+lib/ffmpeg%%SUFF%%/libavfilter%%SUFF%%.a
+lib/ffmpeg%%SUFF%%/libavfilter%%SUFF%%.so
+lib/ffmpeg%%SUFF%%/libavfilter%%SUFF%%.so.3
+lib/ffmpeg%%SUFF%%/libavfilter%%SUFF%%.so.3.5.102
+lib/ffmpeg%%SUFF%%/libavformat%%SUFF%%.a
+lib/ffmpeg%%SUFF%%/libavformat%%SUFF%%.so
+lib/ffmpeg%%SUFF%%/libavformat%%SUFF%%.so.54
+lib/ffmpeg%%SUFF%%/libavformat%%SUFF%%.so.54.22.101
+lib/ffmpeg%%SUFF%%/libavutil%%SUFF%%.a
+lib/ffmpeg%%SUFF%%/libavutil%%SUFF%%.so
+lib/ffmpeg%%SUFF%%/libavutil%%SUFF%%.so.51
+lib/ffmpeg%%SUFF%%/libavutil%%SUFF%%.so.51.66.101
+lib/ffmpeg%%SUFF%%/libpostproc%%SUFF%%.a
+lib/ffmpeg%%SUFF%%/libpostproc%%SUFF%%.so
+lib/ffmpeg%%SUFF%%/libpostproc%%SUFF%%.so.52
+lib/ffmpeg%%SUFF%%/libpostproc%%SUFF%%.so.52.0.100
+lib/ffmpeg%%SUFF%%/libswresample%%SUFF%%.a
+lib/ffmpeg%%SUFF%%/libswresample%%SUFF%%.so
+lib/ffmpeg%%SUFF%%/libswresample%%SUFF%%.so.0
+lib/ffmpeg%%SUFF%%/libswresample%%SUFF%%.so.0.15.100
+lib/ffmpeg%%SUFF%%/libswscale%%SUFF%%.a
+lib/ffmpeg%%SUFF%%/libswscale%%SUFF%%.so
+lib/ffmpeg%%SUFF%%/libswscale%%SUFF%%.so.2
+lib/ffmpeg%%SUFF%%/libswscale%%SUFF%%.so.2.1.101
 libdata/pkgconfig/libavcodec%%SUFF%%.pc
 libdata/pkgconfig/libavdevice%%SUFF%%.pc
 libdata/pkgconfig/libavfilter%%SUFF%%.pc



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208120833.q7C8XA0c056690>