summaryrefslogtreecommitdiff
path: root/audio/icecast1
diff options
context:
space:
mode:
authorkim <kim@pkgsrc.org>2004-01-11 16:59:34 +0000
committerkim <kim@pkgsrc.org>2004-01-11 16:59:34 +0000
commit691a09109222ea8acc1ff18ac0812eb8bd2d67df (patch)
treef143c7523c4fa6ef4e333d5b04bb68fd8d6e1ffe /audio/icecast1
parent2aac388a0f456900dee8f7a83d00b92d261fc2f1 (diff)
downloadpkgsrc-691a09109222ea8acc1ff18ac0812eb8bd2d67df.tar.gz
Bring back Icecast v1.
Diffstat (limited to 'audio/icecast1')
-rw-r--r--audio/icecast1/Makefile19
-rw-r--r--audio/icecast1/distinfo3
-rw-r--r--audio/icecast1/patches/patch-ac16
3 files changed, 36 insertions, 2 deletions
diff --git a/audio/icecast1/Makefile b/audio/icecast1/Makefile
index 1f391d89e45..11e0d576ce6 100644
--- a/audio/icecast1/Makefile
+++ b/audio/icecast1/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2004/01/08 20:48:45 xtraeme Exp $
+# $NetBSD: Makefile,v 1.1.1.2 2004/01/11 16:59:34 kim Exp $
#
DISTNAME= icecast-1.3.12
@@ -37,6 +37,23 @@ CONF_FILES+= ${EGDIR}/${f}.dist ${PKG_SYSCONFDIR}/${f}
.endfor
.undef f
+.include "../../mk/bsd.prefs.mk"
+
+ICECAST_SOURCE_BUFFSIZE?= 8192
+ICECAST_CHUNKLEN?= 64
+
+pre-configure:
+ @${MV} ${WRKSRC}/src/icetypes.h ${WRKSRC}/src/icetypes.h.bak
+ @${SED} \
+ -e 's/@SOURCE_BUFFSIZE@/${ICECAST_SOURCE_BUFFSIZE}/' \
+ -e 's/@CHUNKLEN@/${ICECAST_CHUNKLEN}/' \
+ ${WRKSRC}/src/icetypes.h.bak > ${WRKSRC}/src/icetypes.h
+
+.include "../../devel/readline/buildlink2.mk"
+.include "../../lang/python/application.mk"
+.include "../../security/tcp_wrappers/buildlink2.mk"
+.include "../../mk/pthread.buildlink2.mk"
+
.include "../../devel/readline/buildlink2.mk"
.include "../../lang/python/application.mk"
.include "../../security/tcp_wrappers/buildlink2.mk"
diff --git a/audio/icecast1/distinfo b/audio/icecast1/distinfo
index f6bdb9a8c22..09f384de06b 100644
--- a/audio/icecast1/distinfo
+++ b/audio/icecast1/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2004/01/08 20:48:45 xtraeme Exp $
+$NetBSD: distinfo,v 1.1.1.2 2004/01/11 16:59:34 kim Exp $
SHA1 (icecast-1.3.12.tar.gz) = bacb760390453718de536b85979ff3a9a73c7710
Size (icecast-1.3.12.tar.gz) = 269822 bytes
SHA1 (patch-aa) = 169202f563e4e2812d8d532264dcdb4f9ffc8df2
SHA1 (patch-ab) = de33a89e6078721a7e9c3a09515846752e76680e
+SHA1 (patch-ac) = 4775c84b910f9b19134f66a57f5196b572daf3cc
diff --git a/audio/icecast1/patches/patch-ac b/audio/icecast1/patches/patch-ac
new file mode 100644
index 00000000000..e00e2ec60cc
--- /dev/null
+++ b/audio/icecast1/patches/patch-ac
@@ -0,0 +1,16 @@
+$NetBSD: patch-ac,v 1.1.1.1 2004/01/11 16:59:34 kim Exp $
+
+--- src/icetypes.h.orig Wed Jul 5 15:51:14 2000
++++ src/icetypes.h Fri Oct 17 21:49:19 2003
+@@ -41,9 +41,9 @@
+ typedef enum type_e {integer_e, real_e, string_e, function_e} type_t;
+
+ #define BUFSIZE 8192
+-#define CHUNKLEN 64
++#define CHUNKLEN @CHUNKLEN@
+ #define MAXMETADATALENGTH (16 * 256)
+-#define SOURCE_BUFFSIZE 8192
++#define SOURCE_BUFFSIZE @SOURCE_BUFFSIZE@
+ #define SOURCE_READSIZE (SOURCE_BUFFSIZE - MAXMETADATALENGTH) /* Please be careful here... */
+ #define MAXLISTEN 5 /* max number of listening ports */
+