diff options
Diffstat (limited to 'main/libsndfile')
-rw-r--r-- | main/libsndfile/APKBUILD | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/main/libsndfile/APKBUILD b/main/libsndfile/APKBUILD index 673d5d0165..dff2d13b5d 100644 --- a/main/libsndfile/APKBUILD +++ b/main/libsndfile/APKBUILD @@ -12,8 +12,15 @@ depends_dev="flac-dev libvorbis-dev libogg-dev" makedepends="alsa-lib-dev $depends_dev" source="http://www.mega-nerd.com/$pkgname/files/$pkgname-$pkgver.tar.gz" +_builddir="$srcdir/$pkgname-$pkgver" + +prepare() { + cd "$_builddir" + update_config_sub || return 1 +} + build () { - cd "$srcdir"/$pkgname-$pkgver + cd "$_builddir" ac_cv_sys_largefile_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" \ ./configure \ --build=$CBUILD \ @@ -26,7 +33,7 @@ build () { } package() { - cd "$srcdir"/$pkgname-$pkgver + cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/*.la || return 1 } |