diff options
author | Renato Botelho <garga@FreeBSD.org> | 2006-03-25 11:56:00 +0000 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2006-03-25 11:56:00 +0000 |
commit | c0bb62a2125e083d5c87106f8d889523f4369ec1 (patch) | |
tree | 2ce13c03068dd024cf2aad29ea8760232495c1aa | |
parent | 920d7855a11e145654ecb73fecbd8f02c6107828 (diff) | |
download | ports-c0bb62a2125e083d5c87106f8d889523f4369ec1.tar.gz ports-c0bb62a2125e083d5c87106f8d889523f4369ec1.zip |
Notes
-rw-r--r-- | audio/Makefile | 1 | ||||
-rw-r--r-- | audio/hawkvoice/Makefile | 50 | ||||
-rw-r--r-- | audio/hawkvoice/distinfo | 3 | ||||
-rw-r--r-- | audio/hawkvoice/files/patch-src_makefile.linux | 55 | ||||
-rw-r--r-- | audio/hawkvoice/pkg-descr | 10 | ||||
-rw-r--r-- | audio/hawkvoice/pkg-plist | 10 |
6 files changed, 129 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile index 4e46886164ea..e1a08042a2fb 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -218,6 +218,7 @@ SUBDIR += gtkpod SUBDIR += guspat SUBDIR += gxmms2 + SUBDIR += hawkvoice SUBDIR += holyshout SUBDIR += hydrogen SUBDIR += icecast diff --git a/audio/hawkvoice/Makefile b/audio/hawkvoice/Makefile new file mode 100644 index 000000000000..98f5ac4bf9d3 --- /dev/null +++ b/audio/hawkvoice/Makefile @@ -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> diff --git a/audio/hawkvoice/distinfo b/audio/hawkvoice/distinfo new file mode 100644 index 000000000000..1e968dc347e3 --- /dev/null +++ b/audio/hawkvoice/distinfo @@ -0,0 +1,3 @@ +MD5 (HawkVoiceDI091src.zip) = 119fab09d2b2d674267a9d1bd377a135 +SHA256 (HawkVoiceDI091src.zip) = 10f624df7f86a54290f4b8dc825049aab83f02c4e36fa53b14c5327e352489ee +SIZE (HawkVoiceDI091src.zip) = 477680 diff --git a/audio/hawkvoice/files/patch-src_makefile.linux b/audio/hawkvoice/files/patch-src_makefile.linux new file mode 100644 index 000000000000..40705a96b52a --- /dev/null +++ b/audio/hawkvoice/files/patch-src_makefile.linux @@ -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) diff --git a/audio/hawkvoice/pkg-descr b/audio/hawkvoice/pkg-descr new file mode 100644 index 000000000000..7af3b466a103 --- /dev/null +++ b/audio/hawkvoice/pkg-descr @@ -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/ diff --git a/audio/hawkvoice/pkg-plist b/audio/hawkvoice/pkg-plist new file mode 100644 index 000000000000..0a2eeeb8ddfa --- /dev/null +++ b/audio/hawkvoice/pkg-plist @@ -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%% |