Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jun 2003 16:38:21 -0700 (PDT)
From:      "Michael A. Dickerson" <mikey@singingtree.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/53302: speak_freely port out of date	
Message-ID:  <200306132338.h5DNcLwU012139@redlance.singingtree.com>
Resent-Message-ID: <200306132340.h5DNeCsx024843@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         53302
>Category:       ports
>Synopsis:       speak_freely port out of date
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 13 16:40:12 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Michael A. Dickerson
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
System: FreeBSD redlance.singingtree.com 4.8-STABLE FreeBSD 4.8-STABLE #1: Thu Apr 24 15:39:34 PDT 2003 mikey@redlance.singingtree.com:/usr/obj/usr/src/sys/REDLANCE i386


	
>Description:
The speak_freely port is still building version 7.5, although version 7.6a is
out and fixes some non-trivial bugs.

>How-To-Repeat:

>Fix:
I have attached a new Makefile, distinfo, and patch-aa, with which I was able
to get the port to build 7.6a successfully.

--- Makefile begins here ---
# New ports collection makefile for:    speak_freely
# Date created:         18 Apr 1996
# Whom:                 Mister X (to make portlint happy ;)
#
# $FreeBSD: ports/mbone/speak_freely/Makefile,v 1.18 2003/02/20 18:42:54 knu Exp $
#

PORTNAME=	speak_freely
PORTVERSION=	7.6a
CATEGORIES=	mbone audio security
MASTER_SITES=	http://www.fourmilab.ch/speakfree/unix/download/7.6/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Voice Communication Over Data Networks

LIB_DEPENDS=	gsm.1:${PORTSDIR}/audio/gsm

UTILS=		sfspeaker sfmike sflwl sflaunch
DEMNS=		sfecho sflwld sfreflect
DDEMNS=		sfvod
SFLIB=		${PREFIX}/lib/speak_freely
MAN1=		${UTILS:S/$/.1/} ${DEMNS:S/$/.1/} ${DDEMNS:S/$/.1/}

MAKE_ENV=	"OPTFLAGS=${CFLAGS}"

post-patch:
	@${SED} -e 's,machine/soundcard.h,sys/soundcard.h,' < \
		${WRKSRC}/soundbyte.c > ${WRKSRC}/soundbyte.c.new
	@${MV} ${WRKSRC}/soundbyte.c.new ${WRKSRC}/soundbyte.c

