2005-03-31 04:23:42 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.79 2005/03/31 04:23:42 pvalchev Exp $
|
2001-04-06 17:33:28 +00:00
|
|
|
|
2004-07-13 18:55:43 +00:00
|
|
|
COMMENT= "image processing tools"
|
1998-05-23 19:00:10 +00:00
|
|
|
|
2005-03-31 04:23:42 +00:00
|
|
|
VER= 6.2.0
|
|
|
|
DASHVER= 8
|
2004-06-24 07:44:58 +00:00
|
|
|
DISTNAME= ImageMagick-${VER}-${DASHVER}
|
|
|
|
CATEGORIES= graphics
|
1998-05-23 19:00:10 +00:00
|
|
|
|
2005-03-31 04:23:42 +00:00
|
|
|
HOMEPAGE= http://www.imagemagick.org
|
|
|
|
|
|
|
|
MASTER_SITES= ${HOMEPAGE}/download/ \
|
|
|
|
${MASTER_SITE_SOURCEFORGE:=imagemagick/}
|
1999-05-06 02:10:12 +00:00
|
|
|
|
2004-07-10 23:52:02 +00:00
|
|
|
LIB_DEPENDS+= bz2.10::archivers/bzip2 \
|
2000-06-10 06:11:25 +00:00
|
|
|
jbig.1.2::graphics/jbigkit \
|
2001-05-24 02:27:06 +00:00
|
|
|
png.2::graphics/png \
|
2000-03-24 23:28:01 +00:00
|
|
|
tiff.35::graphics/tiff \
|
2004-06-24 07:44:58 +00:00
|
|
|
xml2.6::textproc/libxml \
|
|
|
|
lcms::graphics/lcms \
|
2005-03-31 04:23:42 +00:00
|
|
|
jasper::graphics/jasper \
|
|
|
|
ltdl::devel/libtool
|
|
|
|
|
2005-01-09 11:06:38 +00:00
|
|
|
RUN_DEPENDS ::graphics/mpeg-lib
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
2000-03-05 18:30:21 +00:00
|
|
|
|
2000-09-24 07:03:59 +00:00
|
|
|
MAINTAINER= Brad Smith <brad@openbsd.org>
|
2000-06-10 06:11:25 +00:00
|
|
|
|
2005-03-31 04:23:42 +00:00
|
|
|
# http://www.imagemagick.org/www/Copyright.html
|
2003-09-09 00:47:57 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2000-06-20 23:32:46 +00:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-11-30 01:06:33 +00:00
|
|
|
WANTLIB= c iconv jpeg m z
|
2000-03-14 01:40:04 +00:00
|
|
|
|
2004-06-24 07:44:58 +00:00
|
|
|
SUBST_VARS= VER
|
2004-02-06 22:44:06 +00:00
|
|
|
|
2000-08-08 19:01:37 +00:00
|
|
|
SEPARATE_BUILD= concurrent
|
2004-07-02 01:53:09 +00:00
|
|
|
CONFIGURE_STYLE= autoconf
|
|
|
|
AUTOCONF_VERSION= 2.59
|
1999-04-06 00:09:52 +00:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
2005-03-31 04:23:42 +00:00
|
|
|
CONFIGURE_ARGS+= --with-quantum-depth=16 \
|
2004-06-24 07:44:58 +00:00
|
|
|
--without-dot \
|
|
|
|
--without-dps \
|
|
|
|
--without-fpx \
|
|
|
|
--without-modules \
|
2004-07-09 04:45:36 +00:00
|
|
|
--without-threads \
|
2004-06-24 07:44:58 +00:00
|
|
|
--without-perl \
|
2005-03-31 04:23:42 +00:00
|
|
|
--without-wmf \
|
|
|
|
--disable-ltdl-install
|
|
|
|
|
2004-07-13 17:24:29 +00:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include/libpng -I${LOCALBASE}/include/libxml2 -I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${WRKBUILD}/magick/.libs -L${LOCALBASE}/lib" \
|
|
|
|
ac_cv_path_LaunchDelegate=no
|
1999-04-06 00:09:52 +00:00
|
|
|
|
2004-07-10 23:52:02 +00:00
|
|
|
FLAVORS= no_x11
|
|
|
|
FLAVOR?=
|
2004-06-24 07:44:58 +00:00
|
|
|
|
2004-07-10 23:52:02 +00: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 17:24:29 +00:00
|
|
|
CONFIGURE_ENV+= ac_cv_path_FIGDecodeDelegate=no
|
2004-07-10 23:52:02 +00:00
|
|
|
.else
|
|
|
|
BUILD_DEPENDS+= :ghostscript-*:print/ghostscript/gnu
|
|
|
|
RUN_DEPENDS+= :ghostscript-*:print/ghostscript/gnu
|
2004-06-24 07:44:58 +00:00
|
|
|
USE_X11= Yes
|
2004-07-13 17:24:29 +00:00
|
|
|
RUN_DEPENDS+= :transfig-*:print/transfig
|
|
|
|
BUILD_DEPENDS+= :transfig-*:print/transfig
|
2005-03-31 04:23:42 +00:00
|
|
|
WANTLIB+= ICE SM X11 Xext Xt freetype
|
2004-07-10 23:52:02 +00:00
|
|
|
.endif
|
|
|
|
|
2004-07-13 17:24:29 +00:00
|
|
|
RUN_DEPENDS+= :netpbm-*:graphics/netpbm
|
|
|
|
BUILD_DEPENDS+= :netpbm-*:graphics/netpbm
|
2004-06-24 07:44:58 +00:00
|
|
|
|
2005-03-31 04:23:42 +00:00
|
|
|
WRKDIST= ${WRKDIR}/${DISTNAME:S/-${DASHVER}$//}
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@if pkg dependencies check ImageMagick-\*; then \
|
|
|
|
if pkg dependencies check ${DISTNAME}; then \
|
|
|
|
:; \
|
|
|
|
else \
|
|
|
|
echo 1>&2 "+-------------------"; \
|
|
|
|
echo 1>&2 "| Error: you must remove the existing ImageMagick installation"; \
|
|
|
|
echo 1>&2 "| before compiling this version. To fully remove run"; \
|
|
|
|
echo 1>&2 "| these commands as user root"; \
|
|
|
|
echo 1>&2 "|"; \
|
|
|
|
echo 1>&2 "| pkg_delete `pkg_info -e 'ImageMagick-*'`"; \
|
|
|
|
echo 1>&2 "|"; \
|
|
|
|
echo 1>&2 "+-------------------"; \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
|
|
|
fi
|
2004-06-24 07:44:58 +00:00
|
|
|
|
2004-07-18 07:16:53 +00:00
|
|
|
post-install:
|
|
|
|
@perl -pi -e s#'-L${WRKBUILD}/magick/.libs '#''#g \
|
|
|
|
${PREFIX}/bin/Magick-config
|
|
|
|
.for f in Magick++ Magick Wand
|
|
|
|
@perl -pi -e s#'-L${WRKBUILD}/magick/.libs '#''#g \
|
|
|
|
${PREFIX}/lib/lib${f}.la
|
|
|
|
.endfor
|
|
|
|
|
1998-05-23 19:00:10 +00:00
|
|
|
.include <bsd.port.mk>
|