diff options
author | wiz <wiz@pkgsrc.org> | 2002-05-03 14:50:42 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2002-05-03 14:50:42 +0000 |
commit | c8e4dfde7c618ecb93b2d750e18a802f96c501bd (patch) | |
tree | 1af313f4c008f28ccd0236306004029553f6d231 | |
parent | 1b1e41cb5810f6836f5ad1c0e3d37ea81fe8ece8 (diff) | |
download | pkgsrc-c8e4dfde7c618ecb93b2d750e18a802f96c501bd.tar.gz |
Comment out the mtrr parts on NetBSD versions that don't support them.
Might make mplayer work on 1.5.2 and similar.
-rw-r--r-- | graphics/mplayer/distinfo | 3 | ||||
-rw-r--r-- | graphics/mplayer/patches/patch-ab | 27 |
2 files changed, 29 insertions, 1 deletions
diff --git a/graphics/mplayer/distinfo b/graphics/mplayer/distinfo index 02c204b2676..3f2feb69844 100644 --- a/graphics/mplayer/distinfo +++ b/graphics/mplayer/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.5 2002/04/30 15:10:01 veego Exp $ +$NetBSD: distinfo,v 1.6 2002/05/03 14:50:42 wiz Exp $ SHA1 (MPlayer-0.90pre2.tar.bz2) = 51f70a14f43af7cddd17df8c3b2f59207a56ca6d Size (MPlayer-0.90pre2.tar.bz2) = 2382376 bytes SHA1 (patch-aa) = 514deb9f9e8264ba964a7d5425fa5f3d97b62829 +SHA1 (patch-ab) = c7336ba70c1a70c0e5717375930ebf61399e008d diff --git a/graphics/mplayer/patches/patch-ab b/graphics/mplayer/patches/patch-ab new file mode 100644 index 00000000000..308388e8c50 --- /dev/null +++ b/graphics/mplayer/patches/patch-ab @@ -0,0 +1,27 @@ +$NetBSD: patch-ab,v 1.4 2002/05/03 14:50:42 wiz Exp $ + +--- libdha/mtrr.c.orig Sun Apr 28 00:42:24 2002 ++++ libdha/mtrr.c +@@ -13,9 +13,12 @@ + #include "AsmMacros.h" + + #if defined (__i386__) && defined (__NetBSD__) ++#include <sys/param.h> ++#if __NetBSD_Version__ > 105240000 + #include <stdint.h> +-#include <stdlib.h> + #include <machine/mtrr.h> ++#endif ++#include <stdlib.h> + #include <machine/sysarch.h> + #endif + +@@ -46,7 +49,7 @@ + return wr_len == strlen(sout) ? 0 : EPERM; + } + return ENOSYS; +-#elif defined (__NetBSD__) ++#elif defined (__NetBSD__) && (__NetBSD_Version__ > 105240000) + struct mtrr *mtrrp; + int n; + |