2012-01-18 10:30:12 +08:00
# Maintainer: Daniele Cocca <jmc@chakra-project.org>
_pkgname = ZynAddSubFX
pkgname = zynaddsubfx
2012-04-18 22:06:46 +08:00
pkgver = 2.4.2
pkgrel = 1
2012-01-18 10:30:12 +08:00
pkgdesc = "ZynAddSubFX is a open source software synthesizer capable of making a countless number of instruments, from some common heard from expensive hardware to interesting sounds that you'll boost to an amazing universe of sounds."
arch = ( 'i686' 'x86_64' )
url = "http://zynaddsubfx.sourceforge.net/"
license = ( 'GPL2' )
2012-01-18 11:10:54 +08:00
depends = ( 'fftw' 'mxml' 'zlib' 'fltk' )
2012-01-18 10:30:12 +08:00
makedepends = ( 'oss' 'jack' )
2012-03-16 22:51:37 +08:00
categories = ( 'multimedia' )
2012-01-18 11:10:54 +08:00
source = ( " https://downloads.sourceforge.net/project/ ${ pkgname } / ${ pkgname } / ${ pkgver } / ${ _pkgname } - ${ pkgver } .tar.bz2 "
2012-04-18 22:06:46 +08:00
'gentoo-zynaddsubfx-2.4.1-docs.patch' )
#'gentoo-zynaddsubfx-2.4.1-fltk.patch'
#'gentoo-zynaddsubfx-2.4.1-fltk13.patch')
md5sums = ( '4e1f15fd872f5cc649fc2217676e248e'
'1cc79aea2033fab472f35a5fec60167e' )
#'eb95d339ff5deac8c6b54965f04a8c60'
#'49464a33ab9c4250520eda0df7705663')
2012-01-18 10:30:12 +08:00
build( ) {
2012-01-18 11:10:54 +08:00
# Patch it first
cd " ${ srcdir } / ${ _pkgname } - ${ pkgver } "
patch -Np1 -i " ${ srcdir } /gentoo-zynaddsubfx-2.4.1-docs.patch "
2012-04-18 22:06:46 +08:00
#patch -Np1 -i "${srcdir}/gentoo-zynaddsubfx-2.4.1-fltk.patch"
#patch -Np1 -i "${srcdir}/gentoo-zynaddsubfx-2.4.1-fltk13.patch"
2012-01-18 11:10:54 +08:00
# Then, prepare the build directory
2012-01-18 10:30:12 +08:00
cd " ${ srcdir } "
[ ! -d build ] && mkdir -p build
2012-01-18 11:10:54 +08:00
# Then, actually build it
2012-01-18 10:30:12 +08:00
cd build
cmake " ${ srcdir } / ${ _pkgname } - ${ pkgver } " \
-DCMAKE_BUILD_TYPE= RelWithDebInfo \
2012-01-18 11:10:54 +08:00
-DCMAKE_INSTALL_PREFIX= /usr \
-DGuiModule= fltk
2012-01-18 10:30:12 +08:00
make
}
package( ) {
cd " ${ srcdir } /build "
make DESTDIR = " ${ pkgdir } " install
2012-01-18 11:36:15 +08:00
# Also copy the data files...
install -d -m755 " ${ pkgdir } /usr/share/ ${ pkgname } "
cp -a " ${ srcdir } / ${ _pkgname } - ${ pkgver } /banks " " ${ pkgdir } /usr/share/ ${ pkgname } "
cp -a " ${ srcdir } / ${ _pkgname } - ${ pkgver } /examples " " ${ pkgdir } /usr/share/ ${ pkgname } "
2012-01-18 10:30:12 +08:00
}
# vim:set ts=2 sw=2 et: