core/openjpeg/PKGBUILD

39 lines
1.1 KiB
Bash
Raw Normal View History

#
2015-01-08 07:30:12 +08:00
# Chakra Packages for Chakra, part of chakraos.org
#
2012-08-12 07:49:54 +08:00
# Maintainer: Fabian Kosmale <0inkane@googlemail.com>
2010-03-14 23:48:48 +08:00
pkgname=openjpeg
2015-01-08 07:30:12 +08:00
pkgver=1.5.2
pkgrel=1
2010-03-14 23:48:48 +08:00
pkgdesc="An open source JPEG 2000 codec"
arch=('x86_64')
2010-03-14 23:48:48 +08:00
license=('BSD')
url="http://www.openjpeg.org"
depends=('zlib')
2015-01-08 07:30:12 +08:00
makedepends=('libtiff' 'lcms2' 'libpng' 'doxygen')
optdepends=('lcms2: j2k_to_image and image_to_j2k programs'
'libpng: j2k_to_image and image_to_j2k programs')
source=(http://downloads.sourceforge.net/openjpeg.mirror/${pkgname}-${pkgver}.tar.gz)
md5sums=('c41772c30fb1c272358b3707233134a1')
2010-03-14 23:48:48 +08:00
build() {
2015-01-08 07:30:12 +08:00
cd $pkgname-$pkgver
autoreconf -fi
2012-08-12 07:49:54 +08:00
# make sure we use system libs with --disable-static
# we want the most informative output during build,
# thus we pass --disable-silent-rules to configure
2015-01-08 07:30:12 +08:00
rm -rf thirdparty
./configure --prefix=/usr \
2012-08-12 07:49:54 +08:00
--disable-static --disable-silent-rules
make
}
package() {
2015-01-08 07:30:12 +08:00
cd $pkgname-$pkgver
make DESTDIR="${pkgdir}" install
2010-03-14 23:48:48 +08:00
install -m755 -d "${pkgdir}/usr/share/licenses/openjpeg"
install -m644 LICENSE "${pkgdir}/usr/share/licenses/openjpeg/LICENSE"
2010-03-14 23:48:48 +08:00
}
2012-08-12 07:49:54 +08:00