From owner-freebsd-amd64@FreeBSD.ORG Sun May 22 19:22:00 2005 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 028CD16A41C for ; Sun, 22 May 2005 19:22:00 +0000 (GMT) (envelope-from michiel@boland.org) Received: from neerbosch.nijmegen.internl.net (neerbosch.nijmegen.internl.net [217.149.193.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 679AD43D1D for ; Sun, 22 May 2005 19:21:59 +0000 (GMT) (envelope-from michiel@boland.org) Received: from brakkenstein.nijmegen.internl.net by neerbosch.nijmegen.internl.net via brakkenstein.nijmegen.internl.net [217.149.193.41] with ESMTP id j4MJLuGu016829 (8.13.2/1.4); Sun, 22 May 2005 21:21:56 +0200 (MET DST) Received: from localhost by brakkenstein.nijmegen.internl.net via mboland@localhost with ESMTP id j4MJLuFM027896 (8.13.2/2.02); Sun, 22 May 2005 21:21:56 +0200 (MEST) X-Authentication-Warning: brakkenstein.nijmegen.internl.net: mboland owned process doing -bs Date: Sun, 22 May 2005 21:21:56 +0200 (MEST) From: Michiel Boland To: Pav Lucistnik In-Reply-To: <1116697452.79313.31.camel@hood.oook.cz> Message-ID: References: <20050521022130.GW52914@afflictions.org> <20050521105451.V92958@fw.reifenberger.com> <200505211237.00974.loox@e-shell.net> <1116697452.79313.31.camel@hood.oook.cz> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-1804928587-1116789664=:27863" Content-ID: Cc: riggs@rrr.de, freebsd-amd64@freebsd.org Subject: Re: mplayer, amd64, and CPU flags [patch] X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2005 19:22:00 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---559023410-1804928587-1116789664=:27863 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; FORMAT=flowed Content-ID: Rather than hack the port Makefile, I think it is better to fix cpuinfo.c. I placed the attached patch-TOOLS-cpuinfo.c in ports/multimedia/mplayer/files and then recompiled mplayer. It now detects the cpu properly. I am CC-ing this to the port maintainer; hopefully this can be merged into the real source somehow. $ mplayer MPlayer 1.0pre7-3.4.2 (C) 2000-2005 MPlayer Team CPU: Advanced Micro Devices (Family: 8, Stepping: 0) Detected cache-line size is 64 bytes CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2 ---559023410-1804928587-1116789664=:27863 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME=patch-TOOLS-cpuinfo.c Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: ATTACHMENT; FILENAME=patch-TOOLS-cpuinfo.c LS0tIFRPT0xTL2NwdWluZm8uYy5vcmlnCU1vbiBPY3QgMTEgMjE6MjY6MTMg MjAwNA0KKysrIFRPT0xTL2NwdWluZm8uYwlTdW4gTWF5IDIyIDIwOjU3OjEx IDIwMDUNCkBAIC00MCwxMyArNDAsOSBAQA0KIGNwdWlkKGludCBmdW5jKSB7 DQogCWNwdWlkX3JlZ3NfdCByZWdzOw0KICNkZWZpbmUJQ1BVSUQJIi5ieXRl IDB4MGYsIDB4YTI7ICINCi0JYXNtKCJwdXNoICUlZWJ4OyAiDQotCSAgICAi bW92bCAlNCwlJWVheDsgIiBDUFVJRA0KLQkgICAgIm1vdmwgJSVlYXgsJTA7 IG1vdmwgJSVlYngsJTE7IG1vdmwgJSVlY3gsJTI7IG1vdmwgJSVlZHgsJTM7 ICINCi0JICAgICJwb3AgJSVlYngiDQotCQk6ICI9bSIgKHJlZ3MuZWF4KSwg Ij1tIiAocmVncy5lYngpLCAiPW0iIChyZWdzLmVjeCksICI9bSIgKHJlZ3Mu ZWR4KQ0KLQkJOiAiZyIgKGZ1bmMpDQotCQk6ICIlZWF4IiwgIiVlY3giLCAi JWVkeCIpOw0KKwlhc20oQ1BVSUQNCisJCTogIj1hIiAocmVncy5lYXgpLCAi PWIiIChyZWdzLmVieCksICI9YyIgKHJlZ3MuZWN4KSwgIj1kIiAocmVncy5l ZHgpDQorCQk6ICIwIiAoZnVuYykpOw0KIAlyZXR1cm4gcmVnczsNCiB9DQog DQo= ---559023410-1804928587-1116789664=:27863--