View | Details | Raw Unified | Return to bug 155608
Collapse All | Expand All

(-)libofa/Makefile (-10 / +10 lines)
Lines 7-34 Link Here
7
7
8
PORTNAME=	libofa
8
PORTNAME=	libofa
9
PORTVERSION=	0.9.3
9
PORTVERSION=	0.9.3
10
PORTREVISION=	4
10
PORTREVISION=	5
11
CATEGORIES=	audio
11
CATEGORIES=	audio
12
MASTER_SITES=	http://www.musicdns.org/files/
12
MASTER_SITES=	GOOGLE_CODE
13
13
14
MAINTAINER=	ports@FreeBSD.org
14
MAINTAINER=	bsdkaffee@gmail.com
15
COMMENT=	The Open Fingerprint Architecture Library
15
COMMENT=	The Open Fingerprint Architecture Library
16
16
17
LIB_DEPENDS=	fftw3.5:${PORTSDIR}/math/fftw3 \
17
LIB_DEPENDS=	fftw3.5:${PORTSDIR}/math/fftw3 \
18
		expat.6:${PORTSDIR}/textproc/expat2 \
18
		expat.6:${PORTSDIR}/textproc/expat2 \
19
		curl.6:${PORTSDIR}/ftp/curl
19
		curl.6:${PORTSDIR}/ftp/curl
20
20
21
PROJECTHOST=	musicip-libofa
22
USE_DOS2UNIX=	yes
21
USE_AUTOTOOLS=	libtool
23
USE_AUTOTOOLS=	libtool
22
USE_GNOME=	pkgconfig
24
USE_GNOME=	gnomehack pkgconfig
23
GNU_CONFIGURE=	yes
25
GNU_CONFIGURE=	yes
24
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
26
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
25
		LDFLAGS="-L${LOCALBASE}/lib"
27
		LDFLAGS="-L${LOCALBASE}/lib"
28
MAKE_JOBS_SAFE=	yes
26
USE_LDCONFIG=	yes
29
USE_LDCONFIG=	yes
27
30
28
.include <bsd.port.pre.mk>
31
LICENSE=	GPLv2
32
LICENSE_FILE=	${WRKSRC}/COPYING
29
33
30
post-configure:
34
.include <bsd.port.mk>
31
	@${REINPLACE_CMD} -e "s|pcdir =.*|pcdir = ${PREFIX}/libdata/pkgconfig|g" \
32
		${WRKSRC}/Makefile
33
34
.include <bsd.port.post.mk>
(-)libofa/distinfo (-1 lines)
Lines 1-3 Link Here
1
MD5 (libofa-0.9.3.tar.gz) = 51507d2c4b432bd2755f48d58471696e
2
SHA256 (libofa-0.9.3.tar.gz) = 0216466153e92058c5202dea03390ddc7601d916b983f71ce4f4d034405590a0
1
SHA256 (libofa-0.9.3.tar.gz) = 0216466153e92058c5202dea03390ddc7601d916b983f71ce4f4d034405590a0
3
SIZE (libofa-0.9.3.tar.gz) = 384043
2
SIZE (libofa-0.9.3.tar.gz) = 384043
(-)libofa/files/patch-examples_examples.cpp (-11 lines)
Lines 1-11 Link Here
1
--- examples/example.cpp.orig	Mon Jul 24 11:09:39 2006
2
+++ examples/example.cpp	Mon Jul 24 11:09:50 2006
3
@@ -7,6 +7,8 @@
4
 
5
 -------------------------------------------------------------------*/
6
 
7
+#include <stdio.h>
8
+
9
 #include "protocol.h"
10
 
11
 AudioData* loadWaveFile(char *file);
(-)libofa/files/patch-examples_uselame.cpp (-11 lines)
Lines 1-11 Link Here
1
--- examples/uselame.cpp.orig	Mon Jul 24 11:11:58 2006
2
+++ examples/uselame.cpp	Mon Jul 24 11:12:09 2006
3
@@ -13,6 +13,8 @@
4
 #include <sys/wait.h>
