2006-01-05 15:11:15 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.85 2006/01/05 20:11:15 espie Exp $
|
2001-04-06 13:33:28 -04:00
|
|
|
|
2004-07-13 14:55:43 -04:00
|
|
|
COMMENT= "image processing tools"
|
1998-05-23 15:00:10 -04:00
|
|
|
|
2005-06-04 10:39:21 -04:00
|
|
|
VER= 6.2.3
|
2005-06-28 14:08:23 -04:00
|
|
|
DASHVER= 3
|
2004-06-24 03:44:58 -04:00
|
|
|
DISTNAME= ImageMagick-${VER}-${DASHVER}
|
2006-01-05 15:11:15 -05:00
|
|
|
PKGNAME= ImageMagick-${VER}.${DASHVER}p1
|
2005-12-28 09:56:54 -05:00
|
|
|
SHARED_LIBS= Magick++ 8.3 \
|
|
|
|
Magick 8.3 \
|
|
|
|
Wand 8.3
|
|
|
|
MODGNU_SHARED_LIBS= Magick++ '' \
|
|
|
|
Magick '-no-undefined' \
|
|
|
|
Wand '-no-undefined'
|
|
|
|
|
2004-06-24 03:44:58 -04:00
|
|
|
CATEGORIES= graphics
|
1998-05-23 15:00:10 -04:00
|
|
|
|
2005-03-30 23:23:42 -05:00
|
|
|
HOMEPAGE= http://www.imagemagick.org
|
|
|
|
|
|
|
|
MASTER_SITES= ${HOMEPAGE}/download/ \
|
|
|
|
${MASTER_SITE_SOURCEFORGE:=imagemagick/}
|
1999-05-05 22:10:12 -04:00
|
|
|
|
2004-07-10 19:52:02 -04:00
|
|
|
LIB_DEPENDS+= bz2.10::archivers/bzip2 \
|
2000-06-10 02:11:25 -04:00
|
|
|
jbig.1.2::graphics/jbigkit \
|
2005-06-04 10:39:21 -04:00
|
|
|
png.4::graphics/png \
|
|
|
|
tiff.36::graphics/tiff \
|
|
|
|
xml2.9::textproc/libxml \
|
|
|
|
lcms.1::graphics/lcms \
|
|
|
|
jasper.1::graphics/jasper \
|
2006-01-05 15:11:15 -05:00
|
|
|
ltdl.4::devel/libtool,-ltdl
|
2005-06-04 10:39:21 -04:00
|
|
|
|
|
|
|
RUN_DEPENDS= ::graphics/mpeg-lib
|
2005-01-09 06:06:38 -05:00
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
2000-03-05 13:30:21 -05:00
|
|
|
|
2005-06-04 10:39:21 -04:00
|
|
|
REGRESS_DEPENDS= ::graphics/p5-PerlMagick
|
|
|
|
|
|
|
|
MAINTAINER= Bernd Ahlers <b.ahlers@ba-net.org>
|
2000-06-10 02:11:25 -04:00
|
|
|
|
2005-03-30 23:23:42 -05:00
|
|
|
# http://www.imagemagick.org/www/Copyright.html
|
2003-09-08 20:47:57 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2000-06-20 19:32:46 -04:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-11-29 20:06:33 -05:00
|
|
|
WANTLIB= c iconv jpeg m z
|
2000-03-13 20:40:04 -05:00
|
|
|
|
2005-12-28 09:56:54 -05:00
|
|
|
USE_LIBTOOL= Yes
|
2000-08-08 15:01:37 -04:00
|
|
|
SEPARATE_BUILD= concurrent
|
2004-07-01 21:53:09 -04:00
|
|
|
CONFIGURE_STYLE= autoconf
|
|
|
|
AUTOCONF_VERSION= 2.59
|
1999-04-05 20:09:52 -04:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
2005-03-30 23:23:42 -05:00
|
|
|
CONFIGURE_ARGS+= --with-quantum-depth=16 \
|
2004-06-24 03:44:58 -04:00
|
|
|
--without-dot \
|
|
|
|
--without-dps \
|
|
|
|
--without-fpx \
|
|
|
|
--without-modules \
|
2004-07-09 00:45:36 -04:00
|
|
|
--without-threads \
|
2004-06-24 03:44:58 -04:00
|
|
|
--without-perl \
|
2005-03-30 23:23:42 -05:00
|
|
|
--without-wmf \
|
|
|
|
--disable-ltdl-install
|
|
|
|
|
2004-07-13 13:24:29 -04:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include/libpng -I${LOCALBASE}/include/libxml2 -I${LOCALBASE}/include" \
|
2005-06-04 10:39:21 -04:00
|
|
|
LDFLAGS="-L${WRKBUILD}/magick/.libs -L${WRKBUILD}/wand/.libs -L${LOCALBASE}/lib" \
|
2004-07-13 13:24:29 -04:00
|
|
|
ac_cv_path_LaunchDelegate=no
|
1999-04-05 20:09:52 -04:00
|
|
|
|
2004-07-10 19:52:02 -04:00
|
|
|
FLAVORS= no_x11
|
|
|
|
FLAVOR?=
|
2004-06-24 03:44:58 -04:00
|
|
|
|
2004-07-10 19:52:02 -04:00
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
|
|
|
BUILD_DEPENDS+= :ghostscript-*:print/ghostscript/gnu,no_x11
|
|
|
|
RUN_DEPENDS+= :ghostscript-*:print/ghostscript/gnu,no_x11
|
|
|
|
CONFIGURE_ARGS+= --without-x --without-ttf
|
2004-07-13 13:24:29 -04:00
|
|
|
CONFIGURE_ENV+= ac_cv_path_FIGDecodeDelegate=no
|
2004-07-10 19:52:02 -04:00
|
|
|
.else
|
|
|
|
BUILD_DEPENDS+= :ghostscript-*:print/ghostscript/gnu
|
|
|
|
RUN_DEPENDS+= :ghostscript-*:print/ghostscript/gnu
|
2004-06-24 03:44:58 -04:00
|
|
|
USE_X11= Yes
|
2004-07-13 13:24:29 -04:00
|
|
|
RUN_DEPENDS+= :transfig-*:print/transfig
|
|
|
|
BUILD_DEPENDS+= :transfig-*:print/transfig
|
2005-03-30 23:23:42 -05:00
|
|
|
WANTLIB+= ICE SM X11 Xext Xt freetype
|
2004-07-10 19:52:02 -04:00
|
|
|
.endif
|
|
|
|
|
2004-07-13 13:24:29 -04:00
|
|
|
RUN_DEPENDS+= :netpbm-*:graphics/netpbm
|
|
|
|
BUILD_DEPENDS+= :netpbm-*:graphics/netpbm
|
2004-06-24 03:44:58 -04:00
|
|
|
|
2005-03-30 23:23:42 -05:00
|
|
|
WRKDIST= ${WRKDIR}/${DISTNAME:S/-${DASHVER}$//}
|
|
|
|
|
2004-07-18 03:16:53 -04:00
|
|
|
post-install:
|
2005-06-04 10:39:21 -04:00
|
|
|
@perl -pi -e s#'-L${WRKBUILD}/(magick|wand)/.libs '#''#g \
|
2004-07-18 03:16:53 -04:00
|
|
|
${PREFIX}/bin/Magick-config
|
|
|
|
.for f in Magick++ Magick Wand
|
2005-06-04 10:39:21 -04:00
|
|
|
@perl -pi -e s#'-L${WRKBUILD}/(magick|wand)/.libs '#''#g \
|
2004-07-18 03:16:53 -04:00
|
|
|
${PREFIX}/lib/lib${f}.la
|
|
|
|
.endfor
|
|
|
|
|
1998-05-23 15:00:10 -04:00
|
|
|
.include <bsd.port.mk>
|