1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Fix build and clean up, mostly by renaming patches.

Interestingly, the build failure and one of the sed commands in the post-patch
target were both due to problems introduced by one of the patches.
This commit is contained in:
Adam Weinberger 2014-07-27 13:35:15 +00:00
parent 1bbdd2d742
commit e40587d4d3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363063
11 changed files with 12 additions and 13 deletions

View File

@ -6,7 +6,6 @@ PORTVERSION= 1.2
CATEGORIES= audio
MASTER_SITES= ftp://ftp.tnt.uni-hannover.de/pub/MPEG/audio/other-servers/Maplay-Mirror/
DISTNAME= ${PORTNAME}${PORTVERSION:S/./_/}
EXTRACT_SUFX= .tar.Z
MAINTAINER= ports@FreeBSD.org
COMMENT= MPEG audio player/decoder decoding layer I and II MPEG audio streams
@ -14,20 +13,16 @@ COMMENT= MPEG audio player/decoder decoding layer I and II MPEG audio streams
LICENSE= GPLv2
NO_WRKSUBDIR= yes
USES= tar:Z
PLIST_FILES= bin/maplay
PORTDOCS= README
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's,^main,int main,g' ${WRKSRC}/maplay.cc
@${REINPLACE_CMD} -e 's,machine/soundcard.h,sys/soundcard.h,' \
${WRKSRC}/configuration.sh
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/maplay ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -9,13 +9,13 @@
+ FreeBSD*)
+ COMPILER='${CXX}'
+ if [ ${ARCH} = "i386" ]; then
+ COMPILERFLAGS='-m486 -DLINUX -DDAMN_INTEL_BYTE_ORDER'
+ COMPILERFLAGS='-DLINUX -DDAMN_INTEL_BYTE_ORDER'
+ else
+ COMPILERFLAGS='-DLINUX'
+ fi
+ INCLUDEDIRS=
+ LIBRARIES=
+ AUDIO_INCLUDES='#include <machine/soundcard.h>' ;;
+ AUDIO_INCLUDES='#include <sys/soundcard.h>' ;;
Linux*)
COMPILER=g++
COMPILERFLAGS='-O2 -m486 -funroll-loops -DLINUX -DDAMN_INTEL_BYTE_ORDER'

View File

@ -1,5 +1,5 @@
--- maplay.cc.orig Thu Jun 23 22:14:36 1994
+++ maplay.cc Thu Nov 21 16:40:21 2002
--- maplay.cc.orig 1994-06-23 08:14:36.000000000 -0400
+++ maplay.cc 2014-07-27 09:22:27.000000000 -0400
@@ -39,8 +39,8 @@
#include <stdlib.h>
#include <string.h>
@ -34,8 +34,12 @@
static real scalefactor;
// data extracted from header of first frame:
@@ -93,12 +92,12 @@
main (int argc, char *argv[])
@@ -90,15 +89,15 @@
}
-main (int argc, char *argv[])
+int main (int argc, char *argv[])
{
int i;
- bool read_ready = False, write_ready = False;