Bug 21356 - New port: mbone/rat30 (rat-3.0.35), the stable branch. Replaces PR ports/21343.
Summary: New port: mbone/rat30 (rat-3.0.35), the stable branch. Replaces PR ports/21343.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-09-18 16:40 UTC by anton
Modified: 2001-06-07 03:07 UTC (History)
0 users

See Also:


Attachments
file.shar (10.06 KB, text/plain)
2000-09-18 16:40 UTC, anton
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description anton 2000-09-18 16:40:02 UTC
This submittion contains fix for PR ports/21343 (where Makefile didn't
satisfy to portlint) and an additional patch for mixer operations
(by Orion Hodson, O.Hodson@cs.ucl.ac.uk).

RAT is a network audio tool that allows users to particpate in
audio conferences over the internet. These can be between two
participants directly, or between a group of participants on a
common multicast group.  RAT features sender based loss mitigation
mechanisms and receiver based audio repair techniques to compensate
for packet loss, and load adaption in response to host performance.

This is a stable branch version. Works with half-duplex casrd as well.

WWW: http://www-mice.cs.ucl.ac.uk/multimedia/software/rat/
Comment 1 Will Andrews freebsd_committer freebsd_triage 2001-04-07 08:00:26 UTC
State Changed
From-To: open->analyzed

Do we really need this port?  mbone/rat is at 4.x, and I don't 
know anything about the differences between the two versions. 
Can you provide any suitable purpose for such a "stable" port?
Comment 2 mutoh 2001-05-11 00:49:30 UTC
I make rat30 ports.
It is required mbone/relate that I prepare.
# I'm sorry that mistake pr-number > Orion

I change 
  Tcl/Tk version from 8.3 to 8.2
  Comand name from rat to rat30 because of conflicting normal mbone/rat ports

Please check and commit.

diff -ruN ../rat30/Makefile ./Makefile
--- ../rat30/Makefile	Thu May 10 10:01:41 2001
+++ ./Makefile	Thu May 10 16:41:58 2001
@@ -8,33 +8,23 @@
 PORTNAME=	rat
 PORTVERSION=	3.0.35
 CATEGORIES=	mbone audio
+MASTER_SITES=	http://www-mice.cs.ucl.ac.uk/multimedia/software/rat/${PORTVERSION}/
 
 MAINTAINER=	anton@urc.ac.ru
 
-MASTER_SITES =	http://www-mice.cs.ucl.ac.uk/multimedia/software/rat/3.0.35/
-WRKSRC =	${WRKDIR}/rat-3.0
+LIB_DEPENDS=	tk82.1:${PORTSDIR}/x11-toolkits/tk82
 
-TCL_VER=8.3
-TCL_SHORTVER=83
-TK_VER=8.3
-TK_SHORTVER=83
-
-LIB_DEPENDS =	tk${TK_SHORTVER}.1:${PORTSDIR}/x11-toolkits/tk${TK_SHORTVER} \
-		tcl${TK_SHORTVER}.1:${PORTSDIR}/lang/tcl${TCL_SHORTVER}
-USE_XLIB =	yes
-
-#DEPENDS =	${PORTSDIR}/x11-toolkits/tk${TK_SHORTVER} \
-#		${PORTSDIR}/lang/tcl${TCL_SHORTVER}
-
-MAN1 =		rat.1
-MANCOMPRESSED =	no
-USE_GMAKE =	yes
-# MAKE_ARGS =	TCL_VER=${TCL_VER} TCL_SHORTVER=${TCL_SHORTVER} TK_VER=${TK_VER} TK_SHORTVER=${TK_SHORTVER} X11BASE=${X11BASE} OSTYPE=FreeBSD
+WRKSRC=		${WRKDIR}/rat-3.0
 
-ALL_TARGET =	bin/rat
+MAN1=		rat.1
+MANCOMPRESSED=	no
 
+.include <bsd.port.pre.mk>
+
+do-build:
+	(cd ${WRKSRC};./Build rat)
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/bin/rat ${PREFIX}/bin/rat
+	${INSTALL_PROGRAM} ${WRKSRC}/bin/rat ${PREFIX}/bin/rat30
 	${INSTALL_MAN}  ${WRKSRC}/man/man1/rat.1 ${PREFIX}/man/man1
 
