You are not logged in.
Offline
You will need a package for zita-convolver first as a dependency for jconf. Here it is.
pkgname=zita-convolver
pkgver=0.1.0
pkgrel=1
pkgdesc="Library for jconf"
arch=('i686' 'x86_64')
url="http://www.kokkinizita.net/linuxaudio"
license=('LGPL')
depends=('gcc')
source=(http://www.kokkinizita.net/linuxaudio/downloads/${pkgname}-${pkgver}.tar.bz2)
md5sums=('2610d7ce2030c95e9799ecb8189cc7b3')
build() {
cd $srcdir/${pkgname}/libs
sed -i 's+/usr/bin/install+install+' Makefile || return 1
install -d ${startdir}/pkg/usr/{include,lib}
make SUFFIX="" PREFIX=${startdir}/pkg/usr install || return 1
}
But unfortunately the following PKGBUILD for jconv fails, probably due to a missing header file
pkgname=jconv
pkgver=0.2.0
pkgrel=1
pkgdesc="Convolution Engine for JACK"
url="http://www.kokkinizita.net/linuxaudio/"
arch=('i686' 'x86_64')
license=('GPL')
depends=('fftw' 'clthreads' 'zita-convolver' 'libsndfile' 'jack-audio-connection-kit')
source=(http://www.kokkinizita.net/linuxaudio/downloads/$pkgname-$pkgver.tar.bz2)
md5sums=('058f586835dff671acba22836bf7ae2a')
build() {
cd $srcdir/$pkgname
LANG=C
make PREFIX=/usr SUFFIX="" || return 1
make DESTDIR=$startdir/pkg install
}
Error message:
g++ -march=x86-64 -mtune=generic -O2 -pipe -O3 -Wall -MMD -MP -DVERSION=\"0.2.0\" -c -o impdata.o impdata.cc
impdata.cc: In member function 'int Impdata::sf_open_read(const char*)':
impdata.cc:264: error: 'SFC_WAVEX_GET_AMBISONIC' was not declared in this scope
impdata.cc:264: error: 'SF_AMBISONIC_B_FORMAT' was not declared in this scope
impdata.cc: In member function 'int Impdata::sf_open_write(const char*)':
impdata.cc:306: error: 'SFC_WAVEX_SET_AMBISONIC' was not declared in this scope
impdata.cc:306: error: 'SF_AMBISONIC_B_FORMAT' was not declared in this scope
make: *** [impdata.o] Error 1
Offline
This should compile (or just sed out the hash on line 30). I'll just post the relevant parts since the rest of my PKGBUILDs are basically the same.
patch -Np1 -i ../makefile.diff || return 1
make || return 1
make PREFIX="$pkgdir/usr" install || return 1
makefile.diff:
--- jconv.orig/Makefile 2008-12-06 10:43:18.000000000 -0600
+++ jconv/Makefile 2008-12-06 10:44:06.000000000 -0600
@@ -15,9 +15,9 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-PREFIX = /usr/local
+PREFIX = /usr
SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
-LIBDIR = lib$(SUFFIX)
+LIBDIR = lib
DISTDIR = jconv-$(VERSION)
VERSION = 0.2.0
LDFLAGS += -L$(PREFIX)/$(LIBDIR)
@@ -27,7 +27,7 @@
# Uncomment if you use a libsndfile version without support for setting/getting the Ambisonic flags.
#
-#CPPFLAGS += -DNOAMBIS=1
+CPPFLAGS += -DNOAMBIS=1
all: jconv fconv mkwavex
@@ -60,9 +60,9 @@
install: jconv fconv mkwavex
- /usr/bin/install -m 755 jconv $(PREFIX)/bin
- /usr/bin/install -m 755 fconv $(PREFIX)/bin
- /usr/bin/install -m 755 mkwavex $(PREFIX)/bin
+ install -D -m 755 jconv $(PREFIX)/bin/jconv
+ install -D -m 755 fconv $(PREFIX)/bin/fconv
+ install -D -m 755 mkwavex $(PREFIX)/bin/mkwavex
clean:
Last edited by creslin (2008-12-06 16:47:34)
ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.
Offline
Thank you, creslin, that was the correct hint. I had to replace "/usr/bin/install" by "install" in the makefile ,though. Now this should compile:
PKGBUILD
pkgname=jconv
pkgver=0.2.0
pkgrel=1
pkgdesc="Convolution Engine for JACK"
url="http://www.kokkinizita.net/linuxaudio/"
arch=('i686' 'x86_64')
license=('GPL')
depends=('fftw' 'clthreads' 'zita-convolver' 'libsndfile' \
'jack-audio-connection-kit')
source=(makefile.diff \
http://www.kokkinizita.net/linuxaudio/downloads/$pkgname-$pkgver.tar.bz2)
md5sums=('a493ad72c6774b3144731ba9e77241ef' '058f586835dff671acba22836bf7ae2a')
build() {
cd $srcdir/$pkgname
patch -Np1 -i ../makefile.diff || return 1
make || return 1
make PREFIX=$pkgdir install || return 1
}
makefile.diff
diff -aur jconv.orig/Makefile jconv.new/Makefile
--- jconv.orig/Makefile 2008-12-06 17:55:12.000000000 +0100
+++ jconv.new/Makefile 2008-12-06 17:56:46.000000000 +0100
@@ -15,9 +15,9 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-PREFIX = /usr/local
+PREFIX = /usr
SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
-LIBDIR = lib$(SUFFIX)
+LIBDIR = lib
DISTDIR = jconv-$(VERSION)
VERSION = 0.2.0
LDFLAGS += -L$(PREFIX)/$(LIBDIR)
@@ -27,7 +27,7 @@
# Uncomment if you use a libsndfile version without support for setting/getting the Ambisonic flags.
#
-#CPPFLAGS += -DNOAMBIS=1
+CPPFLAGS += -DNOAMBIS=1
all: jconv fconv mkwavex
@@ -60,9 +60,9 @@
install: jconv fconv mkwavex
- /usr/bin/install -m 755 jconv $(PREFIX)/bin
- /usr/bin/install -m 755 fconv $(PREFIX)/bin
- /usr/bin/install -m 755 mkwavex $(PREFIX)/bin
+ install -m 755 jconv $(PREFIX)/bin
+ install -m 755 fconv $(PREFIX)/bin
+ install -m 755 mkwavex $(PREFIX)/bin
Offline
I had to replace "/usr/bin/install" by "install" in the makefile ,though.
Aye I did the same. Actually I just added the -D flag in the patch to skip the extra dir creation in the PKGBUILD. I don't know why they hardcoded the path though.
Also, I'm not sure if it's necessary, but I think zita-convolver might need an install file to run ldconfig.
Last edited by creslin (2008-12-06 17:19:59)
ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.
Offline
Both packages are in AUR now, with another small change.
http://aur.archlinux.org/packages.php?ID=22043
http://aur.archlinux.org/packages.php?ID=22044
Last edited by Stefan Husmann (2008-12-06 20:16:57)
Offline
Fantastic! MANY THANKS!!!!
The clthreats in the AUR is outadet, but that wasnt a prob.
Offline