aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-07-27 21:35:15 +0800
committeradamw <adamw@FreeBSD.org>2014-07-27 21:35:15 +0800
commitd415912b591402550fc727bdc4fbd378e02a4ead (patch)
tree2db0b7ac320a1ae096ea329c968296a95b63181d /audio
parent595feee248761a1aee8b66bba0bce0eda5f5609a (diff)
downloadfreebsd-ports-gnome-d415912b591402550fc727bdc4fbd378e02a4ead.tar.gz
freebsd-ports-gnome-d415912b591402550fc727bdc4fbd378e02a4ead.tar.zst
freebsd-ports-gnome-d415912b591402550fc727bdc4fbd378e02a4ead.zip
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.
Diffstat (limited to 'audio')
-rw-r--r--audio/maplay/Makefile9
-rw-r--r--audio/maplay/files/patch-Makefile (renamed from audio/maplay/files/patch-ab)0
-rw-r--r--audio/maplay/files/patch-all.h (renamed from audio/maplay/files/patch-ap)0
-rw-r--r--audio/maplay/files/patch-configuration.sh (renamed from audio/maplay/files/patch-ad)4
-rw-r--r--audio/maplay/files/patch-header.h (renamed from audio/maplay/files/patch-af)0
-rw-r--r--audio/maplay/files/patch-ibitstream.h (renamed from audio/maplay/files/patch-ah)0
-rw-r--r--audio/maplay/files/patch-maplay.cc12
-rw-r--r--audio/maplay/files/patch-subband.h (renamed from audio/maplay/files/patch-ak)0
-rw-r--r--audio/maplay/files/patch-subband_layer_1.h (renamed from audio/maplay/files/patch-am)0
-rw-r--r--audio/maplay/files/patch-subband_layer_2.cc (renamed from audio/maplay/files/patch-an)0
-rw-r--r--audio/maplay/files/patch-subband_layer_2.h (renamed from audio/maplay/files/patch-ao)0
11 files changed, 12 insertions, 13 deletions
diff --git a/audio/maplay/Makefile b/audio/maplay/Makefile
index 754626d3815f..6382b44aac98 100644
--- a/audio/maplay/Makefile
+++ b/audio/maplay/Makefile
@@ -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>
diff --git a/audio/maplay/files/patch-ab b/audio/maplay/files/patch-Makefile
index 2b8bd0fe7c96..2b8bd0fe7c96 100644
--- a/audio/maplay/files/patch-ab
+++ b/audio/maplay/files/patch-Makefile
diff --git a/audio/maplay/files/patch-ap b/audio/maplay/files/patch-all.h
index 05e126e58b21..05e126e58b21 100644
--- a/audio/maplay/files/patch-ap
+++ b/audio/maplay/files/patch-all.h
diff --git a/audio/maplay/files/patch-ad b/audio/maplay/files/patch-configuration.sh
index 3829d864a091..c60df37ab9b4 100644
--- a/audio/maplay/files/patch-ad
+++ b/audio/maplay/files/patch-configuration.sh
@@ -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'
diff --git a/audio/maplay/files/patch-af b/audio/maplay/files/patch-header.h
index 342deecaf589..342deecaf589 100644
--- a/audio/maplay/files/patch-af
+++ b/audio/maplay/files/patch-header.h
diff --git a/audio/maplay/files/patch-ah b/audio/maplay/files/patch-ibitstream.h
index fb92627bd6e6..fb92627bd6e6 100644
--- a/audio/maplay/files/patch-ah
+++ b/audio/maplay/files/patch-ibitstream.h
diff --git a/audio/maplay/files/patch-maplay.cc b/audio/maplay/files/patch-maplay.cc
index ac553386fb82..efc0b0d38535 100644
--- a/audio/maplay/files/patch-maplay.cc
+++ b/audio/maplay/files/patch-maplay.cc
@@ -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;
diff --git a/audio/maplay/files/patch-ak b/audio/maplay/files/patch-subband.h
index cca6875c8c00..cca6875c8c00 100644
--- a/audio/maplay/files/patch-ak
+++ b/audio/maplay/files/patch-subband.h
diff --git a/audio/maplay/files/patch-am b/audio/maplay/files/patch-subband_layer_1.h
index d92c2f421598..d92c2f421598 100644
--- a/audio/maplay/files/patch-am
+++ b/audio/maplay/files/patch-subband_layer_1.h
diff --git a/audio/maplay/files/patch-an b/audio/maplay/files/patch-subband_layer_2.cc
index b30d8ad479a6..b30d8ad479a6 100644
--- a/audio/maplay/files/patch-an
+++ b/audio/maplay/files/patch-subband_layer_2.cc
diff --git a/audio/maplay/files/patch-ao b/audio/maplay/files/patch-subband_layer_2.h
index 313ab9b2c1fb..313ab9b2c1fb 100644
--- a/audio/maplay/files/patch-ao
+++ b/audio/maplay/files/patch-subband_layer_2.h