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

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/

PR:		ports/94115
Submitted by:	Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
This commit is contained in:
Renato Botelho 2006-03-25 11:56:00 +00:00
parent 920d7855a1
commit c0bb62a212
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=158103
6 changed files with 129 additions and 0 deletions

View File

@ -218,6 +218,7 @@
SUBDIR += gtkpod
SUBDIR += guspat
SUBDIR += gxmms2
SUBDIR += hawkvoice
SUBDIR += holyshout
SUBDIR += hydrogen
SUBDIR += icecast

50
audio/hawkvoice/Makefile Normal file
View File

@ -0,0 +1,50 @@
# New ports collection makefile for: hawkvoice
# Date created: 2006-03-05
# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
#
# $FreeBSD$
#
PORTNAME= hawkvoice
PORTVERSION= 0.91
CATEGORIES= audio devel
MASTER_SITES= http://www.hawksoft.com/download/files/
DISTNAME= HawkVoiceDI091src
MAINTAINER= acardenas@bsd.org.pe
COMMENT= Portable sound and speech compression library
USE_ZIP= yes
USE_DOS2UNIX= yes
USE_GMAKE= yes
MAKEFILE= makefile.linux
INSTALLS_SHLIB= yes
LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}
CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include
MAKE_ENV= CC="${CC}" CFLAGS="${CFLAGS} ${OPTFLAGS}" \
LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}" \
MAKE="${GMAKE}"
WRKSRC= ${WRKDIR}/HawkVoiceDI/src
OPTIONS= OPTIMIZATION "Enable optimization" off
.include <bsd.port.pre.mk>
.if defined(WITH_OPTIMIZATION)
CFLAGS+= -funroll-all-loops -ffast-math -fomit-frame-pointer -D_GNU_SOURCE -D_REENTRANT
.endif
post-patch:
${FIND} ${WRKSRC} -type f -exec ${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' "{}" \;
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for FILE in api.txt HVDIchanges.txt readme.txt cryptapi.txt
${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>

3
audio/hawkvoice/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (HawkVoiceDI091src.zip) = 119fab09d2b2d674267a9d1bd377a135
SHA256 (HawkVoiceDI091src.zip) = 10f624df7f86a54290f4b8dc825049aab83f02c4e36fa53b14c5327e352489ee
SIZE (HawkVoiceDI091src.zip) = 477680

View File

@ -0,0 +1,55 @@
--- makefile.linux Sun Mar 5 17:05:02 2006
+++ makefile.linux Sun Mar 5 17:05:37 2006
@@ -1,19 +1,18 @@
-CC = gcc
+CC? = ${CC}
AR = ar cru
RANLIB = ranlib
MAJOR_VERSION = 0
MINOR_VERSION = 9
PATCH_LEVEL = 1
VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(PATCH_LEVEL)
-LIBDIR = /usr/lib
-INCDIR = /usr/include
+LIBDIR = ${PREFIX}/lib
+INCDIR = ${PREFIX}/include
INCLUDE = -I../include
OUTPUT = libHVDI.so.$(VERSION)
LIBNAME = HVDI
STATIC = libHVDI.a
-OPTFLAGS = -funroll-all-loops -ffast-math -fomit-frame-pointer -O2 -D_GNU_SOURCE
-CFLAGS = -Wall -fPIC $(INCLUDE) $(OPTFLAGS)
-LIBFLAGS = -shared -Wl,-soname,HVDI.so.$(MAJOR_VERSION).$(MINOR_VERSION) -rdynamic
+CFLAGS? = ${CFLAGS} -Wall -fPIC $(INCLUDE)
+LIBFLAGS = -shared -Wl,-soname,HVDI.so.$(MAJOR_VERSION).$(MINOR_VERSION) -rdynamic ${LDFLAGS}
HVDI_SOURCE = decpacket.c encpacket.c hvdi.c rate.c hcrypt.c
@@ -55,25 +54,14 @@
$(AR) $(STATIC) $(OBJECTS)
$(RANLIB) $(STATIC)
-include depend
-
install:
cp $(OUTPUT) $(LIBDIR)
cp $(STATIC) $(LIBDIR)
chmod 755 $(LIBDIR)/$(OUTPUT)
- ln -s $(LIBDIR)/$(OUTPUT) lib$(LIBNAME).so.$(MAJOR_VERSION).$(MINOR_VERSION)
- ln -s $(LIBDIR)/$(OUTPUT) lib$(LIBNAME).so.$(MAJOR_VERSION)
- ln -s $(LIBDIR)/$(OUTPUT) lib$(LIBNAME).so
+ ln -s $(LIBDIR)/$(OUTPUT) $(LIBDIR)/lib$(LIBNAME).so.$(MAJOR_VERSION)
+ ln -s $(LIBDIR)/$(OUTPUT) $(LIBDIR)/lib$(LIBNAME).so
cp hvdi.h $(INCDIR)/hvdi.h
chmod 644 $(INCDIR)/hvdi.h
- @echo ""
- @echo "*************************************************"
- @echo "* Installed HawkVoiceDI. *"
- @echo "* Remember to run /sbin/ldconfig before using *"
- @echo "* the library, you may also want to check that *"
- @echo "* $(LIBDIR) is included in /etc/ld.so.conf *"
- @echo "* You must be root to run ldconfig. *"
- @echo "*************************************************"
uninstall:
rm -f $(LIBDIR)/$(OUTPUT) $(LIBDIR)/lib$(LIBNAME).so.$(MAJOR_VERSION).$(MINOR_VERSION)

10
audio/hawkvoice/pkg-descr Normal file
View File

@ -0,0 +1,10 @@
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/

10
audio/hawkvoice/pkg-plist Normal file
View File

@ -0,0 +1,10 @@
include/hvdi.h
lib/libHVDI.a
lib/libHVDI.so
lib/libHVDI.so.0
lib/libHVDI.so.0.9.1
%%PORTDOCS%%%%DOCSDIR%%/api.txt
%%PORTDOCS%%%%DOCSDIR%%/HVDIchanges.txt
%%PORTDOCS%%%%DOCSDIR%%/readme.txt
%%PORTDOCS%%%%DOCSDIR%%/cryptapi.txt
%%PORTDOCS%%@dirrm %%DOCSDIR%%