do-install:
	if [ ! -d ${SFLIB} ]; then \
		${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 ${SFLIB}; \
	fi
	cd ${WRKSRC}; \
	$(INSTALL_DATA) busy.au ring.au ${SFLIB}
	cd ${WRKSRC}; \
	for p in ${UTILS}; do \
		$(INSTALL_PROGRAM) $$p ${PREFIX}/bin; \
		$(INSTALL_MAN) $$p.1 ${PREFIX}/man/man1; \
	done;
	cd ${WRKSRC}; \
	for p in ${DEMNS}; do \
		$(INSTALL_PROGRAM) $$p ${PREFIX}/sbin; \
		$(INSTALL_MAN) $$p.1 ${PREFIX}/man/man1; \
	done;
	cd ${WRKSRC}; \
	for p in ${DDEMNS}; do \
		$(INSTALL_SCRIPT) $$p ${PREFIX}/sbin; \
		$(INSTALL_MAN) $$p.1 ${PREFIX}/man/man1; \
	done;

.include <bsd.port.mk>
--- Makefile ends here ---

--- distinfo begins here ---
MD5 (speak_freely-7.6a.tar.gz) = 0c35c891d24f8df7f2bdedc3b91ab161
--- distinfo ends here ---

--- patch-aa begins here ---
--- Makefile.orig	Sun Jun  8 22:21:55 2003
+++ Makefile	Sun Jun  8 22:33:37 2003
@@ -6,7 +6,7 @@
 #DEBUG = -O
 #DEBUG = -g -DHEXDUMP
 #DEBUG = -g -DHEXDUMP -DNOCRYPTO
-DEBUG = -O3 -DHEXDUMP
+#DEBUG = -O3 -DHEXDUMP
   
 # Installation 
 
@@ -50,13 +50,13 @@
 #    of the available flags which follows these declarations.
 #
 #CCFLAGS =  -DAUDIO_BLOCKING -DLINUX -DHALF_DUPLEX -DM_LITTLE_ENDIAN
-CCFLAGS =  -DAUDIO_BLOCKING -DLINUX -DHALF_DUPLEX -DM_LITTLE_ENDIAN -DNEEDED_LINEAR -DLINUX_DSP_SMALL_BUFFER -DHAVE_DEV_RANDOM
-CC = gcc -Wall # for GNU's gcc compiler
+#CCFLAGS =  -DAUDIO_BLOCKING -DLINUX -DHALF_DUPLEX -DM_LITTLE_ENDIAN -DNEEDED_LINEAR -DLINUX_DSP_SMALL_BUFFER -DHAVE_DEV_RANDOM
+#CC = gcc -Wall # for GNU's gcc compiler
 #   CELPFLAGS below are tweaked for GCC 2.96 on Intel Pentium.
 #   Comment out if you are using a compiler which doesn't
 #   understand these options.
-CELPFLAGS = -fomit-frame-pointer -ffast-math -funroll-loops
-LFLAGS = -lncurses -lm
+#CELPFLAGS = -fomit-frame-pointer -ffast-math -funroll-loops
+#LFLAGS = -lncurses -lm
 
 
 # If you want to use ALSA instead of OSS, uncomment the following
@@ -269,8 +269,8 @@
 #    Depending on how your driver handles non-blocking I/O,
 #    you may also have to add -DAUDIO_BLOCKING to the
 #    CCFLAGS line.
-#CCFLAGS = -DM_LITTLE_ENDIAN
-#LFLAGS = -lcurses -ltermcap -lcompat -lm
+CCFLAGS = -DM_LITTLE_ENDIAN -DAUDIO_BLOCKING -DNEEDED_LINEAR -DLINUX_DSP_SMALL_BUFFER
+LFLAGS = -lcurses -ltermcap -lcompat -lm
 
 #			   Hewlett-Packard
 #		      (courtesy of Marc Kilian)
@@ -318,7 +318,7 @@
 
 #   Compiler flags
 
-CFLAGS = $(DEBUG) $(PKOPTS) -Iadpcm -Iaes -Icelp -Ilpc -Igsm/inc -Ilpc10 -Imd5 -Ides -Iidea -Ilibdes -Iblowfish $(CARGS) $(DUPLEX) $(CCFLAGS) $(DOMAIN)
+CFLAGS = $(OPTFLAGS) $(DEBUG) $(PKOPTS) -Iadpcm -Iaes -Icelp -Ilpc -I$(LOCALBASE)/include -Igsm/inc -Ilpc10 -Imd5 -Ides -Iidea -Ilibdes -Iblowfish $(CARGS) $(DUPLEX) $(CCFLAGS) $(DOMAIN)
 
 BINARIES = sfspeaker sfmike sflaunch sflwld sflwl sfecho sfreflect
 
@@ -333,12 +333,12 @@
 SPKROBJS = speaker.o codecs.o deskey.o g711.o rate.o rtpacket.o soundbyte.o tempfile.o ulaw.o usleep.o vatpkt.o vox.o audio_hp.o audio_sgi.o audio_alsa.o common.o
 
 sfspeaker: $(SPKROBJS) adpcmlib.o aeslib.o celplib.o libblowfish.o lpclib.o lpc10lib.o gsmlib.o deslib.o md5lib.o idealib.o libdes.o xdsub.o 
-	$(CC) $(SPKROBJS) adpcm/adpcm-u.o aes/aes.a blowfish/libblowfish.a celp/celp.o des/des.a md5/md5.o idea/idea.a lpc10/liblpc10.a gsm/lib/libgsm.a lpc/lpc.o xdsub.o libdes/libdes.a $(LFLAGS) $(SOUNDLIB) -o sfspeaker
+	$(CC) $(SPKROBJS) adpcm/adpcm-u.o aes/aes.a blowfish/libblowfish.a celp/celp.o des/des.a -lmd idea/idea.a lpc10/liblpc10.a gsm/lib/libgsm.a lpc/lpc.o xdsub.o libdes/libdes.a $(LFLAGS) $(SOUNDLIB) -o sfspeaker
 
 MIKEOBJS = mike.o codecs.o deskey.o g711.o rate.o rtpacket.o soundbyte.o tempfile.o ulaw.o usleep.o vatpkt.o xdsub.o audio_hp.o audio_sgi.o audio_alsa.o
 
 sfmike: $(MIKEOBJS) adpcmlib.o aeslib.o celplib.o libblowfish.o lpclib.o lpc10lib.o gsmlib.o deslib.o md5lib.o idealib.o libdes.o
-	$(CC) $(MIKEOBJS) adpcm/adpcm-u.o aes/aes.a celp/celp.o des/des.a md5/md5.o idea/idea.a -lm blowfish/libblowfish.a lpc10/liblpc10.a gsm/lib/libgsm.a lpc/lpc.o libdes/libdes.a $(LFLAGS) $(SOUNDLIB) -o sfmike
+	$(CC) $(MIKEOBJS) adpcm/adpcm-u.o aes/aes.a celp/celp.o des/des.a -lmd idea/idea.a -lm blowfish/libblowfish.a lpc10/liblpc10.a gsm/lib/libgsm.a lpc/lpc.o libdes/libdes.a $(LFLAGS) $(SOUNDLIB) -o sfmike
 
 LAUNCHOBJS = launch.o soundbyte.o usleep.o g711.o
 
@@ -358,12 +358,12 @@
 ECHOOBJS = echo.o codecs.o g711.o rtpacket.o ulaw.o xdsub.o
 
 sfecho: $(ECHOOBJS) md5lib.o
-	$(CC) $(ECHOOBJS) md5/md5.o adpcm/adpcm-u.o lpc/lpc.o $(LFLAGS) -o sfecho
+	$(CC) $(ECHOOBJS) -lmd adpcm/adpcm-u.o lpc/lpc.o $(LFLAGS) -o sfecho
 
 REFLECTOBJS = reflect.o codecs.o html.o g711.o rtpacket.o ulaw.o xdsub.o
 
 sfreflect: $(REFLECTOBJS) md5lib.o
-	$(CC) $(REFLECTOBJS) md5/md5.o adpcm/adpcm-u.o lpc/lpc.o $(LFLAGS) -o sfreflect
+	$(CC) $(REFLECTOBJS) -lmd adpcm/adpcm-u.o lpc/lpc.o $(LFLAGS) -o sfreflect
 
 #	Configure the voice on demand server for the platform's
 #	location of Perl and network constant definitions.
@@ -412,11 +412,11 @@
 	echo "BLOWFISH" >libblowfish.o
 
 libdes.o:
-	( echo "Building LIBDES library."; cd libdes ; make -f Makefile.sf CC="$(CC) $(CCFLAGS) $(DEBUG)" )
+	( echo "Building LIBDES library."; cd libdes ; make -f Makefile.sf CC="$(CC) $(OPTFLAGS) $(CCFLAGS) $(DEBUG)" )
 	echo "LIBDES" >libdes.o
 
 lpclib.o:
-	( echo "Building LPC library."; cd lpc ; make CC="$(CC) $(CCFLAGS) $(DEBUG)" )
+	( echo "Building LPC library."; cd lpc ; make CC="$(CC) $(OPTFLAGS) $(CCFLAGS) $(DEBUG)" )
 	echo "LPC" >lpclib.o
 
 lpc10lib.o:
--- patch-aa ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306132338.h5DNcLwU012139>