aboutsummaryrefslogtreecommitdiffstats
path: root/mbone
diff options
context:
space:
mode:
authorsat <sat@FreeBSD.org>2007-07-15 01:32:14 +0800
committersat <sat@FreeBSD.org>2007-07-15 01:32:14 +0800
commit8800bde38f5190d6b34735247eb824801989d7bb (patch)
tree58a347b7334e21543f42204cf549e4ccda198877 /mbone
parentef623e644a820cb4770c42b484a1c633b0562231 (diff)
downloadfreebsd-ports-graphics-8800bde38f5190d6b34735247eb824801989d7bb.tar.gz
freebsd-ports-graphics-8800bde38f5190d6b34735247eb824801989d7bb.tar.zst
freebsd-ports-graphics-8800bde38f5190d6b34735247eb824801989d7bb.zip
- Unbreak with gcc42
- Clean up a bit
Diffstat (limited to 'mbone')
-rw-r--r--mbone/rat30/Makefile16
-rw-r--r--mbone/rat30/files/patch-Makefile4
-rw-r--r--mbone/rat30/files/patch-Makefile_FreeBSD_44
-rw-r--r--mbone/rat30/files/patch-src__codec_encoder.c12
4 files changed, 21 insertions, 15 deletions
diff --git a/mbone/rat30/Makefile b/mbone/rat30/Makefile
index 945fce6126e..2eff54020b3 100644
--- a/mbone/rat30/Makefile
+++ b/mbone/rat30/Makefile
@@ -9,7 +9,8 @@ PORTNAME= rat
PORTVERSION= 3.0.35
PORTREVISION= 2
CATEGORIES= mbone audio
-MASTER_SITES= http://www-mice.cs.ucl.ac.uk/multimedia/software/rat/releases/${PORTVERSION}/
+MASTER_SITES= http://www-mice.cs.ucl.ac.uk/multimedia/software/rat/releases/${PORTVERSION}/ \
+ CENKES
MAINTAINER= ports@FreeBSD.org
COMMENT= IPv4/v6 Multicast and unicast audio conferencing tool
@@ -20,22 +21,15 @@ WRKSRC= ${WRKDIR}/rat-3.0
USE_GMAKE= yes
MAN1= rat.1
-MANCOMPRESSED= no
PLIST_FILES= bin/rat30
LATEST_LINK= rat30
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 700042
-BROKEN= Does not compile with GCC 4.2
-.endif
-
do-build:
- (cd ${WRKSRC};${SETENV} ${MAKE_ENV} MAKE=${GMAKE} ${SH} ./Build rat)
+ cd ${WRKSRC};${SETENV} ${MAKE_ENV} MAKE=${GMAKE} ${SH} ./Build rat
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/rat ${PREFIX}/bin/rat30
- ${INSTALL_MAN} ${WRKSRC}/man/man1/rat.1 ${PREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/man/man1/rat.1 ${MAN1PREFIX}/man/man1/
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/mbone/rat30/files/patch-Makefile b/mbone/rat30/files/patch-Makefile
index b244344647c..58c49275a23 100644
--- a/mbone/rat30/files/patch-Makefile
+++ b/mbone/rat30/files/patch-Makefile
@@ -1,5 +1,5 @@
---- Makefile.orig Tue Sep 14 12:39:00 1999
-+++ Makefile Sat Mar 17 18:16:04 2007
+--- ./Makefile.orig 1999-09-14 14:39:00.000000000 +0400
++++ ./Makefile 2007-07-14 20:49:46.000000000 +0400
@@ -10,8 +10,8 @@
# -DDEBUG_RTP -DREPEAT
diff --git a/mbone/rat30/files/patch-Makefile_FreeBSD_4 b/mbone/rat30/files/patch-Makefile_FreeBSD_4
index e49649bfc17..61d20251f05 100644
--- a/mbone/rat30/files/patch-Makefile_FreeBSD_4
+++ b/mbone/rat30/files/patch-Makefile_FreeBSD_4
@@ -1,5 +1,5 @@
---- Makefile_FreeBSD_4.org Mon May 7 13:07:46 2001
-+++ Makefile_FreeBSD_4 Mon May 7 13:03:51 2001
+--- ./Makefile_FreeBSD_4.orig 2007-07-14 20:49:46.000000000 +0400
++++ ./Makefile_FreeBSD_4 2007-07-14 20:49:46.000000000 +0400
@@ -0,0 +1,6 @@
+TCL_INC = ${LOCALBASE}/include/tcl8.2
+TK_INC = ${LOCALBASE}/include/tk8.2
diff --git a/mbone/rat30/files/patch-src__codec_encoder.c b/mbone/rat30/files/patch-src__codec_encoder.c
new file mode 100644
index 00000000000..7f940d8cafc
--- /dev/null
+++ b/mbone/rat30/files/patch-src__codec_encoder.c
@@ -0,0 +1,12 @@
+--- ./src/codec_encoder.c.orig 2007-07-14 20:50:06.000000000 +0400
++++ ./src/codec_encoder.c 2007-07-14 20:53:12.000000000 +0400
+@@ -48,7 +48,8 @@
+ int i;
+ sample *d;
+
+- d = (sample *)c->data = (sample *)block_alloc(SAMPLES_PER_UNIT * BYTES_PER_SAMPLE);
++ c->data = (sample *)block_alloc(SAMPLES_PER_UNIT * BYTES_PER_SAMPLE);
++ d = (sample *)c->data;
+ c->data_len = SAMPLES_PER_UNIT * BYTES_PER_SAMPLE;
+ for (i=0; i < SAMPLES_PER_UNIT; i++) {
+ *d++ = htons(*data);