[csw-devel] SF.net SVN: gar:[7452] csw/mgar/pkg/ffmpeg/trunk

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Thu Nov 26 11:42:26 CET 2009


Revision: 7452
          http://gar.svn.sourceforge.net/gar/?rev=7452&view=rev
Author:   wahwah
Date:     2009-11-26 10:42:26 +0000 (Thu, 26 Nov 2009)

Log Message:
-----------
ffmpeg: better CONFIGURE_ARGS

Modified Paths:
--------------
    csw/mgar/pkg/ffmpeg/trunk/Makefile
    csw/mgar/pkg/ffmpeg/trunk/checksums

Added Paths:
-----------
    csw/mgar/pkg/ffmpeg/trunk/files/gnu-grep.patch

Property Changed:
----------------
    csw/mgar/pkg/ffmpeg/trunk/Makefile

Modified: csw/mgar/pkg/ffmpeg/trunk/Makefile
===================================================================
--- csw/mgar/pkg/ffmpeg/trunk/Makefile	2009-11-26 10:21:26 UTC (rev 7451)
+++ csw/mgar/pkg/ffmpeg/trunk/Makefile	2009-11-26 10:42:26 UTC (rev 7452)
@@ -1,3 +1,7 @@
+# Copyright 2009 OpenCSW
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
 GARNAME = ffmpeg
 GARVERSION = 0.5
 CATEGORIES = lib
@@ -11,17 +15,17 @@
 MASTER_SITES = http://ffmpeg.org/releases/
 DISTFILES  = $(DISTNAME).tar.bz2
 
-# We define upstream file regex so we can be notifed of new upstream software release
+PATCHFILES = gnu-grep.patch
+
 UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.bz2
 
 BUILD64 = 1
 NO_ISAEXEC = 1
-CONFIGURE_ARGS = --prefix=$(prefix)
-CONFIGURE_ARGS += --bindir=$(bindir)
-CONFIGURE_ARGS += --datadir=$(datadir)
-CONFIGURE_ARGS += --libdir=$(libdir)
-CONFIGURE_ARGS += --shlibdir=$(libdir)
-CONFIGURE_ARGS += --incdir=$(includedir)
-CONFIGURE_ARGS += --mandir=$(mandir)
 
+FFMPEG_CONFIGURE_ARGS_1 = $(filter-out --exec_%,$(DIRPATHS))
+FFMPEG_CONFIGURE_ARGS_2 = $(filter-out --sbindir%,$(FFMPEG_CONFIGURE_ARGS_1))
+CONFIGURE_ARGS = $(FFMPEG_CONFIGURE_ARGS)
+
+GARCOMPILER = GNU
+
 include gar/category.mk


Property changes on: csw/mgar/pkg/ffmpeg/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
   + Id

Modified: csw/mgar/pkg/ffmpeg/trunk/checksums
===================================================================
--- csw/mgar/pkg/ffmpeg/trunk/checksums	2009-11-26 10:21:26 UTC (rev 7451)
+++ csw/mgar/pkg/ffmpeg/trunk/checksums	2009-11-26 10:42:26 UTC (rev 7452)
@@ -1 +1,2 @@
 be8503f15c3b81ba00eb8379ca8dcf33  ffmpeg-0.5.tar.bz2
+aa4573b73656b4105abb209eab474680  gnu-grep.patch

Added: csw/mgar/pkg/ffmpeg/trunk/files/gnu-grep.patch
===================================================================
--- csw/mgar/pkg/ffmpeg/trunk/files/gnu-grep.patch	                        (rev 0)
+++ csw/mgar/pkg/ffmpeg/trunk/files/gnu-grep.patch	2009-11-26 10:42:26 UTC (rev 7452)
@@ -0,0 +1,74 @@
+--- ffmpeg-0.5/configure.orig	2009-11-25 00:00:57.441086148 +0100
++++ ffmpeg-0.5/configure	2009-11-25 00:01:18.358790303 +0100
+@@ -1217,7 +1217,7 @@
+     disable source_path_used
+ else
+     source_path="`cd \"$source_path\"; pwd`"
+-    echo "$source_path" | grep -q '[[:blank:]]' &&
++    echo "$source_path" | ggrep -q '[[:blank:]]' &&
+         die "Out of tree builds are impossible with whitespace in source path."
+ fi
+ 
+@@ -1363,13 +1363,13 @@
+ fi
+ rm $TMPSH
+ 
+-if   $cc --version 2>/dev/null | grep -qi gcc; then
++if   $cc --version 2>/dev/null | ggrep -qi gcc; then
+     cc_type=gcc
+-elif $cc --version 2>/dev/null | grep -q Intel; then
++elif $cc --version 2>/dev/null | ggrep -q Intel; then
+     cc_type=icc
+-elif $cc -v 2>&1 | grep -q xlc; then
++elif $cc -v 2>&1 | ggrep -q xlc; then
+     cc_type=xlc
+-elif $cc -V 2>/dev/null | grep -q Compaq; then
++elif $cc -V 2>/dev/null | ggrep -q Compaq; then
+     cc_type=ccc
+     DEPEND_CMD='$(CC) $(CFLAGS) -M $< | sed -e "/^\#.*/d" -e "s,^[[:space:]]*$(*F)\\.o,$(@D)/$(*F).o,"'
+     add_ldflags -Wl,-z,now # calls to libots crash without this
+@@ -1488,7 +1488,7 @@
+         # helps building libavcodec
+         add_cflags -DPIC -fomit-frame-pointer
+         # 3 gcc releases known for BeOS, each with ugly bugs
+-        gcc_version="`$cc -v 2>&1 | grep version | cut -d ' ' -f3-`"
++        gcc_version="`$cc -v 2>&1 | ggrep version | cut -d ' ' -f3-`"
+         case "$gcc_version" in
+           2.9-beos-991026*|2.9-beos-000224*) echo "R5/GG gcc"
+             disable mmx
+@@ -1503,7 +1503,7 @@
+         # no need for libm, but the inet stuff
+         # Check for BONE
+         # XXX: actually should check for NOT net_server
+-        if echo $BEINCLUDES | grep -q 'headers/be/bone'; then
++        if echo $BEINCLUDES | ggrep -q 'headers/be/bone'; then
+             network_extralibs="-lbind -lsocket"
+         else
+             enable beos_netserver
+@@ -1798,7 +1798,7 @@
+ check_cc <<EOF || die "Symbol mangling check failed."
+ int ff_extern;
+ EOF
+-sym=$($nm -P -g $TMPO | grep ff_extern)
++sym=$($nm -P -g $TMPO | ggrep ff_extern)
+ extern_prefix=${sym%%ff_extern*}
+ 
+ check_asm inline_asm '""'
+@@ -1896,7 +1896,7 @@
+ check_cc <<EOF || die "endian test failed"
+ unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
+ EOF
+-od -A n -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian
++od -A n -t x1 $TMPO | ggrep -q '42 *49 *47 *45' && enable bigendian
+ 
+ # ---
+ # check availability of some header files
+@@ -2413,7 +2413,7 @@
+ get_version(){
+     name=$1
+     file=$source_path/$2
+-    eval $(grep "#define ${name}_VERSION_M" "$file" | awk '{ print $2"="$3 }')
++    eval $(ggrep "#define ${name}_VERSION_M" "$file" | awk '{ print $2"="$3 }')
+     eval ${name}_VERSION=\$${name}_VERSION_MAJOR.\$${name}_VERSION_MINOR.\$${name}_VERSION_MICRO
+     lcname=$(tolower $name)
+     eval echo "${lcname}_VERSION=\$${name}_VERSION" >> config.mak


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list