1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

- Fix detection of libreadline and bump PORTREVISION [1]

- Allow port to compile on -current

Submitted by:	David Yeske <dyeske@yahoo.com> [1]
Reviewed by:	maintainer
This commit is contained in:
Patrick Li 2002-08-21 02:52:01 +00:00
parent c90a3e8c50
commit e0ff515ec7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=64731
8 changed files with 130 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= icecast
PORTVERSION= 1.3.12
PORTREVISION= 1
CATEGORIES= audio net
MASTER_SITES= http://www.icecast.org/releases/
@ -14,6 +15,14 @@ MAINTAINER= zach@pabst.bendnet.com
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --with-libwrap
USE_REINPLACE= yes
pre-patch:
@${REINPLACE_CMD} -e 's|<history.h>|<readline/history.h>|' \
-e 's|<readline.h>|<readline/readline.h>|' \
${WRKSRC}/src/admin.c
@${REINPLACE_CMD} -e 's|#undef HAVE_HISTORY_H|#undef HAVE_READLINE_HISTORY_H|g' \
${WRKSRC}/config.h.in
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/icecast ${PREFIX}/sbin

View File

@ -0,0 +1,20 @@
--- configure.orig Wed Apr 10 18:50:20 2002
+++ configure Tue Aug 6 05:36:56 2002
@@ -2113,7 +2113,7 @@
fi
fi
-opt_readline="no"
+opt_readline="unset"
if test "$opt_readline" = "unset"; then
if test -f "$withval/include/readline/readline.h"; then
@@ -3118,7 +3118,7 @@
fi
-for ac_hdr in fcntl.h sys/time.h unistd.h sys/soundcard.h machine/soundcard.h pthread.h assert.h sys/resource.h math.h signal.h sys/signal.h mcheck.h malloc.h history.h Python.h
+for ac_hdr in fcntl.h sys/time.h unistd.h sys/soundcard.h machine/soundcard.h pthread.h assert.h sys/resource.h math.h signal.h sys/signal.h mcheck.h malloc.h readline/history.h Python.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6

View File

@ -0,0 +1,18 @@
--- src/connection.c.orig Mon Aug 5 20:39:21 2002
+++ src/connection.c Mon Aug 5 20:40:08 2002
@@ -18,6 +18,7 @@
*
*/
+#include <sys/types.h>
#ifdef HAVE_CONFIG_H
#ifdef _WIN32
#include <win32config.h>
@@ -42,7 +43,6 @@
#include <unistd.h>
#endif
-#include <sys/types.h>
#include <ctype.h>
#include <errno.h>
#include <time.h>

View File

@ -0,0 +1,18 @@
--- src/sock.c.orig Mon Aug 5 20:57:27 2002
+++ src/sock.c Mon Aug 5 20:57:48 2002
@@ -19,6 +19,7 @@
*
*/
+#include <sys/types.h>
#ifdef HAVE_CONFIG_H
#ifdef _WIN32
#include <win32config.h>
@@ -35,7 +36,6 @@
#include "definitions.h"
-#include <sys/types.h>
#include <ctype.h>
#ifdef HAVE_UNISTD_H

View File

@ -7,6 +7,7 @@
PORTNAME= icecast
PORTVERSION= 1.3.12
PORTREVISION= 1
CATEGORIES= audio net
MASTER_SITES= http://www.icecast.org/releases/
@ -14,6 +15,14 @@ MAINTAINER= zach@pabst.bendnet.com
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --with-libwrap
USE_REINPLACE= yes
pre-patch:
@${REINPLACE_CMD} -e 's|<history.h>|<readline/history.h>|' \
-e 's|<readline.h>|<readline/readline.h>|' \
${WRKSRC}/src/admin.c
@${REINPLACE_CMD} -e 's|#undef HAVE_HISTORY_H|#undef HAVE_READLINE_HISTORY_H|g' \
${WRKSRC}/config.h.in
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/icecast ${PREFIX}/sbin

View File

@ -0,0 +1,20 @@
--- configure.orig Wed Apr 10 18:50:20 2002
+++ configure Tue Aug 6 05:36:56 2002
@@ -2113,7 +2113,7 @@
fi
fi
-opt_readline="no"
+opt_readline="unset"
if test "$opt_readline" = "unset"; then
if test -f "$withval/include/readline/readline.h"; then
@@ -3118,7 +3118,7 @@
fi
-for ac_hdr in fcntl.h sys/time.h unistd.h sys/soundcard.h machine/soundcard.h pthread.h assert.h sys/resource.h math.h signal.h sys/signal.h mcheck.h malloc.h history.h Python.h
+for ac_hdr in fcntl.h sys/time.h unistd.h sys/soundcard.h machine/soundcard.h pthread.h assert.h sys/resource.h math.h signal.h sys/signal.h mcheck.h malloc.h readline/history.h Python.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6

View File

@ -0,0 +1,18 @@
--- src/connection.c.orig Mon Aug 5 20:39:21 2002
+++ src/connection.c Mon Aug 5 20:40:08 2002
@@ -18,6 +18,7 @@
*
*/
+#include <sys/types.h>
#ifdef HAVE_CONFIG_H
#ifdef _WIN32
#include <win32config.h>
@@ -42,7 +43,6 @@
#include <unistd.h>
#endif
-#include <sys/types.h>
#include <ctype.h>
#include <errno.h>
#include <time.h>

View File

@ -0,0 +1,18 @@
--- src/sock.c.orig Mon Aug 5 20:57:27 2002
+++ src/sock.c Mon Aug 5 20:57:48 2002
@@ -19,6 +19,7 @@
*
*/
+#include <sys/types.h>
#ifdef HAVE_CONFIG_H
#ifdef _WIN32
#include <win32config.h>
@@ -35,7 +36,6 @@
#include "definitions.h"
-#include <sys/types.h>
#include <ctype.h>
#ifdef HAVE_UNISTD_H