diff options
author | hans <hans@pkgsrc.org> | 2012-02-15 21:37:48 +0000 |
---|---|---|
committer | hans <hans@pkgsrc.org> | 2012-02-15 21:37:48 +0000 |
commit | 1333d448b669fd919c6f5bc9a645bee80879f759 (patch) | |
tree | c1b33f463869e52f21bc38c4b5309d977cc4fd7f /audio/gramofile | |
parent | 68501cd24c8d29e1197b820e7fa00e50034898b6 (diff) | |
download | pkgsrc-1333d448b669fd919c6f5bc9a645bee80879f759.tar.gz |
Fix build on SunOS.
Diffstat (limited to 'audio/gramofile')
-rw-r--r-- | audio/gramofile/distinfo | 8 | ||||
-rw-r--r-- | audio/gramofile/patches/patch-aa | 4 | ||||
-rw-r--r-- | audio/gramofile/patches/patch-ab | 6 | ||||
-rw-r--r-- | audio/gramofile/patches/patch-ac | 56 |
4 files changed, 38 insertions, 36 deletions
diff --git a/audio/gramofile/distinfo b/audio/gramofile/distinfo index c0edd8b3744..92ced4fbdd8 100644 --- a/audio/gramofile/distinfo +++ b/audio/gramofile/distinfo @@ -1,10 +1,10 @@ -$NetBSD: distinfo,v 1.9 2011/09/04 01:42:24 dholland Exp $ +$NetBSD: distinfo,v 1.10 2012/02/15 21:37:48 hans Exp $ SHA1 (gramofile-1.6.tar.gz) = 6e5365d9e04801725be694fefcff5fc10ea2f912 RMD160 (gramofile-1.6.tar.gz) = 3f7c8a8e8053e92ece830bbb1138fc7ed1c49967 Size (gramofile-1.6.tar.gz) = 108596 bytes -SHA1 (patch-aa) = be9de0d0c8699328610c707c57edf26b9bf28863 -SHA1 (patch-ab) = 504cdb14c7ab11179e6cddfc32179a7a3528a67a -SHA1 (patch-ac) = 38094ec6a4e1e90e3d03eef5ce3f6fdb8d0621bb +SHA1 (patch-aa) = d9cfec7b0243efeb9785b65dbb5c95725d646bdb +SHA1 (patch-ab) = 1f599c0dc94dd6d420c7ba59e75a9829180dc4df +SHA1 (patch-ac) = 86e4431b5cd3e98a19e63f070fb1e374b1fdd4ca SHA1 (patch-bplaysrc_bplay_c) = 59f0db9a664245c2d21e791c2910854f5c9ecdce SHA1 (patch-gramofile_c) = 8c73c1db912894bc6f7cfc3fa191f1521e5d5b8d diff --git a/audio/gramofile/patches/patch-aa b/audio/gramofile/patches/patch-aa index ead66efc30e..dcf516e1732 100644 --- a/audio/gramofile/patches/patch-aa +++ b/audio/gramofile/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.4 2008/03/17 22:28:13 jlam Exp $ +$NetBSD: patch-aa,v 1.5 2012/02/15 21:37:48 hans Exp $ --- Makefile.orig 2000-03-28 15:23:58.000000000 -0500 +++ Makefile @@ -23,7 +23,7 @@ $NetBSD: patch-aa,v 1.4 2008/03/17 22:28:13 jlam Exp $ COPY_A = -a - +else -+ifeq (,$(filter-out NetBSD DragonFly,$(OS))) ++ifeq (,$(filter-out NetBSD DragonFly SunOS,$(OS))) # For FreeBSD (and maybe others), use these: -#CFLAGS = -Wall -O2 -DTURBO_MEDIAN -DTURBO_BUFFER -#DEPS = $(OBJS) makebplay diff --git a/audio/gramofile/patches/patch-ab b/audio/gramofile/patches/patch-ab index aa2bfe80080..6575401819b 100644 --- a/audio/gramofile/patches/patch-ab +++ b/audio/gramofile/patches/patch-ab @@ -1,8 +1,8 @@ -$NetBSD: patch-ab,v 1.2 2005/11/11 16:49:32 joerg Exp $ +$NetBSD: patch-ab,v 1.3 2012/02/15 21:37:48 hans Exp $ --- bplaysrc/Makefile.orig 2000-03-27 21:24:46.000000000 +0000 +++ bplaysrc/Makefile -@@ -6,18 +6,29 @@ OBJS = bplay.o sndfunc.o shmbuf.o ../yes +@@ -6,18 +6,27 @@ OBJS = bplay.o sndfunc.o shmbuf.o ../yes ../clrscr.o ../secshms.o #SRCS = bplay.c sndfunc.o shmbuf.c @@ -25,7 +25,6 @@ $NetBSD: patch-ab,v 1.2 2005/11/11 16:49:32 joerg Exp $ +CFLAGS = -Wall -O2 -DLP2CD -DVUMETER +LIBS = -lcurses ${LIBOSSAUDIO} +else -+ifeq (${OS}, NetBSD) # For FreeBSD (and maybe others), use these: -#CFLAGS = -Wall -O2 -DLP2CD -DVUMETER # -DDEBUG -#LIBS = -lncurses @@ -33,7 +32,6 @@ $NetBSD: patch-ab,v 1.2 2005/11/11 16:49:32 joerg Exp $ +LIBS = -lcurses ${LIBOSSAUDIO} +endif +endif -+endif # -DOLD_CURSES can be used here, too. diff --git a/audio/gramofile/patches/patch-ac b/audio/gramofile/patches/patch-ac index b08b0cc0350..3ff605c1dd8 100644 --- a/audio/gramofile/patches/patch-ac +++ b/audio/gramofile/patches/patch-ac @@ -1,4 +1,4 @@ -$NetBSD: patch-ac,v 1.3 2004/11/29 09:17:10 agc Exp $ +$NetBSD: patch-ac,v 1.4 2012/02/15 21:37:48 hans Exp $ Use fixed size fields @@ -11,9 +11,9 @@ Use fixed size fields -#define DATALEN(bp) ((u_long)(bp.BlockLen[0]) | \ - ((u_long)(bp.BlockLen[1]) << 8) | \ - ((u_long)(bp.BlockLen[2]) << 16) ) -+#define DATALEN(bp) ((u_int32_t)(bp.BlockLen[0]) | \ -+ ((u_int32_t)(bp.BlockLen[1]) << 8) | \ -+ ((u_int32_t)(bp.BlockLen[2]) << 16) ) ++#define DATALEN(bp) ((uint32_t)(bp.BlockLen[0]) | \ ++ ((uint32_t)(bp.BlockLen[1]) << 8) | \ ++ ((uint32_t)(bp.BlockLen[2]) << 16) ) typedef struct vochead { @@ -21,31 +21,35 @@ Use fixed size fields - u_short BlockOffset; /* Offset to first block from top of file */ - u_short Version; /* VOC-file version */ - u_short IDCode; /* complement of version + 0x1234 */ -+ u_int16_t BlockOffset; /* Offset to first block from top of file */ -+ u_int16_t Version; /* VOC-file version */ -+ u_int16_t IDCode; /* complement of version + 0x1234 */ ++ uint16_t BlockOffset; /* Offset to first block from top of file */ ++ uint16_t Version; /* VOC-file version */ ++ uint16_t IDCode; /* complement of version + 0x1234 */ } vochead; -@@ -36,7 +36,7 @@ +@@ -36,7 +36,7 @@ blockT1; typedef struct blockT8 { - u_short TimeConstant; -+ u_int16_t TimeConstant; ++ uint16_t TimeConstant; u_char PackMethod; u_char VoiceMode; } -@@ -47,7 +47,7 @@ - u_int SamplesPerSec; +@@ -44,10 +44,10 @@ blockT8; + + typedef struct blockT9 + { +- u_int SamplesPerSec; ++ uint SamplesPerSec; u_char BitsPerSample; u_char Channels; - u_short Format; -+ u_int16_t Format; ++ uint16_t Format; u_char reserved[4]; } blockT9; -@@ -62,21 +62,21 @@ +@@ -62,21 +62,21 @@ blockT9; */ typedef struct wavhead { @@ -61,23 +65,23 @@ Use fixed size fields - u_long byte_p_sec; - u_short byte_p_spl; /* samplesize; 1 or 2 bytes */ - u_short bit_p_spl; /* 8, 12 or 16 bit */ -+ u_int32_t main_chunk; /* 'RIFF' */ -+ u_int32_t length; /* Length of rest of file */ -+ u_int32_t chunk_type; /* 'WAVE' */ ++ uint32_t main_chunk; /* 'RIFF' */ ++ uint32_t length; /* Length of rest of file */ ++ uint32_t chunk_type; /* 'WAVE' */ + -+ u_int32_t sub_chunk; /* 'fmt ' */ -+ u_int32_t sc_len; /* length of sub_chunk, =16 (rest of chunk) */ -+ u_int16_t format; /* should be 1 for PCM-code */ -+ u_int16_t modus; /* 1 Mono, 2 Stereo */ -+ u_int32_t sample_fq; /* frequence of sample */ -+ u_int32_t byte_p_sec; -+ u_int16_t byte_p_spl; /* samplesize; 1 or 2 bytes */ -+ u_int16_t bit_p_spl; /* 8, 12 or 16 bit */ ++ uint32_t sub_chunk; /* 'fmt ' */ ++ uint32_t sc_len; /* length of sub_chunk, =16 (rest of chunk) */ ++ uint16_t format; /* should be 1 for PCM-code */ ++ uint16_t modus; /* 1 Mono, 2 Stereo */ ++ uint32_t sample_fq; /* frequence of sample */ ++ uint32_t byte_p_sec; ++ uint16_t byte_p_spl; /* samplesize; 1 or 2 bytes */ ++ uint16_t bit_p_spl; /* 8, 12 or 16 bit */ - u_long data_chunk; /* 'data' */ - u_long data_length; /* samplecount (lenth of rest of block?) */ -+ u_int32_t data_chunk; /* 'data' */ -+ u_int32_t data_length; /* samplecount (lenth of rest of block?) */ ++ uint32_t data_chunk; /* 'data' */ ++ uint32_t data_length; /* samplecount (lenth of rest of block?) */ } wavhead; |