[Midnightbsd-cvs] mports: mports/audio: Add libofa

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Sep 7 15:41:25 EDT 2008


Log Message:
-----------
Add libofa

Modified Files:
--------------
    mports/audio:
        Makefile (r1.63 -> r1.64)

Added Files:
-----------
    mports/audio/libofa:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
        pkg-plist (r1.1)
    mports/audio/libofa/files:
        patch-examples_examples.cpp (r1.1)
        patch-examples_uselame.cpp (r1.1)
        patch-examples_wavefile.cpp (r1.1)
        patch-lib_JAMA_tnt__math_utils.h (r1.1)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/audio/Makefile,v
retrieving revision 1.63
retrieving revision 1.64
diff -L audio/Makefile -L audio/Makefile -u -r1.63 -r1.64
--- audio/Makefile
+++ audio/Makefile
@@ -49,6 +49,7 @@
     SUBDIR += libmodplug
     SUBDIR += libmpcdec
     SUBDIR += libmusicbrainz
+    SUBDIR += libofa
     SUBDIR += libogg
     SUBDIR += libsamplerate
     SUBDIR += libsndfile
--- /dev/null
+++ audio/libofa/pkg-descr
@@ -0,0 +1,4 @@
+The Open Fingerprint normalizes, extracts frequencies, and creates an array 
+representing the frequency data in an audio file.
+
+WWW:	http://www.musicdns.org
--- /dev/null
+++ audio/libofa/pkg-plist
@@ -0,0 +1,7 @@
+include/ofa1/ofa.h
+lib/libofa.a
+lib/libofa.la
+lib/libofa.so
+lib/libofa.so.0
+libdata/pkgconfig/libofa.pc
+ at dirrm include/ofa1
--- /dev/null
+++ audio/libofa/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for:	libofa
+# Date created:		2006-04-01
+# Whom:			Alexander Botero-Lowry <alex at foxybanana.com>
+#
+# $MidnightBSD: mports/audio/libofa/Makefile,v 1.1 2008/09/07 19:41:23 laffer1 Exp $
+# $FreeBSD: ports/audio/libofa/Makefile,v 1.10 2007/01/28 09:07:35 kris Exp $
+#
+
+PORTNAME=	libofa
+PORTVERSION=	0.9.3
+CATEGORIES=	audio
+MASTER_SITES=	http://www.musicdns.org/files/
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	The Open Fingerprint Architecture Library
+LICENSE=	gpl2
+# two licenses, this one i can parse
+
+LIB_DEPENDS=	fftw3.4:${PORTSDIR}/math/fftw3 \
+		expat.6:${PORTSDIR}/textproc/expat2 \
+		curl.4:${PORTSDIR}/ftp/curl
+
+USE_AUTOTOOLS=	libtool:15
+USE_GNOME=	pkgconfig
+GNU_CONFIGURE=	yes
+CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
+		LDFLAGS="-L${LOCALBASE}/lib"
+USE_LDCONFIG=	yes
+
+.include <bsd.port.pre.mk>
+
+post-configure:
+	@${REINPLACE_CMD} -e "s|pcdir =.*|pcdir = ${PREFIX}/libdata/pkgconfig|g" \
+		${WRKSRC}/Makefile
+
+.include <bsd.port.post.mk>
--- /dev/null
+++ audio/libofa/distinfo
@@ -0,0 +1,3 @@
+MD5 (libofa-0.9.3.tar.gz) = 51507d2c4b432bd2755f48d58471696e
+SHA256 (libofa-0.9.3.tar.gz) = 0216466153e92058c5202dea03390ddc7601d916b983f71ce4f4d034405590a0
+SIZE (libofa-0.9.3.tar.gz) = 384043
--- /dev/null
+++ audio/libofa/files/patch-examples_wavefile.cpp
@@ -0,0 +1,10 @@
+--- examples/wavefile.cpp.orig	Mon Jul 24 11:13:26 2006
++++ examples/wavefile.cpp	Mon Jul 24 11:13:05 2006
+@@ -11,6 +11,7 @@
+ #include "io.h"
+ #endif
+ #include <fcntl.h>
++#include <unistd.h>
+ 
+ static bool readBytes(int fd, unsigned char *buf, int size) {
+     int ct = 0;
--- /dev/null
+++ audio/libofa/files/patch-lib_JAMA_tnt__math_utils.h
@@ -0,0 +1,33 @@
+--- lib/JAMA/tnt_math_utils.h.orig	Sat Sep 30 19:34:43 2006
++++ lib/JAMA/tnt_math_utils.h	Sat Sep 30 19:36:07 2006
+@@ -20,6 +20,14 @@
+ namespace TNT
+ {
+ /**
++	@returns the absolute value of a real (no-complex) scalar.
++*/
++template <class Real>
++Real abs(const Real &a)
++{
++	return  (a > 0 ? a : -a);
++}
++/**
+ 	@returns hypotenuse of real (non-complex) scalars a and b by 
+ 	avoiding underflow/overflow
+ 	using (a * sqrt( 1 + (b/a) * (b/a))), rather than
+@@ -55,15 +63,6 @@
+ 	return  a > b ? a : b;
+ }
+ */
+-
+-/**
+-	@returns the absolute value of a real (no-complex) scalar.
+-*/
+-template <class Real>
+-Real abs(const Real &a)
+-{
+-	return  (a > 0 ? a : -a);
+-}
+ 
+ }
+ #endif
--- /dev/null
+++ audio/libofa/files/patch-examples_uselame.cpp
@@ -0,0 +1,11 @@
+--- examples/uselame.cpp.orig	Mon Jul 24 11:11:58 2006
++++ examples/uselame.cpp	Mon Jul 24 11:12:09 2006
+@@ -13,6 +13,8 @@
+ #include <sys/wait.h>
+ #endif
+ 
++#include <unistd.h>
++
+ AudioData *loadWaveFile(char *file);
+ 
+ //	loadDataUsingLAME
--- /dev/null
+++ audio/libofa/files/patch-examples_examples.cpp
@@ -0,0 +1,11 @@
+--- examples/example.cpp.orig	Mon Jul 24 11:09:39 2006
++++ examples/example.cpp	Mon Jul 24 11:09:50 2006
+@@ -7,6 +7,8 @@
+ 
+ -------------------------------------------------------------------*/
+ 
++#include <stdio.h>
++
+ #include "protocol.h"
+ 
+ AudioData* loadWaveFile(char *file);


More information about the Midnightbsd-cvs mailing list