5
 #endif
6
 
7
+#include <unistd.h>
8
+
9
 AudioData *loadWaveFile(char *file);
10
 
11
 //	loadDataUsingLAME
(-)libofa/files/patch-examples_wavefile.cpp (-10 lines)
Lines 1-10 Link Here
1
--- examples/wavefile.cpp.orig	Mon Jul 24 11:13:26 2006
2
+++ examples/wavefile.cpp	Mon Jul 24 11:13:05 2006
3
@@ -11,6 +11,7 @@
4
 #include "io.h"
5
 #endif
6
 #include <fcntl.h>
7
+#include <unistd.h>
8
 
9
 static bool readBytes(int fd, unsigned char *buf, int size) {
10
     int ct = 0;
(-)libofa/files/patch-lib_JAMA_tnt__math_utils.h (-33 lines)
Lines 1-33 Link Here
1
--- lib/JAMA/tnt_math_utils.h.orig	Sat Sep 30 19:34:43 2006
2
+++ lib/JAMA/tnt_math_utils.h	Sat Sep 30 19:36:07 2006
3
@@ -20,6 +20,14 @@
4
 namespace TNT
5
 {
6
 /**
7
+	@returns the absolute value of a real (no-complex) scalar.
8
+*/
9
+template <class Real>
10
+Real abs(const Real &a)
11
+{
12
+	return  (a > 0 ? a : -a);
13
+}
14
+/**
15
 	@returns hypotenuse of real (non-complex) scalars a and b by 
16
 	avoiding underflow/overflow
17
 	using (a * sqrt( 1 + (b/a) * (b/a))), rather than
18
@@ -55,15 +63,6 @@
19
 	return  a > b ? a : b;
20
 }
21
 */
22
-
23
-/**
24
-	@returns the absolute value of a real (no-complex) scalar.
25
-*/
26
-template <class Real>
27
-Real abs(const Real &a)
28
-{
29
-	return  (a > 0 ? a : -a);
30
-}
31
 
32
 }
33
 #endif
(-)libofa/files/patch-lib__JAMA__tnt_math_utils.h (+33 lines)
Line 0 Link Here
1
--- ./lib/JAMA/tnt_math_utils.h.orig	2011-03-16 10:47:10.000000000 -0400
2
+++ ./lib/JAMA/tnt_math_utils.h	2011-03-16 10:51:40.000000000 -0400
3
@@ -20,6 +20,14 @@
4
 namespace TNT
5
 {
6
 /**
7
+	@returns the absolute value of a real (no-complex) scalar.
8
+*/
9
+template <class Real>
10
+Real abs(const Real &a)
11
+{
12
+	return  (a > 0 ? a : -a);
13
+}
14
+/**	
15
 	@returns hypotenuse of real (non-complex) scalars a and b by 
16
 	avoiding underflow/overflow
17
 	using (a * sqrt( 1 + (b/a) * (b/a))), rather than
18
@@ -56,15 +64,6 @@
19
 }
20
 */
21
 
22
-/**
23
-	@returns the absolute value of a real (no-complex) scalar.
24
-*/
25
-template <class Real>
26
-Real abs(const Real &a)
27
-{
28
-	return  (a > 0 ? a : -a);
29
-}
30
-
31
 }
32
 #endif
33
 /* MATH_UTILS_H */
(-)libofa/pkg-descr (-3 / +4 lines)
Lines 1-4 Link Here
1
The Open Fingerprint normalizes, extracts frequencies, and creates an array 
1
The Open Fingerprint Architecture (OFA) Library normalizes, extracts
2
representing the frequency data in an audio file.
2
frequencies, and creates an array representing the frequency data in an audio
3
file.
3
4
4
WWW:	http://www.musicdns.org
5
WWW: http://code.google.com/p/musicip-libofa/

Return to bug 155608