mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +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:
parent
1bbdd2d742
commit
e40587d4d3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363063
@ -6,7 +6,6 @@ PORTVERSION= 1.2
|
|||||||
CATEGORIES= audio
|
CATEGORIES= audio
|
||||||
MASTER_SITES= ftp://ftp.tnt.uni-hannover.de/pub/MPEG/audio/other-servers/Maplay-Mirror/
|
MASTER_SITES= ftp://ftp.tnt.uni-hannover.de/pub/MPEG/audio/other-servers/Maplay-Mirror/
|
||||||
DISTNAME= ${PORTNAME}${PORTVERSION:S/./_/}
|
DISTNAME= ${PORTNAME}${PORTVERSION:S/./_/}
|
||||||
EXTRACT_SUFX= .tar.Z
|
|
||||||
|
|
||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= ports@FreeBSD.org
|
||||||
COMMENT= MPEG audio player/decoder decoding layer I and II MPEG audio streams
|
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
|
LICENSE= GPLv2
|
||||||
|
|
||||||
NO_WRKSUBDIR= yes
|
NO_WRKSUBDIR= yes
|
||||||
|
USES= tar:Z
|
||||||
|
|
||||||
PLIST_FILES= bin/maplay
|
PLIST_FILES= bin/maplay
|
||||||
PORTDOCS= README
|
PORTDOCS= README
|
||||||
|
|
||||||
OPTIONS_DEFINE= DOCS
|
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:
|
do-install:
|
||||||
${INSTALL_PROGRAM} ${WRKSRC}/maplay ${STAGEDIR}${PREFIX}/bin
|
${INSTALL_PROGRAM} ${WRKSRC}/maplay ${STAGEDIR}${PREFIX}/bin
|
||||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/
|
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
@ -9,13 +9,13 @@
|
|||||||
+ FreeBSD*)
|
+ FreeBSD*)
|
||||||
+ COMPILER='${CXX}'
|
+ COMPILER='${CXX}'
|
||||||
+ if [ ${ARCH} = "i386" ]; then
|
+ if [ ${ARCH} = "i386" ]; then
|
||||||
+ COMPILERFLAGS='-m486 -DLINUX -DDAMN_INTEL_BYTE_ORDER'
|
+ COMPILERFLAGS='-DLINUX -DDAMN_INTEL_BYTE_ORDER'
|
||||||
+ else
|
+ else
|
||||||
+ COMPILERFLAGS='-DLINUX'
|
+ COMPILERFLAGS='-DLINUX'
|
||||||
+ fi
|
+ fi
|
||||||
+ INCLUDEDIRS=
|
+ INCLUDEDIRS=
|
||||||
+ LIBRARIES=
|
+ LIBRARIES=
|
||||||
+ AUDIO_INCLUDES='#include <machine/soundcard.h>' ;;
|
+ AUDIO_INCLUDES='#include <sys/soundcard.h>' ;;
|
||||||
Linux*)
|
Linux*)
|
||||||
COMPILER=g++
|
COMPILER=g++
|
||||||
COMPILERFLAGS='-O2 -m486 -funroll-loops -DLINUX -DDAMN_INTEL_BYTE_ORDER'
|
COMPILERFLAGS='-O2 -m486 -funroll-loops -DLINUX -DDAMN_INTEL_BYTE_ORDER'
|
@ -1,5 +1,5 @@
|
|||||||
--- maplay.cc.orig Thu Jun 23 22:14:36 1994
|
--- maplay.cc.orig 1994-06-23 08:14:36.000000000 -0400
|
||||||
+++ maplay.cc Thu Nov 21 16:40:21 2002
|
+++ maplay.cc 2014-07-27 09:22:27.000000000 -0400
|
||||||
@@ -39,8 +39,8 @@
|
@@ -39,8 +39,8 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -34,8 +34,12 @@
|
|||||||
static real scalefactor;
|
static real scalefactor;
|
||||||
|
|
||||||
// data extracted from header of first frame:
|
// data extracted from header of first frame:
|
||||||
@@ -93,12 +92,12 @@
|
@@ -90,15 +89,15 @@
|
||||||
main (int argc, char *argv[])
|
}
|
||||||
|
|
||||||
|
|
||||||
|
-main (int argc, char *argv[])
|
||||||
|
+int main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
- bool read_ready = False, write_ready = False;
|
- bool read_ready = False, write_ready = False;
|
||||||
|
Loading…
Reference in New Issue
Block a user