Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/graphics
In directory vz-cvs-3.sog:/tmp/cvs-serv30546/d/d/d/d
Modified Files:
xvidcore.info
Added Files:
xvidcore.patch
Log Message:
to stable
--- NEW FILE: xvidcore.patch ---
--- xvidcore/build/generic/configure.orig 2009-05-28 13:13:31.000000000
-0400
+++ xvidcore/build/generic/configure 2011-02-22 16:38:01.000000000 -0500
@@ -1319,7 +1319,7 @@
API_MAJOR="4"
API_MINOR="2"
-minimum_yasm_minor_version=8
+minimum_yasm_major_version=1
minimum_nasm_minor_version=0
minimum_nasm_major_version=2
nasm_prog="nasm"
@@ -3977,14 +3977,14 @@
if test "$ac_yasm" = "yes" ; then
echo "$as_me:$LINENO: checking for yasm version"
>&5
echo $ECHO_N "checking for yasm version... $ECHO_C" >&6
- yasm_minor=`$yasm_prog --version | cut -d '.' -f 2 | cut -d ' ' -f 1`
- if test -z $yasm_minor ; then
- yasm_minor=-1
+ yasm_major=`$yasm_prog --version | head -n 1 | cut -d '.' -f 1 | cut -d
' ' -f 2`
+ if test -z $yasm_major ; then
+ yasm_major=-1
fi
- echo "$as_me:$LINENO: result: $yasm_minor" >&5
-echo "${ECHO_T}$yasm_minor" >&6
+ echo "$as_me:$LINENO: result: $yasm_major" >&5
+echo "${ECHO_T}$yasm_major" >&6
- if test "$yasm_minor" -lt "$minimum_yasm_minor_version" ;
then
+ if test "$yasm_major" -lt "$minimum_yasm_major_version" ;
then
{ echo "$as_me:$LINENO: WARNING: yasm version is too old" >&5
echo "$as_me: WARNING: yasm version is too old" >&2;}
else
--- xvidcore/src/xvid.c.orig 2009-02-28 00:13:41 -0600
+++ xvidcore/src/xvid.c 2009-02-28 00:13:45 -0600
@@ -32,6 +32,17 @@
#include <unistd.h>
#endif
+#if defined(__APPLE__) && defined(__MACH__)
+# include <sys/types.h>
+# include <sys/sysctl.h>
+# ifdef MAX
+# undef MAX
+# endif
+# ifdef MIN
+# undef MIN
+# endif
+#endif
+
#include "xvid.h"
#include "decoder.h"
#include "encoder.h"
@@ -677,10 +682,29 @@
info->num_threads = siSysInfo.dwNumberOfProcessors; /* number of
_logical_ cores */
}
-#else
+#elif defined(__APPLE__) && defined(__MACH__)
+
+ {
+ size_t len;
+ int mib[2], ncpu;
+
+ mib[0] = CTL_HW;
+ mib[1] = HW_NCPU;
+ len = sizeof(ncpu);
+ if (sysctl(mib, 2, &ncpu, &len, NULL, 0) == 0)
+ info -> num_threads = ncpu;
+ else
+ info -> num_threads = 1;
+ }
+
+#elif defined(_SC_NPROCESSORS_CONF)
info->num_threads = sysconf(_SC_NPROCESSORS_CONF);
+#else
+
+ info->num_threads = 1;
+
#endif
return 0;
Index: xvidcore.info
===================================================================
RCS file: /cvsroot/fink/dists/10.4/stable/main/finkinfo/graphics/xvidcore.info,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- xvidcore.info 5 Sep 2009 16:08:01 -0000 1.5
+++ xvidcore.info 20 Oct 2011 13:37:42 -0000 1.6
@@ -1,30 +1,66 @@
Package: xvidcore
-Version: 1.1.3
-Revision: 2
+Version: 1.3.2
+Revision: 1
BuildDependsOnly: True
###
Conflicts: xvid
Replaces: xvid
+BuildDepends: <<
+ fink (>= 0.24.12),
+ yasm (>= 1.1.0-1)
+<<
Depends: %N-shlibs (= %v-%r)
###
Source: http://downloads.xvid.org/downloads/%n-%v.tar.gz
-Source-MD5: 9eaf362c2ba1265dab916b4a92bd2e27
+Source-MD5: 87c8cf7b69ebed93c2d82ea5709d098a
+SourceDirectory: xvidcore
###
-PatchScript: perl -pi -e 's, \-freduce\-all\-givs,,' build/generic/configure
+### patch fixes misguided yasm version detection. Fixes are present in
xvid-1.3RC1
+# PatchFile: %n.patch
+# PatchFile-MD5: cdd3227f6477e3b0a7e9e4d78d1f6d95
+PatchScript: <<
+ #!/bin/sh -ev
+ # %{default_script}
+ perl -pi -e 's, \-freduce\-all\-givs,,' build/generic/configure
+ ### yasm on x86_64 is still building i386, and this causes unhappiness
when creating libraries
+ if [ "%m" = "x86_64" ]; then
+ perl -pi -e 's|\$\{AFLAGS\}" -DARCH_IS_X86_64"|\$\{AFLAGS\}" -m
amd64 -DARCH_IS_X86_64"|g;' build/generic/configure
+ fi
+ # said test doesn't exist anywhere in source -- fangism
+ sed -i.orig -e '/yv12_to_bgra_altivec_c/,/ERROR/d' examples/xvid_bench.c
+<<
###
-ConfigureParams: (%m = i386) --disable-assembly (%m = x86_64)
--disable-assembly
+ConfigureParams: (%m = x86_64) --build=x86_64-apple-darwin (%m = x86_64)
--host=x86_64-apple-darwin
+UseMaxBuildJobs: false
CompileScript: <<
#!/bin/sh -ev
cd ./build/generic
./configure %c
-make
+make -w
+<<
+InfoTest: <<
+ TestScript: <<
+ #!/bin/sh -ev
+ ## There is no actual test suite, so TestScript just runs the
examples given
+ ## in examples/README. If they complete successfully, it is
assumed that
+ ## the library is working correctly.
+ cd %b/examples
+ make -w
+ bzip2 -dc cactus.pgm.bz2 | ./xvid_encraw -type 1 || exit 2
+ bzip2 -d cactus.pgm.bz2 || exit 2
+ ./xvid_encraw -type 1 -i cactus.pgm -save || exit 2
+ ./xvid_encraw -type 1 -i cactus.pgm -o my_xvid_example.m4v
-stats || exit 2
+ ./xvid_decraw -i my_xvid_example.m4v -d || exit 2
+ cat my_xvid_example.m4v | ./xvid_decraw || exit 2
+ ./xvid_bench || exit 2
+ <<
<<
InstallScript: <<
#!/bin/sh -ev
cd ./build/generic
make install DESTDIR=%d
-mv %i/lib/libxvidcore.4.dylib %i/lib/libxvidcore.4.1.0.dylib
-ln -s %p/lib/libxvidcore.4.1.0.dylib %i/lib/libxvidcore.4.dylib
+mv %i/lib/libxvidcore.4.dylib %i/lib/libxvidcore.4.2.0.dylib
+ln -s %p/lib/libxvidcore.4.2.0.dylib %i/lib/libxvidcore.4.dylib
ln -s %p/lib/libxvidcore.4.dylib %i/lib/libxvidcore.dylib
<<
###
@@ -49,7 +85,12 @@
great popularity and is used in many other GPLed applications,
like e.g. Transcode, MEncoder, MPlayer, Xine and many more.
<<
+DescPort: <<
+o yasm check in configure modified to understand that versions after 0.8 might
have a 0 in the minor version
+o building on x86_64 causes yasm to build as i386, so force x86_64 with "-m
amd64"
+
+<<
###
License: GPL
-Maintainer: Ben Hines <[email protected]>
-Homepage: http://www.xvid.org/Xvid-Codec.2.0.html
+Maintainer: None <[email protected]>
+Homepage: http://www.xvid.org/
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Ciosco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs