aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2011-03-17 23:47:15 +0800
committermiwi <miwi@FreeBSD.org>2011-03-17 23:47:15 +0800
commitdd733f7f8d9250001ce97642c206fb44fe280cbc (patch)
tree71ba0b1ba4d54c190965d272ad66a76ff65ce61d /audio
parent570fd801de78d400c2acfa125674c6f62737caf8 (diff)
downloadfreebsd-ports-gnome-dd733f7f8d9250001ce97642c206fb44fe280cbc.tar.gz
freebsd-ports-gnome-dd733f7f8d9250001ce97642c206fb44fe280cbc.tar.zst
freebsd-ports-gnome-dd733f7f8d9250001ce97642c206fb44fe280cbc.zip
- Update MASTER_SITES
- Add LICENSE (GPLv2) - Mark MAKE_JOBS_SAFE - Remove ^M in files with USE_DOS2UNIX - Use gnomehack to fix pkgconfig directory - Remove MD5 - Remove 4.x patches - Bump port revision since installed header file contains ^M - Update pkg-descr - Take maintainership PR: 155608 Submitted by: Jason E. Hale <bsdkaffee@gmail.com>
Diffstat (limited to 'audio')
-rw-r--r--audio/libofa/Makefile20
-rw-r--r--audio/libofa/distinfo1
-rw-r--r--audio/libofa/files/patch-examples_examples.cpp11
-rw-r--r--audio/libofa/files/patch-examples_uselame.cpp11
-rw-r--r--audio/libofa/files/patch-examples_wavefile.cpp10
-rw-r--r--audio/libofa/files/patch-lib__JAMA__tnt_math_utils.h (renamed from audio/libofa/files/patch-lib_JAMA_tnt__math_utils.h)64
-rw-r--r--audio/libofa/pkg-descr7
7 files changed, 46 insertions, 78 deletions
diff --git a/audio/libofa/Makefile b/audio/libofa/Makefile
index c21a43ba4b95..f0f9a9bbe171 100644
--- a/audio/libofa/Makefile
+++ b/audio/libofa/Makefile
@@ -7,28 +7,28 @@
PORTNAME= libofa
PORTVERSION= 0.9.3
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= audio
-MASTER_SITES= http://www.musicdns.org/files/
+MASTER_SITES= GOOGLE_CODE
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= bsdkaffee@gmail.com
COMMENT= The Open Fingerprint Architecture Library
LIB_DEPENDS= fftw3.5:${PORTSDIR}/math/fftw3 \
expat.6:${PORTSDIR}/textproc/expat2 \
curl.6:${PORTSDIR}/ftp/curl
+PROJECTHOST= musicip-libofa
+USE_DOS2UNIX= yes
USE_AUTOTOOLS= libtool
-USE_GNOME= pkgconfig
+USE_GNOME= gnomehack pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
+MAKE_JOBS_SAFE= yes
USE_LDCONFIG= yes
-.include <bsd.port.pre.mk>
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
-post-configure:
- @${REINPLACE_CMD} -e "s|pcdir =.*|pcdir = ${PREFIX}/libdata/pkgconfig|g" \
- ${WRKSRC}/Makefile
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/audio/libofa/distinfo b/audio/libofa/distinfo
index 50b75537dfde..301a0365d62f 100644
--- a/audio/libofa/distinfo
+++ b/audio/libofa/distinfo
@@ -1,3 +1,2 @@
-MD5 (libofa-0.9.3.tar.gz) = 51507d2c4b432bd2755f48d58471696e
SHA256 (libofa-0.9.3.tar.gz) = 0216466153e92058c5202dea03390ddc7601d916b983f71ce4f4d034405590a0
SIZE (libofa-0.9.3.tar.gz) = 384043
diff --git a/audio/libofa/files/patch-examples_examples.cpp b/audio/libofa/files/patch-examples_examples.cpp
deleted file mode 100644
index 11f4a6cf4181..000000000000
--- a/audio/libofa/files/patch-examples_examples.cpp
+++ /dev/null
@@ -1,11 +0,0 @@
---- 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);
diff --git a/audio/libofa/files/patch-examples_uselame.cpp b/audio/libofa/files/patch-examples_uselame.cpp
deleted file mode 100644
index 2bfaaa73f13f..000000000000
--- a/audio/libofa/files/patch-examples_uselame.cpp
+++ /dev/null
@@ -1,11 +0,0 @@
---- 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
diff --git a/audio/libofa/files/patch-examples_wavefile.cpp b/audio/libofa/files/patch-examples_wavefile.cpp
deleted file mode 100644
index 41cf7176a743..000000000000
--- a/audio/libofa/files/patch-examples_wavefile.cpp
+++ /dev/null
@@ -1,10 +0,0 @@
---- 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;
diff --git a/audio/libofa/files/patch-lib_JAMA_tnt__math_utils.h b/audio/libofa/files/patch-lib__JAMA__tnt_math_utils.h
index f8506791a19d..10872bc74f97 100644
--- a/audio/libofa/files/patch-lib_JAMA_tnt__math_utils.h
+++ b/audio/libofa/files/patch-lib__JAMA__tnt_math_utils.h
@@ -1,33 +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
+--- ./lib/JAMA/tnt_math_utils.h.orig 2011-03-16 10:47:10.000000000 -0400
++++ ./lib/JAMA/tnt_math_utils.h 2011-03-16 10:51:40.000000000 -0400
@@ -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
+ 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
+@@ -56,15 +64,6 @@
+ }
+ */
+
+-/**
+- @returns the absolute value of a real (no-complex) scalar.
+-*/
+-template <class Real>
+-Real abs(const Real &a)
+-{
+- return (a > 0 ? a : -a);
+-}
+-
+ }
+ #endif
+ /* MATH_UTILS_H */
diff --git a/audio/libofa/pkg-descr b/audio/libofa/pkg-descr
index 266974028f46..9e181e6e04af 100644
--- a/audio/libofa/pkg-descr
+++ b/audio/libofa/pkg-descr
@@ -1,4 +1,5 @@
-The Open Fingerprint normalizes, extracts frequencies, and creates an array
-representing the frequency data in an audio file.
+The Open Fingerprint Architecture (OFA) Library normalizes, extracts
+frequencies, and creates an array representing the frequency data in an audio
+file.
-WWW: http://www.musicdns.org
+WWW: http://code.google.com/p/musicip-libofa/