2010-11-17 03:05:12 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.111 2010/11/17 08:05:12 espie Exp $
|
2001-04-06 13:33:28 -04:00
|
|
|
|
2007-09-15 16:09:40 -04:00
|
|
|
COMMENT= image processing tools
|
1998-05-23 15:00:10 -04:00
|
|
|
|
2008-11-20 08:29:56 -05:00
|
|
|
VER= 6.4.5
|
2008-11-29 00:00:20 -05:00
|
|
|
DASHVER= 6
|
2006-01-27 12:40:05 -05:00
|
|
|
DISTNAME= ImageMagick-${VER}-${DASHVER}
|
2010-11-09 04:14:31 -05:00
|
|
|
PKGNAME= ImageMagick-${VER}.${DASHVER}
|
|
|
|
REVISION = 0
|
2008-11-20 08:29:56 -05:00
|
|
|
|
|
|
|
SHARED_LIBS += Magick++ 13.0 # .1.0
|
|
|
|
SHARED_LIBS += MagickCore 1.0 # .1.0
|
|
|
|
SHARED_LIBS += MagickWand 1.0 # .1.0
|
1998-05-23 15:00:10 -04:00
|
|
|
|
2006-01-27 12:40:05 -05:00
|
|
|
CATEGORIES= graphics
|
2005-03-30 23:23:42 -05:00
|
|
|
|
2006-01-27 12:40:05 -05:00
|
|
|
HOMEPAGE= http://www.imagemagick.org
|
1999-05-05 22:10:12 -04:00
|
|
|
|
2009-05-17 05:04:38 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=imagemagick/} \
|
|
|
|
${HOMEPAGE}/download/ \
|
2007-10-22 10:23:08 -04:00
|
|
|
ftp://ftp.fu-berlin.de/unix/X11/graphics/ImageMagick/ \
|
2009-05-17 05:04:38 -04:00
|
|
|
ftp://ftp.fu-berlin.de/unix/X11/graphics/ImageMagick/legacy/ \
|
2007-10-22 10:23:08 -04:00
|
|
|
http://gd.tuwien.ac.at/graphics/ImageMagick/ \
|
2009-05-17 05:04:38 -04:00
|
|
|
http://gd.tuwien.ac.at/graphics/ImageMagick/legacy/
|
2000-06-10 02:11:25 -04:00
|
|
|
|
2006-10-28 12:20:52 -04:00
|
|
|
# http://www.imagemagick.org/script/license.php
|
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
|
2008-11-20 08:29:56 -05:00
|
|
|
|
2010-11-17 03:05:12 -05:00
|
|
|
WANTLIB = c jpeg m z bz2>=10 jbig>=1.2 png>=4 tiff>=36 \
|
|
|
|
lcms>=1 jasper>=1
|
2000-03-13 20:40:04 -05:00
|
|
|
|
2010-11-17 03:05:12 -05:00
|
|
|
LIB_DEPENDS = archivers/bzip2 \
|
|
|
|
graphics/jbigkit \
|
|
|
|
graphics/png \
|
|
|
|
graphics/tiff \
|
|
|
|
graphics/lcms \
|
|
|
|
graphics/jasper
|
2006-01-27 12:40:05 -05:00
|
|
|
|
2010-11-17 03:05:12 -05:00
|
|
|
RUN_DEPENDS= graphics/netpbm
|
|
|
|
BUILD_DEPENDS= graphics/netpbm
|
2006-01-27 12:40:05 -05:00
|
|
|
|
2010-09-25 16:51:41 -04:00
|
|
|
# using libltdl stuff
|
2010-06-23 12:09:10 -04:00
|
|
|
USE_LIBTOOL= gnu
|
2010-11-09 04:14:31 -05:00
|
|
|
USE_GROFF = Yes
|
2008-11-20 08:29:56 -05:00
|
|
|
CONFIGURE_STYLE= gnu
|
2006-01-27 12:40:05 -05:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
|
|
|
CONFIGURE_ARGS+= --with-quantum-depth=16 \
|
|
|
|
--without-dps \
|
|
|
|
--without-fpx \
|
2007-04-09 16:47:27 -04:00
|
|
|
--without-gvc \
|
2008-11-29 00:00:20 -05:00
|
|
|
--without-lqr \
|
2006-01-27 12:40:05 -05:00
|
|
|
--without-modules \
|
2007-05-20 15:44:47 -04:00
|
|
|
--without-openexr \
|
2006-01-27 12:40:05 -05:00
|
|
|
--without-threads \
|
2008-11-20 08:29:56 -05:00
|
|
|
--with-perl=/usr/bin/perl \
|
2006-10-30 04:45:41 -05:00
|
|
|
--without-rsvg \
|
2008-11-20 08:29:56 -05:00
|
|
|
--with-ltdl-include=${LOCALBASE}/include \
|
|
|
|
--with-ltdl-lib=${LOCALBASE}/lib \
|
2006-01-27 12:40:05 -05:00
|
|
|
--disable-ltdl-install
|
|
|
|
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include/libpng -I${LOCALBASE}/include/libxml2 -I${LOCALBASE}/include" \
|
2008-11-29 00:00:20 -05:00
|
|
|
LDFLAGS="-L${WRKBUILD}/magick/.libs -L${WRKBUILD}/wand/.libs -L${LOCALBASE}/lib" \
|
2006-01-27 12:40:05 -05:00
|
|
|
ac_cv_path_LaunchDelegate=no
|
|
|
|
|
|
|
|
FLAVORS= no_x11
|
2004-07-10 19:52:02 -04:00
|
|
|
FLAVOR?=
|
2004-06-24 03:44:58 -04:00
|
|
|
|
2004-07-10 19:52:02 -04:00
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
2010-11-17 03:05:12 -05:00
|
|
|
RUN_DEPENDS += print/ghostscript/gnu,no_x11
|
|
|
|
BUILD_DEPENDS += print/ghostscript/gnu,no_x11
|
2010-11-09 04:14:31 -05:00
|
|
|
CONFIGURE_ENV += ac_cv_path_FIGDecodeDelegate=no
|
|
|
|
CONFIGURE_ARGS += --without-x \
|
2008-11-20 08:29:56 -05:00
|
|
|
--without-freetype \
|
|
|
|
--without-wmf
|
2004-07-10 19:52:02 -04:00
|
|
|
.else
|
2010-11-09 04:14:31 -05:00
|
|
|
WANTLIB += ICE SM X11 Xau Xdmcp Xext Xt expat fontconfig \
|
2010-11-17 03:05:12 -05:00
|
|
|
freetype iconv pthread-stubs xcb wmflite>=7 \
|
|
|
|
xml2>=9
|
|
|
|
LIB_DEPENDS += graphics/libwmf \
|
|
|
|
textproc/libxml
|
|
|
|
RUN_DEPENDS += print/ghostscript/gnu
|
|
|
|
RUN_DEPENDS += print/transfig
|
|
|
|
BUILD_DEPENDS += print/ghostscript/gnu
|
|
|
|
BUILD_DEPENDS += print/transfig
|
2010-11-09 04:14:31 -05:00
|
|
|
CONFIGURE_ARGS += --with-wmf
|
2004-07-10 19:52:02 -04:00
|
|
|
.endif
|
|
|
|
|
2006-01-27 12:40:05 -05:00
|
|
|
WRKDIST= ${WRKDIR}/${DISTNAME:S/-${DASHVER}$//}
|
2005-03-30 23:23:42 -05:00
|
|
|
|
2004-07-18 03:16:53 -04:00
|
|
|
post-install:
|
2008-11-20 08:29:56 -05:00
|
|
|
@perl -pi -e s,'-L${WRKBUILD}/(magick|wand)/.libs','',g \
|
2004-07-18 03:16:53 -04:00
|
|
|
${PREFIX}/bin/Magick-config
|
2008-11-20 08:29:56 -05:00
|
|
|
.for f in Magick++ MagickCore MagickWand
|
|
|
|
@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>
|