1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

Add support for FreeBSD/Alpha and minor tweaks to Makefile.

PR:		15710
Submitted by:	maintainer
This commit is contained in:
Steve Price 1999-12-27 21:47:15 +00:00
parent 81a6313344
commit a91f257776
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=24174
4 changed files with 82 additions and 5 deletions

View File

@ -1,7 +1,7 @@
# New ports collection makefile for: waveplay
# Version required: 1.0
# Date created: 23 Jan 1999
# Whom: ysonoda@dontaku.csce.kyushu-u.ac.jp
# Whom: Yoshihide SONODA <ysonoda@dontaku.csce.kyushu-u.ac.jp>
#
# $FreeBSD$
#
@ -14,10 +14,7 @@ MASTER_SITES= http://dontaku.csce.kyushu-u.ac.jp/~ysonoda/archives/program/Free
MAINTAINER= ysonoda@dontaku.csce.kyushu-u.ac.jp
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/waveplay ${PREFIX}/bin/waveplay
post-install:
strip ${PREFIX}/bin/waveplay
${INSTALL_PROGRAM} ${WRKSRC}/waveplay ${PREFIX}/bin/waveplay
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/waveplay
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/waveplay/

View File

@ -0,0 +1,10 @@
--- Makefile.orig Thu Dec 23 17:48:19 1999
+++ Makefile Thu Dec 23 17:48:39 1999
@@ -1,7 +1,5 @@
#CC = gcc28
-CC = cc #egcc
#CFLAGS = -g -O -Wall -DDEBUG
-CFLAGS = -O -Wall
SRC = waveplay.c
OBJS = waveplay.o
HDR = wavefmt.h

View File

@ -0,0 +1,19 @@
*** waveplay.c~ Wed Sep 9 14:24:05 1998
--- waveplay.c Wed Nov 24 15:11:40 1999
***************
*** 150,156 ****
{
if (!stdin_flag)
fprintf(stderr, "File name : %s\n", filename);
! fprintf(stderr, "Sampling rate : %ld Hz\n", wf.nSamplesPerSec);
fprintf(stderr, "Bits/Sample : %d Bits\n", wf.wBitsPerSample);
fprintf(stderr, "Channels : %d\n", wf.nChannels);
if (!rflag)
--- 150,156 ----
{
if (!stdin_flag)
fprintf(stderr, "File name : %s\n", filename);
! fprintf(stderr, "Sampling rate : %d Hz\n", wf.nSamplesPerSec);
fprintf(stderr, "Bits/Sample : %d Bits\n", wf.wBitsPerSample);
fprintf(stderr, "Channels : %d\n", wf.nChannels);
if (!rflag)

View File

@ -0,0 +1,51 @@
*** wavefmt.h~ Wed Sep 9 14:24:05 1998
--- wavefmt.h Wed Nov 24 15:05:57 1999
***************
*** 11,33 ****
/* $B9=B$BNDj5A(B (ref. MS-Windows mmsystem.h) */
typedef struct tWAVEFORMAT
{
! u_short wFormatTag;
! u_short nChannels;
! u_long nSamplesPerSec;
! u_long nAvgBytesPerSec;
! u_short nBlockAlign;
! u_short wBitsPerSample;
} WAVEFORMAT, *PWAVEFORMAT;
typedef struct tWAVEFORMATEX
{
! u_short wFormatTag;
! u_short nChannels;
! u_long nSamplesPerSec;
! u_long nAvgBytesPerSec;
! u_short nBlockAlign;
! u_short wBitsPerSample;
! u_short cbSize;
} WAVEFORMATEX, *PWAVEFORMATEX;
#endif /* _WAVE_FMT_H_ */
--- 11,33 ----
/* $B9=B$BNDj5A(B (ref. MS-Windows mmsystem.h) */
typedef struct tWAVEFORMAT
{
! u_int16_t wFormatTag;
! u_int16_t nChannels;
! u_int32_t nSamplesPerSec;
! u_int32_t nAvgBytesPerSec;
! u_int16_t nBlockAlign;
! u_int16_t wBitsPerSample;
} WAVEFORMAT, *PWAVEFORMAT;
typedef struct tWAVEFORMATEX
{
! u_int16_t wFormatTag;
! u_int16_t nChannels;
! u_int32_t nSamplesPerSec;
! u_int32_t nAvgBytesPerSec;
! u_int16_t nBlockAlign;
! u_int16_t wBitsPerSample;
! u_int16_t cbSize;
} WAVEFORMATEX, *PWAVEFORMATEX;
#endif /* _WAVE_FMT_H_ */