1995-02-27 22:43:12 +01:00
|
|
|
# New ports collection makefile for: ImageMagick
|
|
|
|
# Date created: 15 November 1994
|
|
|
|
# Whom: torstenb
|
|
|
|
#
|
1999-08-25 08:16:32 +02:00
|
|
|
# $FreeBSD$
|
1995-02-27 22:43:12 +01:00
|
|
|
#
|
|
|
|
|
2000-04-13 08:28:28 +02:00
|
|
|
PORTNAME= ImageMagick
|
2001-03-06 18:19:53 +01:00
|
|
|
PORTVERSION= 5.2.9
|
1998-08-21 14:00:41 +02:00
|
|
|
CATEGORIES= graphics perl5
|
2001-03-06 18:19:53 +01:00
|
|
|
MASTER_SITES= ftp://ftp.yggdrasil.com/mirrors/site/ftp.simplesystems.org/pub/ImageMagick/ \
|
2001-01-11 06:19:46 +01:00
|
|
|
ftp://ftp.cdrom.com/pub/ImageMagick/ \
|
1997-11-29 02:35:52 +01:00
|
|
|
ftp://ftp.u-aizu.ac.jp/pub/graphics/image/ImageMagick/ \
|
|
|
|
ftp://ftp.fifi.org/pub/ImageMagick/ \
|
1996-12-03 10:07:00 +01:00
|
|
|
ftp://gd.tuwien.ac.at/pub/graphics/ImageMagick/ \
|
2001-03-06 18:19:53 +01:00
|
|
|
ftp://ftp.simplesystems.org/pub/ImageMagick/ \
|
|
|
|
${MASTER_SITE_RINGSERVER}
|
|
|
|
MASTER_SITE_SUBDIR= graphics/ImageMagick
|
1995-04-09 09:09:55 +02:00
|
|
|
|
2001-03-06 18:19:53 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
1996-11-06 08:53:24 +01:00
|
|
|
|
2001-03-08 02:06:35 +01:00
|
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
2000-07-19 15:08:38 +02:00
|
|
|
LIB_DEPENDS= bz2.1:${PORTSDIR}/archivers/bzip2 \
|
2001-03-06 18:19:53 +01:00
|
|
|
ltdl.1:${PORTSDIR}/devel/libtool \
|
2000-03-05 16:38:27 +01:00
|
|
|
df.1:${PORTSDIR}/graphics/hdf \
|
1998-09-22 22:04:41 +02:00
|
|
|
jbig.1:${PORTSDIR}/graphics/jbigkit \
|
2000-07-19 15:08:38 +02:00
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
2001-03-06 18:19:53 +01:00
|
|
|
lcms.1:${PORTSDIR}/graphics/lcms \
|
2000-07-19 16:18:38 +02:00
|
|
|
png.4:${PORTSDIR}/graphics/png \
|
2001-01-11 06:19:46 +01:00
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff \
|
2001-03-06 18:19:53 +01:00
|
|
|
freetype.6:${PORTSDIR}/print/freetype2 \
|
|
|
|
xml2.5:${PORTSDIR}/textproc/libxml2
|
2001-03-08 02:06:35 +01:00
|
|
|
BUILD_DEPENDS= picttoppm:${PORTSDIR}/graphics/netpbm
|
|
|
|
|
|
|
|
.ifndef NO_X
|
|
|
|
BUILD_DEPENDS+= mpeg2decode:${PORTSDIR}/graphics/mpeg2codec \
|
|
|
|
gs:${PORTSDIR}/print/ghostscript6 \
|
2000-07-19 15:08:38 +02:00
|
|
|
fig2dev:${PORTSDIR}/print/transfig
|
2001-03-08 02:06:35 +01:00
|
|
|
LIB_DEPENDS+= wmf.1:${PORTSDIR}/graphics/libwmf
|
|
|
|
USE_XLIB= yes
|
|
|
|
.else
|
|
|
|
BUILD_DEPENDS+= gs:${PORTSDIR}/print/ghostscript6-nox11
|
|
|
|
PKGNAMESUFFIX= -nox11
|
|
|
|
.endif
|
1998-08-21 14:00:41 +02:00
|
|
|
|
2000-07-19 15:08:38 +02:00
|
|
|
USE_PERL5= yes
|
|
|
|
USE_LIBTOOL= yes
|
2001-03-06 18:19:53 +01:00
|
|
|
LIBTOOLFLAGS= # empty
|
2000-06-15 19:12:51 +02:00
|
|
|
USE_AUTOCONF= yes
|
2000-07-19 15:08:38 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib"
|
2001-03-06 18:19:53 +01:00
|
|
|
CONFIGURE_ARGS= --enable-shared --with-modules \
|
|
|
|
--with-perl=${PERL5}
|
2001-03-08 02:06:35 +01:00
|
|
|
|
|
|
|
.ifdef NO_X
|
|
|
|
CONFIGURE_ARGS+=--without-x
|
|
|
|
PLIST_SUB+= X11='@comment '
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= X11=''
|
|
|
|
.endif
|
|
|
|
|
2001-01-25 12:05:14 +01:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
2001-01-24 00:00:25 +01:00
|
|
|
.if defined(PERL_THREADED) && ${PERL_THREADED} == "true"
|
2001-01-25 12:05:14 +01:00
|
|
|
CONFIGURE_ARGS+= --with-threads
|
2001-03-06 18:19:53 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-threads
|
2001-01-24 00:00:25 +01:00
|
|
|
.endif
|
2000-04-24 19:58:37 +02:00
|
|
|
|
2001-01-11 06:19:46 +01:00
|
|
|
.if defined(WITH_16BIT_PIXEL)
|
2001-01-25 12:05:14 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-16bit-pixel
|
2001-03-06 18:19:53 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-16bit-pixel
|
2001-01-11 06:19:46 +01:00
|
|
|
.endif
|
|
|
|
|
2000-03-05 14:47:22 +01:00
|
|
|
.if defined(HAVE_UNISYS_LICENSE)
|
2001-01-25 12:05:14 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-lzw
|
2000-03-05 14:47:22 +01:00
|
|
|
.endif
|
2000-04-24 19:58:37 +02:00
|
|
|
|
2001-03-06 18:19:53 +01:00
|
|
|
MAN1= ImageMagick.1 Magick++-config.1 Magick-config.1 \
|
2001-03-08 02:06:35 +01:00
|
|
|
combine.1 convert.1 identify.1 mogrify.1 montage.1
|
2000-07-19 15:08:38 +02:00
|
|
|
MAN3= Image::Magick.3
|
|
|
|
MAN4= miff.4
|
|
|
|
MAN5= quantize.5
|
2000-03-10 00:36:52 +01:00
|
|
|
|
2001-03-08 02:06:35 +01:00
|
|
|
.ifndef NO_X
|
|
|
|
MAN1+= animate.1 display.1 import.1
|
|
|
|
.endif
|
|
|
|
|
2000-07-19 15:08:38 +02:00
|
|
|
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
|
2000-03-10 00:36:52 +01:00
|
|
|
|
2001-03-06 18:19:53 +01:00
|
|
|
pre-patch:
|
|
|
|
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
|
|
|
|
's|\$$\(top_builddir\)/ltdl/libltdlc.la|\$$\(LIBLTDL\)|g'
|
|
|
|
|
1995-02-27 22:43:12 +01:00
|
|
|
.include <bsd.port.mk>
|