Bug 69832

Summary: [PATCH] multimedia/transcode: [add jpeg-mmx support]
Product: Ports & Packages Reporter: Michael Johnson <ahze>
Component: Individual Port(s)Assignee: Michael Johnson <ahze>
Status: Closed FIXED    
Severity: Affects Only Me CC: hendrik
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
transcode-0.6.12_1.patch none

Description Michael Johnson 2004-07-31 00:50:27 UTC
- add jpeg-mmx support with knob


pr-69829 needs to commited first.

Port maintainer (hendrik@scholz.net) is cc'd.

Generated with FreeBSD Port Tools 0.50
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2004-08-30 10:53:13 UTC
Dear maintainer, please review the proposed patch!

Volker
Comment 2 Volker Stolz freebsd_committer freebsd_triage 2004-08-30 10:53:33 UTC
State Changed
From-To: open->feedback

Forwarded PR to maintainer
Comment 3 Hendrik Scholz 2004-08-30 12:55:35 UTC
Hi!

Volker Stolz wrote:
> Dear maintainer, please review the proposed patch!

I've just tested it. Works.

Thanks,
	Hendrik

-- 
Hendrik Scholz - <hscholz@raisdorf.net> - http://www.wormulon.net/
drag me, drop me - treat me like an object
Comment 4 Volker Stolz freebsd_committer freebsd_triage 2004-08-30 13:08:56 UTC
State Changed
From-To: feedback->suspended

Suspend until ports/69829 is committed.
Comment 5 Michael Johnson 2004-08-30 14:40:03 UTC
Hi,

I see a problem with my patch.

in the part that reads

.if exists(${LOCALBASE}/lib/libjpeg-mmx.so.62)
WITH_JPEGMMX=  yes
WITH_NASM=     yes
.endif

it probably should be the following because you can define WITH_JPEGMMX 
and not have nasm installed.

.if exists(${LOCALBASE}/lib/libjpeg-mmx.so.62)
WITH_JPEGMMX= 	yes
.endif

.if defined(WITH_JPEGMMX)
WITH_NASM=	yes
.endif

Michael
Comment 6 Hendrik Scholz 2004-08-30 14:51:28 UTC
Hi!

Michael Johnson wrote:
> it probably should be the following because you can define WITH_JPEGMMX 
> and not have nasm installed.

JPEGMMX has NASM as build depends and is only for i386.
With WITH_JPEGMMX turned on it turns transcode into a i386 only port.
WITH_NASM implies ONLY_FOR_ARCHES=i386 so it's been taken care of as of now.

You are right about the fact that one can build transcode without having
nasm installed but still having WITH_JPEGMMX (probably installed as 
binary package).

Your second part makes sense but I'd add ONLY_FOR_ARCHES= i386:

.if exists(${LOCALBASE}/lib/libjpeg-mmx.so.62)
WITH_JPEGMMX=     yes
ONLY_FOR_ARCHES=	i386
.endif

Hendrik

-- 
Hendrik Scholz - <hscholz@raisdorf.net> - http://www.wormulon.net/
drag me, drop me - treat me like an object
Comment 7 Ceri Davies freebsd_committer freebsd_triage 2004-10-29 10:44:21 UTC
Adding to audit trail, from misfiled PR ports/72843:

Date: Mon, 18 Oct 2004 22:02:39 +0200
From: Hendrik Scholz <hscholz@raisdorf.net>
Message-Id: <4174215F.1030600@raisdorf.net>
References: <200410162319.i9GNJYfE066651@blueheron.ahze.net>

 Hi!
 
 Michael Johnson wrote:
 > make WITH_FFMPEG=yes WITH_OPTIMIZED_CFLAGS=yes 
 
 I couldn't reproduce the problem. I've compiled transcode on 
 5.3-BETA7/i386 and even with -O3 it compiled fine.
 Do you have any additional options in /etc/make.conf?
 
 I've tested the patch ... it doesn't harm anything but I never got any 
 reports on similar problems so I'm not sure if it's a general problem.
 
 Thanks,
 	Hendrik
 
 -- 
 Hendrik Scholz - <hscholz@raisdorf.net> - http://www.wormulon.net/
 drag me, drop me - treat me like an object
Comment 8 Ceri Davies freebsd_committer freebsd_triage 2004-10-29 10:47:25 UTC
Adding to audit trail, from misfiled PR ports/72846:

Date: Mon, 18 Oct 2004 16:18:11 -0400
From: Michael Johnson <ahze@ahze.net>
Message-Id: <D53478A5-2142-11D9-9C89-000A958C81C6@ahze.net>
References: <200410162319.i9GNJYfE066651@blueheron.ahze.net> <4174215F.1030600@raisdorf.net>

 Hi Hendrik!
 
 After seeing what you wrote I did farther tests and figured out that
 I built ffmpeg with OUT WITH_OPTIMIZED_CFLAGS defined
 and transcode with WITH_OPTIMIZED_CFLAGS defined
 and that seems to be the problem.
 
   since this is such a rare case I dont think we need to do anything
   to transcode at all and just close this pr.
 
 Michael
Comment 9 Ceri Davies freebsd_committer freebsd_triage 2004-10-29 10:48:42 UTC
Adding to audit trail, from misfiled PR ports/72847:

Date: Mon, 18 Oct 2004 16:21:38 -0400
From: Michael Johnson <ahze@ahze.net>
Message-Id: <50E04292-2143-11D9-9C89-000A958C81C6@ahze.net>
References: <200410162319.i9GNJYfE066651@blueheron.ahze.net> <4174215F.1030600@raisdorf.net>

 oh, and btw, everything works  with the following
 
 define WITH_OPTIMIZED_CFLAGS on ffmpeg and transcode
 
 or
 
 define WITH_OPTIMIZED_CFLAGS on ffmpeg and not transcode
 
 but fails with
 
 define WITH_OPTIMIZED_CLFAGS on transcode and not ffmpeg
 
 Michael
Comment 10 Michael Johnson freebsd_committer freebsd_triage 2004-10-29 13:49:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ahze

handle
Comment 11 Michael Johnson 2004-10-30 22:50:22 UTC
Please see http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/69832
do you approve this patch?

Michael
Comment 12 Michael Johnson freebsd_committer freebsd_triage 2004-10-30 22:50:31 UTC
State Changed
From-To: suspended->feedback

Asked maintainer for feedback
Comment 13 Hendrik Scholz 2004-10-31 17:24:18 UTC
Hi!

Yes, approved.

Thanks,
	Hendrik

-- 
Hendrik Scholz - <hscholz@raisdorf.net> - http://www.wormulon.net/
drag me, drop me - treat me like an object
Comment 14 Michael Johnson freebsd_committer freebsd_triage 2004-11-17 22:12:05 UTC
State Changed
From-To: feedback->closed

Committed