| 1 |
# Maintainer: Michael Gogins <[email protected]> |
| 2 |
|
| 3 |
# Maintainer: Michael Gogins <[email protected]> |
| 4 |
|
| 5 |
_realname=portaudio |
| 6 |
pkgbase=mingw-w64-${_realname} |
| 7 |
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" |
| 8 |
pkgver=12981.08eb5d0 |
| 9 |
pkgrel=1 |
| 10 |
pkgdesc='A free, cross platform, open-source, audio I/O library.' |
| 11 |
arch=('x86_64') |
| 12 |
url="http://www.portaudio.com" |
| 13 |
license=('custom') |
| 14 |
depends=('gcc-libs') |
| 15 |
makedepends=('subversion') |
| 16 |
conflicts=('portaudio') |
| 17 |
provides=('portaudio') |
| 18 |
#options=('!libtool') |
| 19 |
source=("${pkgname}::svn+https://subversion.assembla.com/svn/portaudio/portaudio/trunk/") |
| 20 |
md5sums=('SKIP') |
| 21 |
|
| 22 |
pkgver() { |
| 23 |
cd "$srcdir/$pkgname" |
| 24 |
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) |
| 25 |
} |
| 26 |
|
| 27 |
prepare() { |
| 28 |
cd "$srcdir/$pkgname" |
| 29 |
pwd |
| 30 |
patch -p1 -i ../../portaudio_svn.patch |
| 31 |
} |
| 32 |
|
| 33 |
build() { |
| 34 |
cd "$pkgname" |
| 35 |
./configure \ |
| 36 |
--prefix=${MINGW_PREFIX} \ |
| 37 |
--with-asiodir=/mingw64/include/asiosdk2 \ |
| 38 |
--with-dxdir=/mingw64/include \ |
| 39 |
--with-winapi=wmme,directx,asio,wdmks |
| 40 |
make -j4 |
| 41 |
} |
| 42 |
|
| 43 |
package() { |
| 44 |
cd "$pkgname" |
| 45 |
make DESTDIR="$pkgdir" install |
| 46 |
} |