summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 05c3b5394eac3b29b78d5bcbbd3c3012d4b540c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: pingplug < aur at pingplug dot me >
# Contributor: Schala Zeal < schalaalexiazeal at gmail dot com >
# Contributor: bubla < matej dot tyc at gmail dot com >

_android_arch=armv7a-eabi

pkgname=android-${_android_arch}-libtiff
pkgver=4.6.0
pkgrel=3
arch=('any')
pkgdesc="Library for manipulation of TIFF images (Android ${_android_arch})"
url="http://www.simplesystems.org/libtiff/"
license=('custom')
depends=("android-${_android_arch}-jbigkit"
         "android-${_android_arch}-libjpeg-turbo"
         "android-${_android_arch}-zlib"
         "android-${_android_arch}-xz"
         "android-${_android_arch}-zstd")
makedepends=('android-configure')
options=(!strip !buildflags staticlibs !emptydirs)
source=("http://download.osgeo.org/libtiff/tiff-${pkgver}.tar.gz")
md5sums=('fc7d49a9348b890b29f91a4ecadd5b49')

build() {
    cd "${srcdir}/tiff-${pkgver}"
    source android-env ${_android_arch}

    export CFLAGS="${CFLAGS} -fno-strict-aliasing"
    export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"

    android-${_android_arch}-configure \
        --sysconfdir="${ANDROID_PREFIX_ETC}" \
        --enable-cxx \
        --disable-tools \
        --disable-tests \
        --disable-docs
    make $MAKEFLAGS
}

package() {
    cd "${srcdir}/tiff-${pkgver}"
    source android-env ${_android_arch}

    make DESTDIR="$pkgdir" install
    cp libtiff/{tiffiop,tif_dir}.h "${pkgdir}/${ANDROID_PREFIX_INCLUDE}/"
    cp libtiff/tif_config.h "${pkgdir}/${ANDROID_PREFIX_INCLUDE}/"
    ${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}"/${ANDROID_PREFIX_LIB}/*.so
    ${ANDROID_STRIP} -g "$pkgdir"/${ANDROID_PREFIX_LIB}/*.a
}