Browse Source

git subrepo clone gitea@gitea.artixlinux.org:packagesL/libofa.git libofa

subrepo:
  subdir:   "libofa"
  merged:   "f7a978f"
upstream:
  origin:   "gitea@gitea.artixlinux.org:packagesL/libofa.git"
  branch:   "master"
  commit:   "f7a978f"
git-subrepo:
  version:  "0.4.0"
  origin:   "???"
  commit:   "???"
master
artoo 3 years ago
parent
commit
b58f29914e
Signed by: artoo
GPG Key ID: 3292CD0BB0DB310B
  1. 5
      libofa/.artixlinux/agent.yaml
  2. 33
      libofa/.gitignore
  3. 12
      libofa/.gitrepo
  4. 3
      libofa/Jenkinsfile
  5. 2
      libofa/README.md
  6. 45
      libofa/repos/extra-x86_64/PKGBUILD
  7. 11
      libofa/repos/extra-x86_64/libofa-0.9.3-curl-7.21.patch
  8. 22
      libofa/repos/extra-x86_64/libofa-0.9.3-gcc-4.7.patch
  9. 35
      libofa/repos/extra-x86_64/libofa-gcc4.3.patch
  10. 10
      libofa/repos/extra-x86_64/libofa-gcc4.5.patch
  11. 39
      libofa/repos/extra-x86_64/libofa-gcc4.patch
  12. 45
      libofa/trunk/PKGBUILD
  13. 11
      libofa/trunk/libofa-0.9.3-curl-7.21.patch
  14. 22
      libofa/trunk/libofa-0.9.3-gcc-4.7.patch
  15. 35
      libofa/trunk/libofa-gcc4.3.patch
  16. 10
      libofa/trunk/libofa-gcc4.5.patch
  17. 39
      libofa/trunk/libofa-gcc4.patch

5
libofa/.artixlinux/agent.yaml

@ -0,0 +1,5 @@
%YAML 1.2
---
label: master

33
libofa/.gitignore vendored

@ -0,0 +1,33 @@
# ---> ArchLinuxPackages
*.tar
*.tar.*
*.jar
*.exe
*.msi
*.zip
*.tgz
*.log
*.log.*
*.sig
pkg/
src/
# ---> Archives
*.7z
*.rar
*.gz
*.bzip
*.bz2
*.xz
*.lzma
*.cab
# ---> systemd
*.service
*.socket
*.timer
# ---> snap
*.snap

12
libofa/.gitrepo

@ -0,0 +1,12 @@
; DO NOT EDIT (unless you know what you are doing)
;
; This subdirectory is a git "subrepo", and this file is maintained by the
; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme
;
[subrepo]
remote = gitea@gitea.artixlinux.org:packagesL/libofa.git
branch = master
commit = f7a978fe3ecb28eb0fafc1c4071eb61197defc67
parent = d2b67c0b0b9a967b9ee7de932e34cc1e3f54838a
method = merge
cmdver = 0.4.0

3
libofa/Jenkinsfile vendored

@ -0,0 +1,3 @@
@Library('artix-ci') import org.artixlinux.RepoPackage
PackagePipeline(new RepoPackage(this))

2
libofa/README.md

@ -0,0 +1,2 @@
# libofa

45
libofa/repos/extra-x86_64/PKGBUILD

