summaryrefslogtreecommitdiff
path: root/extra/openjpeg/PKGBUILD
blob: 0b30d5fc87c75712dface60403a01bc14f735668 (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
# $Id: PKGBUILD 137660 2011-09-10 10:58:56Z pierre $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=openjpeg
pkgver=1.4
_pkgver=v1_4
_revision=r697
pkgrel=1
pkgdesc="An open source JPEG 2000 codec"
arch=(i686 x86_64 'mips64el')
license=('BSD')
url="http://www.openjpeg.org"
depends=('zlib')
source=(http://openjpeg.googlecode.com/files/openjpeg_${_pkgver}_sources_${_revision}.tgz
	openjpeg-1.4-autoconf.patch)
md5sums=('7870bb84e810dec63fcf3b712ebb93db'
         '46d1d26b59ce546444f3fe8d7c685775')

options=('!makeflags' '!libtool')

build() {
  cd "${srcdir}/${pkgname}_${_pkgver}_sources_${_revision}"
  patch -Np1 -i ${srcdir}/openjpeg-1.4-autoconf.patch
  # make sure we use system libs
  rm -rf libs
  ./configure --prefix=/usr \
	--disable-static
  make
}

package() {
  cd "${srcdir}/${pkgname}_${_pkgver}_sources_${_revision}"
  make DESTDIR="${pkgdir}" install
  install -m755 -d "${pkgdir}/usr/share/licenses/openjpeg"
  install -m644 LICENSE "${pkgdir}/usr/share/licenses/openjpeg/LICENSE"
}