APKBUILD 1.06 KB
Newer Older
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
1
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
3
pkgname=imagemagick
4
pkgver=6.5.8.5
5
_pkgver=${pkgver%.*}-${pkgver##*.}
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
6 7 8 9
pkgrel=0
pkgdesc="A collection of tools and libraries for many image formats"
url="http://www.imagemagick.org/"
license="GPL"
10
depends=
11
makedepends="zlib-dev libpng-dev jpeg-dev freetype-dev perl-dev"
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
12
subpackages="$pkgname-doc $pkgname-dev"
13
source="ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-$_pkgver.tar.gz"
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
14 15 16 17 18 19

build() {
	cd "$srcdir/ImageMagick-${_pkgver}"
	
	# fix doc dir, Gentoo bug 91911
	sed -i -e \
20 21
		's:DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}":DOCUMENTATION_PATH="/usr/share/doc/imagemagick":g' \
		configure || die
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
22 23 24 25 26 27

	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--without-threads \
28
		--without-x \
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
29 30
		--with-modules
	make || return 1
31 32 33 34
}

package() {
	cd "$srcdir/ImageMagick-${_pkgver}"
35
	make -j1 DESTDIR="$pkgdir" install
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
36 37 38

}

39
md5sums="a710357778c9b0d68ffab3f300564399  ImageMagick-6.5.8-5.tar.gz"