summaryrefslogtreecommitdiffstats
path: root/main/imagemagick
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-05-19 09:35:45 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-05-19 09:35:45 +0000
commit0893d6f694e352c169814231b925ee13d66896c8 (patch)
treef8a475c159f7506099283a9b569f12aaf3aa7a4b /main/imagemagick
parent515fabfbf75481280e13bb38d542586f112f840d (diff)
downloadaports-0893d6f694e352c169814231b925ee13d66896c8.tar.bz2
aports-0893d6f694e352c169814231b925ee13d66896c8.tar.xz
main/imagemagic: split c++ libs to subpackage
Diffstat (limited to 'main/imagemagick')
-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"