-.include <bsd.port.mk>
+.include "bsd.port.post.mk"
diff -ruN ../rat30/distinfo ./distinfo
--- ../rat30/distinfo	Thu Jan  1 09:00:00 1970
+++ ./distinfo	Thu May 10 11:32:17 2001
@@ -0,0 +1 @@
+MD5 (rat-3.0.35.tar.gz) = fff6e4a4c9617c5b7ea80f63fda96a9a
diff -ruN ../rat30/files/md5 ./files/md5
--- ../rat30/files/md5	Tue May  8 08:39:28 2001
+++ ./files/md5	Thu Jan  1 09:00:00 1970
@@ -1 +0,0 @@
-MD5 (rat-3.0.35.tar.gz) = fff6e4a4c9617c5b7ea80f63fda96a9a
diff -ruN ../rat30/files/patch-Build ./files/patch-Build
--- ../rat30/files/patch-Build	Thu Jan  1 09:00:00 1970
+++ ./files/patch-Build	Thu May 10 10:25:16 2001
@@ -0,0 +1,11 @@
+--- Build.org	Thu May 10 10:20:19 2001
++++ Build	Thu May 10 10:21:45 2001
+@@ -81,7 +81,7 @@
+   chmod 775 objs/${USER}/${OSTYPE}_${OSVERS}
+ fi
+ 
+-cmd="${MAKE:=make} OSTYPE=$OSTYPE OSMVER=$OSMVER OSVERS=$OSVERS USER=$USER"
++cmd="${MAKE:=gmake} OSTYPE=$OSTYPE OSMVER=$OSMVER OSVERS=$OSVERS USER=$USER"
+ case $1 in
+   rat   ) echo "Running: $cmd bin/${USER}/rat-${OSTYPE}-${OSVERS}"
+           eval $cmd bin/${USER}/rat-${OSTYPE}-${OSVERS}
diff -ruN ../rat30/files/patch-Makefile ./files/patch-Makefile
--- ../rat30/files/patch-Makefile	Thu Jan  1 09:00:00 1970
+++ ./files/patch-Makefile	Thu May 10 11:07:50 2001
@@ -0,0 +1,10 @@
+--- Makefile.orig	Tue Sep 14 19:39:00 1999
++++ Makefile	Thu May 10 11:07:38 2001
+@@ -82,6 +82,7 @@
+ $(BINDIR)/rat-$(OSTYPE)-$(OSVERS): $(OBJS) $(GSMOBJS) $(CRYPTOBJS) $(RATOBJS)
+ 	rm -f $(BINDIR)/rat-$(OSTYPE)-$(OSVERS)
+ 	$(CC) $(RATOBJS) $(OBJS) $(GSMOBJS) $(CRYPTOBJS) $(LDLIBS) $(LDFLAGS) -o $(BINDIR)/rat-$(OSTYPE)-$(OSVERS)
++	cp $(BINDIR)/rat-$(OSTYPE)-$(OSVERS) bin/rat
+ 
+ $(OBJDIR)/%.o: $(SRCDIR)/%.c
+ 	$(CC) $(CFLAGS) $(GSMFLAGS) $(CRYPTFLAGS) -c $(SRCDIR)/$*.c -o $(OBJDIR)/$*.o
diff -ruN ../rat30/files/patch-Makefile_FreeBSD_4 ./files/patch-Makefile_FreeBSD_4
--- ../rat30/files/patch-Makefile_FreeBSD_4	Thu Jan  1 09:00:00 1970
+++ ./files/patch-Makefile_FreeBSD_4	Thu May 10 10:52:55 2001
@@ -0,0 +1,9 @@
+--- Makefile_FreeBSD_4.org	Mon May  7 13:07:46 2001
++++ Makefile_FreeBSD_4	Mon May  7 13:03:51 2001
+@@ -0,0 +1,6 @@
++TCL_INC = /usr/local/include/tcl8.2
++TK_INC  = /usr/local/include/tk8.2
++INCS   = -I/usr/X11R6/include \
++         -I$(TCL_INC)/generic -I$(TK_INC)/generic
++LDLIBS = -L/usr/local/lib \
++         -L/usr/X11R6/lib -ltk82 -ltcl82 -lXext -lX11 -lm 
diff -ruN ../rat30/files/patch-ab ./files/patch-ab
--- ../rat30/files/patch-ab	Thu May 10 10:00:44 2001
+++ ./files/patch-ab	Thu Jan  1 09:00:00 1970
@@ -1,92 +0,0 @@
-*** Makefile.orig	Tue Sep 14 16:39:00 1999
---- Makefile	Mon Sep 18 13:30:23 2000
-***************
-*** 9,29 ****
-  # -DNDEBUG -DDEBUG -DTEST -DGSM -DDEBUG_MIX -DDEBUG_MEM
-  # -DDEBUG_RTP -DREPEAT
-  
-! DEFS += -D$(OSTYPE) -D$(OSTYPE)_$(OSMVER) 
-  CC     = gcc
-  CFLAGS = -Wall -Werror -Wno-implicit-int $(INCS) $(DEFS) -g -O -fsigned-char
-  LDFLAGS= 
-- LDLIBS=  $(LDLIBS) -lm
-  RANLIB = ranlib
-  RAT_HOME = $(PWD)
-  
-  GSMFLAGS   = -DSASR -DFAST -DUSE_FLOAT_MUL
-  
-! include Makefile_$(OSTYPE)_$(OSMVER)
-  
-! BINDIR = bin/$(USER)
-  SRCDIR = src
-! OBJDIR = objs/$(USER)/$(OSTYPE)_$(OSVERS)
-  OBJS   = $(OBJDIR)/codec_encoder.o \
-           $(OBJDIR)/codec_decoder.o \
-           $(OBJDIR)/codec_lpc.o \
---- 9,38 ----
-  # -DNDEBUG -DDEBUG -DTEST -DGSM -DDEBUG_MIX -DDEBUG_MEM
-  # -DDEBUG_RTP -DREPEAT
-  
-! DEFS += -D$(OSTYPE)
-  CC     = gcc
-  CFLAGS = -Wall -Werror -Wno-implicit-int $(INCS) $(DEFS) -g -O -fsigned-char
-  LDFLAGS= 
-  RANLIB = ranlib
-  RAT_HOME = $(PWD)
-  
-  GSMFLAGS   = -DSASR -DFAST -DUSE_FLOAT_MUL
-  
-! X11BASE ?= /usr/X11R6
-! TCL_VER ?= 8.2
-! TCL_SHORTVER ?= 82
-! TK_VER ?= 8.2
-! TK_SHORTVER ?= 82
-! TCL_HOME = /usr/local/include/tcl$(TCL_VER)
-! TK_HOME  = /usr/local/include/tk$(TK_VER)
-! INCS   = -I$(X11BASE)/include \
-!          -I$(TCL_HOME)/generic -I$(TK_HOME)/generic
-! LDLIBS = -L/usr/local/lib -L/usr/X11R6/lib \
-!          -ltk$(TK_SHORTVER) -ltcl$(TCL_SHORTVER) -lXext -lX11 -lm
-  
-! BINDIR = bin
-  SRCDIR = src
-! OBJDIR = objs
-  OBJS   = $(OBJDIR)/codec_encoder.o \
-           $(OBJDIR)/codec_decoder.o \
-           $(OBJDIR)/codec_lpc.o \
-***************
-*** 79,87 ****
-            $(OBJDIR)/crypt_random.o \
-            $(OBJDIR)/md5c.o
-  
-! $(BINDIR)/rat-$(OSTYPE)-$(OSVERS): $(OBJS) $(GSMOBJS) $(CRYPTOBJS) $(RATOBJS)
-! 	rm -f $(BINDIR)/rat-$(OSTYPE)-$(OSVERS)
-! 	$(CC) $(RATOBJS) $(OBJS) $(GSMOBJS) $(CRYPTOBJS) $(LDLIBS) $(LDFLAGS) -o $(BINDIR)/rat-$(OSTYPE)-$(OSVERS)
-  
-  $(OBJDIR)/%.o: $(SRCDIR)/%.c
-  	$(CC) $(CFLAGS) $(GSMFLAGS) $(CRYPTFLAGS) -c $(SRCDIR)/$*.c -o $(OBJDIR)/$*.o
---- 88,96 ----
-            $(OBJDIR)/crypt_random.o \
-            $(OBJDIR)/md5c.o
-  
-! $(BINDIR)/rat: $(OBJS) $(GSMOBJS) $(CRYPTOBJS) $(RATOBJS)
-! 	rm -f $(BINDIR)/rat
-! 	$(CC) $(RATOBJS) $(OBJS) $(GSMOBJS) $(CRYPTOBJS) $(LDLIBS) $(LDFLAGS) -o $(BINDIR)/rat
-  
-  $(OBJDIR)/%.o: $(SRCDIR)/%.c
-  	$(CC) $(CFLAGS) $(GSMFLAGS) $(CRYPTFLAGS) -c $(SRCDIR)/$*.c -o $(OBJDIR)/$*.o
-***************
-*** 134,139 ****
-  	(cd ..; gtar zcvf rat-`date +%Y%m%d`.tgz rat-3.0)
-  
-  depend:
-! 	makedepend $(DEFS) $(INCS) -f Makefile_$(OSTYPE)_$(OSMVER) $(SRCDIR)/*.[ch]
-  
-  
---- 143,148 ----
-  	(cd ..; gtar zcvf rat-`date +%Y%m%d`.tgz rat-3.0)
-  
-  depend:
-! 	makedepend $(DEFS) $(INCS) $(SRCDIR)/*.[ch]
-  
-  
diff -ruN ../rat30/pkg-comment ./pkg-comment
--- ../rat30/pkg-comment	Tue May  8 08:39:27 2001
+++ ./pkg-comment	Mon May  7 12:19:57 2001
@@ -1 +1 @@
-Multicast and unicast robust audio conferencing tool (stable branch)
+IPv4/v6 Multicast and unicast audio conferencing tool
diff -ruN ../rat30/pkg-descr ./pkg-descr
--- ../rat30/pkg-descr	Tue May  8 08:39:27 2001
+++ ./pkg-descr	Thu May 10 11:30:31 2001
@@ -6,5 +6,6 @@
 for packet loss, and load adaption in response to host performance.
 
 This is a stable branch version. Works with half-duplex casrd as well.
+This is required mbone/relate.
 
 WWW: http://www-mice.cs.ucl.ac.uk/multimedia/software/rat/
diff -ruN ../rat30/pkg-plist ./pkg-plist
--- ../rat30/pkg-plist	Tue May  8 08:39:27 2001
+++ ./pkg-plist	Thu May 10 11:09:03 2001
@@ -1 +1 @@
-bin/rat
+bin/rat30
Comment 3 kiri freebsd_committer freebsd_triage 2001-06-07 03:02:49 UTC
State Changed
From-To: analyzed->closed

PR has been modified a part,but confirmed by submitter(Takeshi Mutoh). 
Committed Thanks!