@ -0,0 +1,45 @@
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
pkgname=libofa
pkgver=0.9.3
pkgrel=8
pkgdesc="An open-source audio fingerprint by MusicIP"
arch=('x86_64')
url="https://github.com/tanob/libofa"
license=('GPL2' 'custom')
depends=('expat' 'curl' 'fftw')
source=("https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/musicip-libofa/libofa-$pkgver.tar.gz"
'libofa-gcc4.patch'
'libofa-gcc4.3.patch'
'libofa-gcc4.5.patch'
'libofa-0.9.3-curl-7.21.patch'
'libofa-0.9.3-gcc-4.7.patch')
sha256sums=('0216466153e92058c5202dea03390ddc7601d916b983f71ce4f4d034405590a0'
'29955fe97cdb3cc2eb72b7b05f1ae38cc5c98b1740a0db96d61f51a13d380cd8'
'99fb50907d98640b21a42d00fccee1fa33a02dfabf94a40374766fcc823f5dd3'
'6557e9c5ff2a8e0d5f0a91d9faa0ac43b7278926631d45a504cd17fe07fd3c68'
'2fa49ced7b47cf05641d1413965244693ffd514ec9d409a784b92751ae4d1c90'
'e0c28752df197ce38f9762aded5df12e1ba1181f721f42fddb83ec1178e90c58')
prepare() {
cd ${pkgname}-${pkgver}
patch -p0 -i "${srcdir}/libofa-gcc4.patch"
patch -p1 -i "${srcdir}/libofa-gcc4.3.patch"
patch -p1 -i "${srcdir}/libofa-gcc4.5.patch"
patch -p1 -i "${srcdir}/libofa-0.9.3-gcc-4.7.patch"
patch -p1 -i "${srcdir}/libofa-0.9.3-curl-7.21.patch"
}
build() {
cd ${pkgname}-${pkgver}
./configure --prefix=/usr
make
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

11
libofa/repos/extra-x86_64/libofa-0.9.3-curl-7.21.patch

@ -0,0 +1,11 @@
diff -ru libofa-0.9.3.orig//examples/protocol.cpp libofa-0.9.3//examples/protocol.cpp
--- libofa-0.9.3.orig//examples/protocol.cpp 2006-05-10 20:05:42.000000000 +0200
+++ libofa-0.9.3//examples/protocol.cpp 2011-07-22 19:02:30.687109297 +0200
@@ -12,7 +12,6 @@
#include <map>
#include <expat.h>
#include <curl/curl.h>
-#include <curl/types.h>
#include <curl/easy.h>
using namespace std;

22
libofa/repos/extra-x86_64/libofa-0.9.3-gcc-4.7.patch

@ -0,0 +1,22 @@
diff -up libofa-0.9.3/examples/uselame.cpp.gcc47 libofa-0.9.3/examples/uselame.cpp
--- libofa-0.9.3/examples/uselame.cpp.gcc47 2012-01-14 09:35:24.343146853 -0600
+++ libofa-0.9.3/examples/uselame.cpp 2012-01-14 09:35:49.956826634 -0600
@@ -12,6 +12,7 @@
#else
#include <sys/wait.h>
#endif
+#include <unistd.h>
AudioData *loadWaveFile(char *file);
diff -up libofa-0.9.3/examples/wavefile.cpp.gcc47 libofa-0.9.3/examples/wavefile.cpp
--- libofa-0.9.3/examples/wavefile.cpp.gcc47 2012-01-14 09:35:24.344146841 -0600
+++ libofa-0.9.3/examples/wavefile.cpp 2012-01-14 16:00:54.414981160 -0600
@@ -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;

35
libofa/repos/extra-x86_64/libofa-gcc4.3.patch

@ -0,0 +1,35 @@
diff -ur libofa-0.9.3.orig/examples/example.cpp libofa-0.9.3/examples/example.cpp
--- libofa-0.9.3.orig/examples/example.cpp 2006-05-10 21:05:37.000000000 +0300
+++ libofa-0.9.3/examples/example.cpp 2008-04-16 15:51:49.000000000 +0300
@@ -9,6 +9,8 @@
#include "protocol.h"
+#include <string.h>
+
AudioData* loadWaveFile(char *file);
AudioData* loadDataUsingLAME(char *file);
Vain hakemistossa libofa-0.9.3/examples: example.cpp.orig
diff -ur libofa-0.9.3.orig/examples/protocol.cpp libofa-0.9.3/examples/protocol.cpp
--- libofa-0.9.3.orig/examples/protocol.cpp 2006-05-10 21:05:42.000000000 +0300
+++ libofa-0.9.3/examples/protocol.cpp 2008-04-16 15:51:49.000000000 +0300
@@ -8,6 +8,7 @@
-------------------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
+#include <cstring>
#include <string>
#include <map>
#include <expat.h>
diff -ur libofa-0.9.3.orig/lib/signal_op.cpp libofa-0.9.3/lib/signal_op.cpp
--- libofa-0.9.3.orig/lib/signal_op.cpp 2006-05-10 21:01:12.000000000 +0300
+++ libofa-0.9.3/lib/signal_op.cpp 2008-04-16 15:51:49.000000000 +0300
@@ -12,6 +12,7 @@
// DATE CREATED: 1/12/06
+#include <cstdlib>
#include <math.h>
#include "signal_op.h"
#include "AFLIB/aflibConverter.h"

10
libofa/repos/extra-x86_64/libofa-gcc4.5.patch

@ -0,0 +1,10 @@
--- libofa-0.9.3/examples/example.cpp~ 2010-05-19 18:07:19.517650317 +0200
+++ libofa-0.9.3/examples/example.cpp 2010-05-19 18:07:31.754317472 +0200
@@ -6,6 +6,7 @@
No rights reserved.
-------------------------------------------------------------------*/
+#include <cstdio>
#include "protocol.h"

39
libofa/repos/extra-x86_64/libofa-gcc4.patch

@ -0,0 +1,39 @@
--- lib/JAMA/tnt_math_utils.h.orig 2006-06-17 01:46:22.000000000 +0300
+++ lib/JAMA/tnt_math_utils.h 2006-06-17 01:47:02.000000000 +0300
@@ -20,11 +20,20 @@
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
sqrt(a*a + b*b).
*/
+
template <class Real>
Real hypot(const Real &a, const Real &b)
{
@@ -56,15 +65,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 */

45
libofa/trunk/PKGBUILD

@ -0,0 +1,45 @@
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
pkgname=libofa
pkgver=0.9.3
pkgrel=8
pkgdesc="An open-source audio fingerprint by MusicIP"
arch=('x86_64')
url="https://github.com/tanob/libofa"
license=('GPL2' 'custom')
depends=('expat' 'curl' 'fftw')
source=("https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/musicip-libofa/libofa-$pkgver.tar.gz"
'libofa-gcc4.patch'
'libofa-gcc4.3.patch'
'libofa-gcc4.5.patch'
'libofa-0.9.3-curl-7.21.patch'
'libofa-0.9.3-gcc-4.7.patch')
sha256sums=('0216466153e92058c5202dea03390ddc7601d916b983f71ce4f4d034405590a0'
'29955fe97cdb3cc2eb72b7b05f1ae38cc5c98b1740a0db96d61f51a13d380cd8'
'99fb50907d98640b21a42d00fccee1fa33a02dfabf94a40374766fcc823f5dd3'
'6557e9c5ff2a8e0d5f0a91d9faa0ac43b7278926631d45a504cd17fe07fd3c68'
'2fa49ced7b47cf05641d1413965244693ffd514ec9d409a784b92751ae4d1c90'
'e0c28752df197ce38f9762aded5df12e1ba1181f721f42fddb83ec1178e90c58')
prepare() {
cd ${pkgname}-${pkgver}
patch -p0 -i "${srcdir}/libofa-gcc4.patch"
patch -p1 -i "${srcdir}/libofa-gcc4.3.patch"
patch -p1 -i "${srcdir}/libofa-gcc4.5.patch"
patch -p1 -i "${srcdir}/libofa-0.9.3-gcc-4.7.patch"
patch -p1 -i "${srcdir}/libofa-0.9.3-curl-7.21.patch"
}
build() {
cd ${pkgname}-${pkgver}
./configure --prefix=/usr
make
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

11
libofa/trunk/libofa-0.9.3-curl-7.21.patch

@ -0,0 +1,11 @@
diff -ru libofa-0.9.3.orig//examples/protocol.cpp libofa-0.9.3//examples/protocol.cpp
--- libofa-0.9.3.orig//examples/protocol.cpp 2006-05-10 20:05:42.000000000 +0200
+++ libofa-0.9.3//examples/protocol.cpp 2011-07-22 19:02:30.687109297 +0200
@@ -12,7 +12,6 @@
#include <map>
#include <expat.h>
#include <curl/curl.h>
-#include <curl/types.h>
#include <curl/easy.h>
using namespace std;

22
libofa/trunk/libofa-0.9.3-gcc-4.7.patch

@ -0,0 +1,22 @@
diff -up libofa-0.9.3/examples/uselame.cpp.gcc47 libofa-0.9.3/examples/uselame.cpp
--- libofa-0.9.3/examples/uselame.cpp.gcc47 2012-01-14 09:35:24.343146853 -0600
+++ libofa-0.9.3/examples/uselame.cpp 2012-01-14 09:35:49.956826634 -0600
@@ -12,6 +12,7 @@
#else
#include <sys/wait.h>
#endif
+#include <unistd.h>
AudioData *loadWaveFile(char *file);
diff -up libofa-0.9.3/examples/wavefile.cpp.gcc47 libofa-0.9.3/examples/wavefile.cpp
--- libofa-0.9.3/examples/wavefile.cpp.gcc47 2012-01-14 09:35:24.344146841 -0600
+++ libofa-0.9.3/examples/wavefile.cpp 2012-01-14 16:00:54.414981160 -0600
@@ -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;

35
libofa/trunk/libofa-gcc4.3.patch

@ -0,0 +1,35 @@
diff -ur libofa-0.9.3.orig/examples/example.cpp libofa-0.9.3/examples/example.cpp
--- libofa-0.9.3.orig/examples/example.cpp 2006-05-10 21:05:37.000000000 +0300
+++ libofa-0.9.3/examples/example.cpp 2008-04-16 15:51:49.000000000 +0300
@@ -9,6 +9,8 @@
#include "protocol.h"
+#include <string.h>
+
AudioData* loadWaveFile(char *file);
AudioData* loadDataUsingLAME(char *file);
Vain hakemistossa libofa-0.9.3/examples: example.cpp.orig
diff -ur libofa-0.9.3.orig/examples/protocol.cpp libofa-0.9.3/examples/protocol.cpp
--- libofa-0.9.3.orig/examples/protocol.cpp 2006-05-10 21:05:42.000000000 +0300
+++ libofa-0.9.3/examples/protocol.cpp 2008-04-16 15:51:49.000000000 +0300
@@ -8,6 +8,7 @@
-------------------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
+#include <cstring>
#include <string>
#include <map>
#include <expat.h>
diff -ur libofa-0.9.3.orig/lib/signal_op.cpp libofa-0.9.3/lib/signal_op.cpp
--- libofa-0.9.3.orig/lib/signal_op.cpp 2006-05-10 21:01:12.000000000 +0300
+++ libofa-0.9.3/lib/signal_op.cpp 2008-04-16 15:51:49.000000000 +0300
@@ -12,6 +12,7 @@
// DATE CREATED: 1/12/06
+#include <cstdlib>
#include <math.h>
#include "signal_op.h"
#include "AFLIB/aflibConverter.h"

10
libofa/trunk/libofa-gcc4.5.patch

@ -0,0 +1,10 @@
--- libofa-0.9.3/examples/example.cpp~ 2010-05-19 18:07:19.517650317 +0200
+++ libofa-0.9.3/examples/example.cpp 2010-05-19 18:07:31.754317472 +0200
@@ -6,6 +6,7 @@
No rights reserved.
-------------------------------------------------------------------*/
+#include <cstdio>
#include "protocol.h"

39
libofa/trunk/libofa-gcc4.patch

@ -0,0 +1,39 @@
--- lib/JAMA/tnt_math_utils.h.orig 2006-06-17 01:46:22.000000000 +0300
+++ lib/JAMA/tnt_math_utils.h 2006-06-17 01:47:02.000000000 +0300
@@ -20,11 +20,20 @@
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
sqrt(a*a + b*b).
*/
+
template <class Real>
Real hypot(const Real &a, const Real &b)
{
@@ -56,15 +65,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 */
Loading…
Cancel
Save