diff options
author | steve <steve@FreeBSD.org> | 2000-05-30 07:54:42 +0800 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 2000-05-30 07:54:42 +0800 |
commit | 1617a83c9d8610f727d6a1c58101992672a5f0d9 (patch) | |
tree | 866322644d2f77e67445ce9c6810baa1d0f918c6 /graphics/mplex | |
parent | 78b885b1c83ed22960cc39252b6601f9a09450ab (diff) | |
download | freebsd-ports-gnome-1617a83c9d8610f727d6a1c58101992672a5f0d9.tar.gz freebsd-ports-gnome-1617a83c9d8610f727d6a1c58101992672a5f0d9.tar.zst freebsd-ports-gnome-1617a83c9d8610f727d6a1c58101992672a5f0d9.zip |
- Fix MASTER_SITES
- Support CC/CFLAGS properly
PR: 16674
Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Diffstat (limited to 'graphics/mplex')
-rw-r--r-- | graphics/mplex/Makefile | 6 | ||||
-rw-r--r-- | graphics/mplex/files/patch-ab | 14 | ||||
-rw-r--r-- | graphics/mplex/files/patch-ac | 22 | ||||
-rw-r--r-- | graphics/mplex/files/patch-ad | 64 | ||||
-rw-r--r-- | graphics/mplex/files/patch-ae | 20 |
5 files changed, 123 insertions, 3 deletions
diff --git a/graphics/mplex/Makefile b/graphics/mplex/Makefile index 0182567bc5b3..8ce9d876d8f5 100644 --- a/graphics/mplex/Makefile +++ b/graphics/mplex/Makefile @@ -8,14 +8,14 @@ PORTNAME= mplex PORTVERSION= 1.1 CATEGORIES= graphics -MASTER_SITES= ftp://ftp.informatik.tu-muenchen.de/pub/comp/graphics/mpeg/mplex/ +MASTER_SITES= ftp://ftp.leo.org/pub/comp/general/graphics/mpeg/mplex/ MAINTAINER= ports@FreeBSD.org MAN1= mplex.1 do-install: - @${INSTALL_PROGRAM} ${WRKSRC}/mplex ${PREFIX}/bin - @${INSTALL_MAN} ${FILESDIR}/mplex.1 ${PREFIX}/man/man1 + ${INSTALL_PROGRAM} ${WRKSRC}/mplex ${PREFIX}/bin + ${INSTALL_MAN} ${FILESDIR}/mplex.1 ${PREFIX}/man/man1 .include <bsd.port.mk> diff --git a/graphics/mplex/files/patch-ab b/graphics/mplex/files/patch-ab new file mode 100644 index 000000000000..4604cf28b84c --- /dev/null +++ b/graphics/mplex/files/patch-ab @@ -0,0 +1,14 @@ +--- Makefile.orig Tue Apr 11 16:46:13 1995 ++++ Makefile Fri Feb 11 09:53:49 2000 +@@ -19,9 +19,9 @@ + + #CFLAGS = -g + +-CFLAGS = -O ++CFLAGS?= -O + LDFLAGS= -lm +-CC = cc ++CC ?= cc + RM = /bin/rm -f + + OBJS = main.o bitstrm.o buffer.o inits.o inptstrm.o interact.o multplex.o systems.o timecode.o diff --git a/graphics/mplex/files/patch-ac b/graphics/mplex/files/patch-ac new file mode 100644 index 000000000000..71c8be526b9b --- /dev/null +++ b/graphics/mplex/files/patch-ac @@ -0,0 +1,22 @@ +--- inptstrm.c.orig Wed May 31 22:04:11 1995 ++++ inptstrm.c Fri Feb 11 09:52:17 2000 +@@ -310,7 +310,9 @@ + fclose (info_file); + output_info_video (video_info); + ++#if 0 + ask_continue (); ++#endif + } + + /************************************************************************* +@@ -565,7 +567,9 @@ + close_bit_stream_r (&audio_bs); + fclose (info_file); + output_info_audio (audio_info); ++#if 0 + ask_continue (); ++#endif + + } + diff --git a/graphics/mplex/files/patch-ad b/graphics/mplex/files/patch-ad new file mode 100644 index 000000000000..cd10d6624057 --- /dev/null +++ b/graphics/mplex/files/patch-ad @@ -0,0 +1,64 @@ +--- multplex.c.orig Tue Jun 6 21:16:52 1995 ++++ multplex.c Fri Feb 11 09:52:17 2000 +@@ -129,21 +129,28 @@ + picture_start = TRUE; + } + ++#ifdef ASK_FOR_PARAMS + printf("\nMerging elementary streams to MPEG/SYSTEMS multiplexed stream.\n"); + printf("\n+------------------ MPEG/SYSTEMS INFORMATION -----------------+\n"); +- ++ + do ++ + { + printf ("\nsector size (CD-ROM 2324 bytes) : "); + scanf ("%ld", §or_size); + } while (sector_size>MAX_SECTOR_SIZE); +- + printf ("packs to packets ratio 1 : "); + scanf ("%ld", &packets_per_pack); + printf ("\nSTD video buffer in kB (CSPS: max 46 kB) : "); + scanf ("%ld", &video_buffer_size); + printf ("STD audio buffer in kB (CSPS: max 4 kB) : "); + scanf ("%ld", &audio_buffer_size); ++#else ++ sector_size=2324; ++ packets_per_pack=1; ++ video_buffer_size=46; ++ audio_buffer_size=4; ++#endif + + write_pack = packets_per_pack; + video_buffer_size *= 1024; +@@ -197,6 +204,7 @@ + (double)(packets_per_pack-1.))) / (double)(packets_per_pack) ); + data_rate = ceil(dmux_rate/50.)*50; + ++#ifdef ASK_FOR_PARAMS + printf ("\ncomputed multiplexed stream data rate : %7.3f\n",dmux_rate); + printf ("target data rate (e.g. %6u) : ",data_rate); + scanf ("%lf", &dmux_rate); +@@ -206,12 +214,22 @@ + scanf ("%u", &video_delay_ms); + printf ("audio stream startup offset (ms) : "); + scanf ("%u", &audio_delay_ms); ++#else ++ dmux_rate=data_rate; ++ sectors_delay=0; ++ video_delay_ms=0; ++ audio_delay_ms=0; ++#endif + + video_delay = (double)video_delay_ms*(double)(CLOCKS/1000); + audio_delay = (double)audio_delay_ms*(double)(CLOCKS/1000); + ++#ifdef ASK_FOR_PARAMS + verbose=ask_verbose(); + printf ("\n"); ++#else ++ verbose=1; ++#endif + + #ifdef TIMER + gettimeofday (&tp_global_start,NULL); diff --git a/graphics/mplex/files/patch-ae b/graphics/mplex/files/patch-ae new file mode 100644 index 000000000000..41149fd1580f --- /dev/null +++ b/graphics/mplex/files/patch-ae @@ -0,0 +1,20 @@ +--- interact.c.orig Wed May 31 20:18:33 1995 ++++ interact.c Fri Feb 11 10:04:07 2000 +@@ -67,7 +67,7 @@ + char input[20]; + + printf ("\nContinue processing (y/n) : "); +- do gets (input); ++ do fgets (input, sizeof(input), stdin); + while (input[0]!='N'&&input[0]!='n'&&input[0]!='y'&&input[0]!='Y'); + + if (input[0]=='N' || input[0]=='n') +@@ -92,7 +92,7 @@ + char input[20]; + + printf ("\nVery verbose mode (y/n) : "); +- do gets (input); ++ do fgets (input, sizeof(input), stdin); + while (input[0]!='N'&&input[0]!='n'&&input[0]!='y'&&input[0]!='Y'); + + if (input[0]=='N' || input[0]=='n') return (FALSE); else return (TRUE); |