summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/imagemagick/APKBUILD21
1 files changed, 18 insertions, 3 deletions
diff --git a/main/imagemagick/APKBUILD b/main/imagemagick/APKBUILD
index 0bb59626f..d232ba27d 100644
--- a/main/imagemagick/APKBUILD
+++ b/main/imagemagick/APKBUILD
@@ -3,14 +3,14 @@
pkgname=imagemagick
pkgver=6.6.9.9
_pkgver=${pkgver%.*}-${pkgver##*.}
-pkgrel=0
+pkgrel=1
pkgdesc="A collection of tools and libraries for many image formats"
url="http://www.imagemagick.org/"
arch="all"
license="GPL"
depends=
makedepends="zlib-dev libpng-dev jpeg-dev freetype-dev perl-dev ghostscript-dev"
-subpackages="$pkgname-doc $pkgname-dev"
+subpackages="$pkgname-doc $pkgname-dev $pkgname-c++:_cxx"
source="ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-$_pkgver.tar.gz"
build() {
@@ -36,7 +36,22 @@ build() {
package() {
cd "$srcdir/ImageMagick-${_pkgver}"
make -j1 DESTDIR="$pkgdir" install
- find "$pkgdir" -name '.packlist' -o -name 'perllocal.pod' -delete
+ find "$pkgdir" -name '.packlist' -o -name 'perllocal.pod' \
+ -o -name '*.bs' -delete
+}
+
+dev() {
+ default_dev
+ # we need the plugin .la files in main package since those are
+ # used internally
+ mv "$subpkgdir"/usr/lib/Image*/modules*/coders/*.la \
+ "$pkgdir"/usr/lib/Image*/modules*/coders/
+}
+
+_cxx() {
+ pkgdesc="ImageMagick Magick++ library (C++ bindings)"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/libMagick++.so.* "$subpkgdir"/usr/lib/
}
md5sums="3b240b7316a96cd6a168c14fe670eafc ImageMagick-6.6.9-9.tar.gz"