Bug 20956

Summary: Two better patches for the mplex port
Product: Ports & Packages Reporter: Andre Albsmeier <Andre.Albsmeier>
Component: Individual Port(s)Assignee: freebsd-ports (Nobody) <ports>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Andre Albsmeier 2000-08-31 07:20:00 UTC
By default, mplex needs parameter input from the user. This behaviour
has been changed by patch-ac and patch-ad to use defaults. Probably this
has been done to make it possible to use mplex in batch files without
the need for user intervention, e.g. fxtv.

However, in some cases it may be desired to change these parameters. The
two patches below replace patch-ac and patch-ad. They add an -i option
which will enable the user inputs again. If -i is not specified, the
behaviour remains the same so the change should be 100% compatible to 
existing software which rely on mplex as it is now.

Fix: patch-ac only adds the -DTIMER compiletime options which enables
some timing measurements:

--------------------------- snip ----------------------------

--------------------------- snap ----------------------------


patch-ad now implements the -i option mentioned above:

--------------------------- snip ----------------------------



--------------------------- snap ------------------------------zLrcgp8iRytb4yuO2z3dNVFRbe5qvmUALBOHcD9waiqhMv8w
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- Makefile.ORI	Wed Aug 30 21:03:47 2000
+++ Makefile	Wed Aug 30 21:05:55 2000
@@ -24,6 +24,8 @@
 CC     ?=  cc
 RM     =  /bin/rm -f
 
+CFLAGS+= -DTIMER
+
 OBJS = main.o bitstrm.o buffer.o inits.o inptstrm.o interact.o multplex.o systems.o timecode.o
 
 SRCS = main.c bitstrm.c buffer.c inits.c inptstrm.c interact.c multplex.c systems.c timecode.c
How-To-Repeat: 
Use mplex and try to change parameters.
Comment 1 Steve Price freebsd_committer freebsd_triage 2000-09-05 02:34:45 UTC
State Changed
From-To: open->closed

Committed, thanks!