ports/94115: [NEW PORT] audio/hawkvoice: Portable sound and speech compression library
Jose Alonso Cardenas Marquez
acardenas at bsd.org.pe
Sun Mar 5 22:50:29 UTC 2006
>Number: 94115
>Category: ports
>Synopsis: [NEW PORT] audio/hawkvoice: Portable sound and speech compression library
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Mar 05 22:50:03 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Jose Alonso Cardenas Marquez
>Release: FreeBSD 6.1-PRERELEASE i386
>Organization:
BSDPeru (http://www.bsd.org.pe)
>Environment:
FreeBSD HellFire.BSD.org.pe 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Wed Feb 15 20:23:11 PET 2006
>Description:
HawkVoice is a game oriented, multiplayer voice over network API released under the GNU Library General
Public License (LGPL) , with support for Linux/UNIX systems and Windows 9x/ME/NT/2000/XP/CE.
It is designed to be a portable, free, open source code alternative to the Microsoft DirectPlay Voice in
DX8-9. It provides voice compression using several free voice codecs. The very low bitrate (VLB) codecs,
those less than 6 Kbps, are optimized for the compression of human speech.
WWW: http://www.hawksoft.com/hawkvoice/
>How-To-Repeat:
>Fix:
--- hawkvoice-0.91.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# hawkvoice
# hawkvoice/pkg-descr
# hawkvoice/Makefile
# hawkvoice/pkg-plist
# hawkvoice/distinfo
# hawkvoice/files
# hawkvoice/files/patch-src_makefile.linux
#
echo c - hawkvoice
mkdir -p hawkvoice > /dev/null 2>&1
echo x - hawkvoice/pkg-descr
sed 's/^X//' >hawkvoice/pkg-descr << 'END-of-hawkvoice/pkg-descr'
XHawkVoice is a game oriented, multiplayer voice over network API released under the GNU Library General
XPublic License (LGPL) , with support for Linux/UNIX systems and Windows 9x/ME/NT/2000/XP/CE.
X
XIt is designed to be a portable, free, open source code alternative to the Microsoft DirectPlay Voice in
XDX8-9. It provides voice compression using several free voice codecs. The very low bitrate (VLB) codecs,
Xthose less than 6 Kbps, are optimized for the compression of human speech.
X
XWWW: http://www.hawksoft.com/hawkvoice/
END-of-hawkvoice/pkg-descr
echo x - hawkvoice/Makefile
sed 's/^X//' >hawkvoice/Makefile << 'END-of-hawkvoice/Makefile'
X# New ports collection makefile for: hawkvoice
X# Date created: 2006-03-05
X# Whom: Jose Alonso Cardenas Marquez <acardenas at bsd.org.pe>
X#
X# $FreeBSD$
X#
X
XPORTNAME= hawkvoice
XPORTVERSION= 0.91
XCATEGORIES= audio devel
XMASTER_SITES= http://www.hawksoft.com/download/files/
XDISTNAME= HawkVoiceDI091src
X
XMAINTAINER= acardenas at bsd.org.pe
XCOMMENT= Portable sound and speech compression library
X
XUSE_ZIP= yes
XUSE_DOS2UNIX= yes
XUSE_GMAKE= yes
XMAKEFILE= makefile.linux
XINSTALLS_SHLIB= yes
X
XLDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}
XCPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include
XMAKE_ENV= CC="${CC}" CFLAGS="${CFLAGS} ${OPTFLAGS}" LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}"
XWRKSRC= ${WRKDIR}/HawkVoiceDI
X
XOPTIONS= OPTIMIZATION "Enable optimization" off
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_OPTIMIZATION)
XCFLAGS+= -funroll-all-loops -ffast-math -fomit-frame-pointer -D_GNU_SOURCE -D_REENTRANT
X.endif
X
Xpost-patch:
X @cd ${WRKSRC}/src && \
X ${FIND} * -type f -exec ${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' "{}" \;
X
Xdo-build:
X @cd ${WRKSRC}/src && \
X ${SETENV} ${MAKE_ENV} ${GMAKE} -f ${MAKEFILE}
X
Xdo-install:
X @cd ${WRKSRC}/src && \
X ${GMAKE} -f ${MAKEFILE} install
X
Xpost-install:
X @${RM} -f ${PREFIX}/lib/libHVDI.a
X.if !defined(NOPORTDOCS)
X @${MKDIR} ${DOCSDIR}
X.for FILE in api.txt HVDIchanges.txt readme.txt cryptapi.txt
X @${INSTALL_DATA} ${WRKSRC}/src/${FILE} ${DOCSDIR}
X.endfor
X.endif
X
X.include <bsd.port.post.mk>
END-of-hawkvoice/Makefile
echo x - hawkvoice/pkg-plist
sed 's/^X//' >hawkvoice/pkg-plist << 'END-of-hawkvoice/pkg-plist'
Xinclude/hvdi.h
Xlib/libHVDI.so
Xlib/libHVDI.so.0
Xlib/libHVDI.so.0.9.1
X%%PORTDOCS%%%%DOCSDIR%%/api.txt
X%%PORTDOCS%%%%DOCSDIR%%/HVDIchanges.txt
X%%PORTDOCS%%%%DOCSDIR%%/readme.txt
X%%PORTDOCS%%%%DOCSDIR%%/cryptapi.txt
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-hawkvoice/pkg-plist
echo x - hawkvoice/distinfo
sed 's/^X//' >hawkvoice/distinfo << 'END-of-hawkvoice/distinfo'
XMD5 (HawkVoiceDI091src.zip) = 119fab09d2b2d674267a9d1bd377a135
XSHA256 (HawkVoiceDI091src.zip) = 10f624df7f86a54290f4b8dc825049aab83f02c4e36fa53b14c5327e352489ee
XSIZE (HawkVoiceDI091src.zip) = 477680
END-of-hawkvoice/distinfo
echo c - hawkvoice/files
mkdir -p hawkvoice/files > /dev/null 2>&1
echo x - hawkvoice/files/patch-src_makefile.linux
sed 's/^X//' >hawkvoice/files/patch-src_makefile.linux << 'END-of-hawkvoice/files/patch-src_makefile.linux'
X--- src/makefile.linux Sun Mar 5 17:05:02 2006
X+++ src/makefile.linux Sun Mar 5 17:05:37 2006
X@@ -1,19 +1,18 @@
X-CC = gcc
X+CC? = ${CC}
X AR = ar cru
X RANLIB = ranlib
X MAJOR_VERSION = 0
X MINOR_VERSION = 9
X PATCH_LEVEL = 1
X VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(PATCH_LEVEL)
X-LIBDIR = /usr/lib
X-INCDIR = /usr/include
X+LIBDIR = ${PREFIX}/lib
X+INCDIR = ${PREFIX}/include
X INCLUDE = -I../include
X OUTPUT = libHVDI.so.$(VERSION)
X LIBNAME = HVDI
X STATIC = libHVDI.a
X-OPTFLAGS = -funroll-all-loops -ffast-math -fomit-frame-pointer -O2 -D_GNU_SOURCE
X-CFLAGS = -Wall -fPIC $(INCLUDE) $(OPTFLAGS)
X-LIBFLAGS = -shared -Wl,-soname,HVDI.so.$(MAJOR_VERSION).$(MINOR_VERSION) -rdynamic
X+CFLAGS? = ${CFLAGS} -Wall -fPIC $(INCLUDE)
X+LIBFLAGS = -shared -Wl,-soname,HVDI.so.$(MAJOR_VERSION).$(MINOR_VERSION) -rdynamic ${LDFLAGS}
X
X HVDI_SOURCE = decpacket.c encpacket.c hvdi.c rate.c hcrypt.c
X
X@@ -55,25 +54,14 @@
X $(AR) $(STATIC) $(OBJECTS)
X $(RANLIB) $(STATIC)
X
X-include depend
X-
X install:
X cp $(OUTPUT) $(LIBDIR)
X cp $(STATIC) $(LIBDIR)
X chmod 755 $(LIBDIR)/$(OUTPUT)
X- ln -s $(LIBDIR)/$(OUTPUT) lib$(LIBNAME).so.$(MAJOR_VERSION).$(MINOR_VERSION)
X- ln -s $(LIBDIR)/$(OUTPUT) lib$(LIBNAME).so.$(MAJOR_VERSION)
X- ln -s $(LIBDIR)/$(OUTPUT) lib$(LIBNAME).so
X+ ln -s $(LIBDIR)/$(OUTPUT) $(LIBDIR)/lib$(LIBNAME).so.$(MAJOR_VERSION)
X+ ln -s $(LIBDIR)/$(OUTPUT) $(LIBDIR)/lib$(LIBNAME).so
X cp hvdi.h $(INCDIR)/hvdi.h
X chmod 644 $(INCDIR)/hvdi.h
X- @echo ""
X- @echo "*************************************************"
X- @echo "* Installed HawkVoiceDI. *"
X- @echo "* Remember to run /sbin/ldconfig before using *"
X- @echo "* the library, you may also want to check that *"
X- @echo "* $(LIBDIR) is included in /etc/ld.so.conf *"
X- @echo "* You must be root to run ldconfig. *"
X- @echo "*************************************************"
X
X uninstall:
X rm -f $(LIBDIR)/$(OUTPUT) $(LIBDIR)/lib$(LIBNAME).so.$(MAJOR_VERSION).$(MINOR_VERSION)
END-of-hawkvoice/files/patch-src_makefile.linux
exit
--- hawkvoice-0.91.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list