diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2010-09-02 10:35:42 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2010-09-20 21:53:42 +0000 |
commit | 1017f59efa9cbaced2bef4f718dc40116f7a0736 (patch) | |
tree | fed4d57c5aaa02d110a1e684acdb87ed53951987 | |
parent | 26a29718b2a9cb029b27c68c819cf2fa2285a221 (diff) | |
download | aports-1017f59efa9cbaced2bef4f718dc40116f7a0736.tar.bz2 aports-1017f59efa9cbaced2bef4f718dc40116f7a0736.tar.xz |
main/libiconv: added support for eglibc.
- eglibc has its own iconv implementation.
(cherry picked from commit 665ec97469b59486bff1cd99a5267a8675e74852)
-rw-r--r-- | main/libiconv/APKBUILD | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/main/libiconv/APKBUILD b/main/libiconv/APKBUILD index f53a019968..21bf1ef17d 100644 --- a/main/libiconv/APKBUILD +++ b/main/libiconv/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Carlo Landmeter <clandmeter at gmail.com> pkgname=libiconv pkgver=1.12 -pkgrel=3 +pkgrel=4 pkgdesc="GNU charset conversion library for libc which doesn't implement it" url="http://www.gnu.org/software/libiconv" license='LGPL' @@ -11,15 +11,23 @@ subpackages="$pkgname-doc $pkgname-dev" build() { cd "$srcdir/$pkgname-$pkgver" - - ./configure --prefix=/usr \ - --mandir=/usr/share/man - make || return 1 + #only build if we need it + if [ "$ALPINE_LIBC" != "eglibc" ]; then + ./configure --prefix=/usr \ + --mandir=/usr/share/man + make || return 1 + fi } package() { cd "$srcdir/$pkgname-$pkgver" - make DESTDIR="$pkgdir/" install + #if we use eglibc we install dummy libiconv + if [ "$ALPINE_LIBC" = "eglibc" ]; then + mkdir -p "$pkgdir"/usr/include "$pkgdir"/usr/share/doc + else + make DESTDIR="$pkgdir/" install + fi } + md5sums="c2be282595751535a618ae0edeb8f648 libiconv-1.12.tar.gz" |