summaryrefslogtreecommitdiff
path: root/multimedia/mplayer-share
diff options
context:
space:
mode:
authortsutsui <tsutsui>2010-12-05 16:42:16 +0000
committertsutsui <tsutsui>2010-12-05 16:42:16 +0000
commit667910926a784e4e73ad535950e727d2e14654f3 (patch)
tree3f64935b4d4347c60954b8dd011d3412fe87c5e7 /multimedia/mplayer-share
parent2a7cc516303351c4b19d49c9b9e1c2926dec9464 (diff)
downloadpkgsrc-667910926a784e4e73ad535950e727d2e14654f3.tar.gz
Make mplayer build on NetBSD/sh3el.
Build tested on NetBSD/landisk 5.1 and player tested on NetBSD/dreamcast 5.1. (though some more packages need hacks/fixes for XFree86 and SH3)
Diffstat (limited to 'multimedia/mplayer-share')
-rw-r--r--multimedia/mplayer-share/distinfo4
-rw-r--r--multimedia/mplayer-share/patches/patch-aa47
2 files changed, 39 insertions, 12 deletions
diff --git a/multimedia/mplayer-share/distinfo b/multimedia/mplayer-share/distinfo
index f67647fdacc..ae4c8b15327 100644
--- a/multimedia/mplayer-share/distinfo
+++ b/multimedia/mplayer-share/distinfo
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.68 2010/11/23 12:31:30 tron Exp $
+$NetBSD: distinfo,v 1.69 2010/12/05 16:42:16 tsutsui Exp $
SHA1 (mplayer/mplayer-20100913.tar.bz2) = 6fd3acb29fa8455636bcd86f9f333da4763daa6d
RMD160 (mplayer/mplayer-20100913.tar.bz2) = 79085d4ebdb824fc34f7bc128070ef11e874897d
Size (mplayer/mplayer-20100913.tar.bz2) = 9073690 bytes
-SHA1 (patch-aa) = 8ee4f3d12500bcff8d06b1a3300bb821e4ffd8ba
+SHA1 (patch-aa) = 9eae4563081e370d14560bb407a9b986b0128d7f
SHA1 (patch-ab) = 1a927d956155a7b9a2daa1a4f522e47d830c5af6
SHA1 (patch-ac) = 3d037c96537233cdbda582afdb878dcf3f43e923
SHA1 (patch-ae) = 7e1f05cd6e09f8755debfff7061dadf0a8ca3a3f
diff --git a/multimedia/mplayer-share/patches/patch-aa b/multimedia/mplayer-share/patches/patch-aa
index 27e6eb37aa5..1e815e8781c 100644
--- a/multimedia/mplayer-share/patches/patch-aa
+++ b/multimedia/mplayer-share/patches/patch-aa
@@ -1,18 +1,31 @@
-$NetBSD: patch-aa,v 1.25 2010/09/16 18:56:12 wiz Exp $
+$NetBSD: patch-aa,v 1.26 2010/12/05 16:42:16 tsutsui Exp $
---- configure.orig 2010-09-04 09:39:21.000000000 +0000
+--- configure.orig 2010-09-13 03:12:07.000000000 +0000
+++ configure
-@@ -1471,6 +1471,9 @@ if test -z "$_target" ; then
+@@ -1471,6 +1471,12 @@ if test -z "$_target" ; then
powerpc) # Darwin returns 'powerpc'
host_arch=ppc
;;
+ mipseb|mipsel) # NetBSD
+ host_arch=mips
+ ;;
++ sh3eb|sh3el) # NetBSD
++ host_arch=sh
++ ;;
*) # uname -p on Linux returns 'unknown' for the processor type,
# OpenBSD returns 'Intel Pentium/MMX ("Genuine Intel" 586-class)'
-@@ -1645,7 +1648,7 @@ else
+@@ -1488,7 +1494,8 @@ if test -z "$_target" ; then
+ sparc64) host_arch=sparc64 ;;
+ parisc*|hppa*|9000*) host_arch=hppa ;;
+ arm*|zaurus|cats) host_arch=arm ;;
+- sh3|sh4|sh4a) host_arch=sh ;;
++ sh3) host_arch=sh ;;
++ sh4|sh4a) host_arch=sh4 ;;
+ s390) host_arch=s390 ;;
+ s390x) host_arch=s390x ;;
+ *mips*) host_arch=mips ;;
+@@ -1645,7 +1652,7 @@ else
cc_name=$cc_name_tmp
echocheck "$_cc version"
cc_vendor=gnu
@@ -21,7 +34,7 @@ $NetBSD: patch-aa,v 1.25 2010/09/16 18:56:12 wiz Exp $
case $cc_version in
2.96*)
cc_fail=yes
-@@ -1763,7 +1766,7 @@ if x86 ; then
+@@ -1763,7 +1770,7 @@ if x86 ; then
# gather more CPU information
pname=$($_cpuinfo | grep 'model name' | cut -d ':' -f 2 | head -n 1)
pvendor=$($_cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -n 1)
@@ -30,7 +43,21 @@ $NetBSD: patch-aa,v 1.25 2010/09/16 18:56:12 wiz Exp $
pmodel=$($_cpuinfo | grep -v 'model name' | grep 'model' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -n 1)
pstepping=$($_cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -n 1)
-@@ -3710,7 +3713,6 @@ test "$_w32threads" = yes && def_threads
+@@ -2238,7 +2245,12 @@ case "$host_arch" in
+ test $_fast_clz = "auto" && _fast_clz=yes
+ ;;
+
+- sh|sh4)
++ sh)
++ arch='sh'
++ iproc='sh'
++ ;;
++
++ sh4)
+ arch='sh4'
+ iproc='sh4'
+ ;;
+@@ -3713,7 +3725,6 @@ test "$_w32threads" = yes && def_threads
echores "$_w32threads"
echocheck "rpath"
@@ -38,7 +65,7 @@ $NetBSD: patch-aa,v 1.25 2010/09/16 18:56:12 wiz Exp $
if test "$_rpath" = yes ; then
for I in $(echo $extra_ldflags | sed 's/-L//g') ; do
tmp="$tmp $(echo $I | sed 's/.*/ -L& -Wl,-R&/')"
-@@ -3975,7 +3977,6 @@ echores "$_vsscanf"
+@@ -3978,7 +3989,6 @@ echores "$_vsscanf"
echocheck "swab()"
cat > $TMPC << EOF
@@ -46,7 +73,7 @@ $NetBSD: patch-aa,v 1.25 2010/09/16 18:56:12 wiz Exp $
#include <unistd.h>
int main(void) { swab(0, 0, 0); return 0; }
EOF
-@@ -4456,7 +4457,11 @@ EOF
+@@ -4488,7 +4498,11 @@ EOF
-L/usr/X11/lib -L/usr/lib32 -L/usr/openwin/lib -L/usr/local/lib64 -L/usr/X11R6/lib64 \
-L/usr/lib ; do
if netbsd; then
@@ -59,7 +86,7 @@ $NetBSD: patch-aa,v 1.25 2010/09/16 18:56:12 wiz Exp $
else
_ld_tmp="$I -lXext -lX11 $_ld_pthread"
fi
-@@ -5591,8 +5596,13 @@ if test "$_ivtv" = auto ; then
+@@ -5623,8 +5637,13 @@ if test "$_ivtv" = auto ; then
cat > $TMPC << EOF
#include <stdlib.h>
#include <inttypes.h>
@@ -73,7 +100,7 @@ $NetBSD: patch-aa,v 1.25 2010/09/16 18:56:12 wiz Exp $
#include <linux/ivtv.h>
#include <sys/ioctl.h>
int main(void) {
-@@ -8052,7 +8062,7 @@ echores "$_tv_v4l1"
+@@ -8057,7 +8076,7 @@ echores "$_tv_v4l1"
echocheck "Video 4 Linux 2 TV interface"
if test "$_tv_v4l2" = auto ; then
_tv_v4l2=no