111 lines
2.9 KiB
Makefile
Raw Normal View History

2011-11-01 20:30:49 +00:00
# $OpenBSD: Makefile,v 1.116 2011/11/01 20:30:49 jasper Exp $
SHARED_ONLY= Yes
COMMENT= image processing tools
1998-05-23 19:00:10 +00:00
VER= 6.6.6
DASHVER= 10
DISTNAME= ImageMagick-${VER}-${DASHVER}
2010-11-09 09:14:31 +00:00
PKGNAME= ImageMagick-${VER}.${DASHVER}
2011-11-01 20:30:49 +00:00
REVISION= 3
SHARED_LIBS += Magick++ 14.0 # .1.0
SHARED_LIBS += MagickCore 2.0 # .1.0
SHARED_LIBS += MagickWand 2.0 # .1.0
1998-05-23 19:00:10 +00:00
CATEGORIES= graphics
HOMEPAGE= http://www.imagemagick.org
1999-05-06 02:10:12 +00:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=imagemagick/} \
${HOMEPAGE}/download/ \
ftp://ftp.fu-berlin.de/unix/X11/graphics/ImageMagick/ \
ftp://ftp.fu-berlin.de/unix/X11/graphics/ImageMagick/legacy/ \
http://gd.tuwien.ac.at/graphics/ImageMagick/ \
http://gd.tuwien.ac.at/graphics/ImageMagick/legacy/
# http://www.imagemagick.org/script/license.php
2003-09-09 00:47:57 +00:00
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB = c bz2>=10 djvulibre fftw3 jasper>=1 jbig>=1.2 jpeg \
2011-11-01 20:30:49 +00:00
lcms2 lzma ltdl m perl png>=4 pthread stdc++ \
tiff>=36 z
2000-03-14 01:40:04 +00:00
2010-11-17 08:05:12 +00:00
LIB_DEPENDS = archivers/bzip2 \
archivers/xz \
devel/libtool,-ltdl \
2010-11-17 08:05:12 +00:00
graphics/jbigkit \
graphics/png \
graphics/tiff \
2011-11-01 20:30:49 +00:00
graphics/lcms2 \
graphics/jasper \
math/fftw3
2010-11-17 08:05:12 +00:00
RUN_DEPENDS= graphics/netpbm
BUILD_DEPENDS= graphics/netpbm
ALL_TARGET= all perl-build
2010-09-25 20:51:41 +00:00
# using libltdl stuff
2010-06-23 16:09:10 +00:00
USE_LIBTOOL= gnu
2010-11-09 09:14:31 +00:00
USE_GROFF = Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ARGS+= --with-quantum-depth=16 \
--without-dps \
--without-fpx \
--without-gvc \
--without-lqr \
--without-modules \
2007-05-20 19:44:47 +00:00
--without-openexr \
--with-perl=/usr/bin/perl \
--without-rsvg \
--with-ltdl-include=${LOCALBASE}/include \
--with-ltdl-lib=${LOCALBASE}/lib \
--disable-ltdl-install
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include/libpng -I${LOCALBASE}/include/libxml2 -I${LOCALBASE}/include" \
LDFLAGS="-L${WRKBUILD}/magick/.libs -L${WRKBUILD}/wand/.libs -L${LOCALBASE}/lib" \
PTHREAD_CFLAGS="-pthread" PTHREAD_LIBS="-pthread" \
ac_cv_path_LaunchDelegate=no
FLAVORS= no_x11
FLAVOR?=
2004-06-24 07:44:58 +00:00
.if ${FLAVOR:L:Mno_x11}
LIB_DEPENDS += graphics/djvulibre,no_x11
2010-11-17 08:05:12 +00:00
RUN_DEPENDS += print/ghostscript/gnu,no_x11
BUILD_DEPENDS += print/ghostscript/gnu,no_x11
2010-11-09 09:14:31 +00:00
CONFIGURE_ENV += ac_cv_path_FIGDecodeDelegate=no
CONFIGURE_ARGS += --without-x \
--without-freetype \
--without-wmf
.else
MODULES += converters/libiconv
2011-11-01 20:30:49 +00:00
WANTLIB += ICE SM X11 Xext Xt expat fontconfig \
freetype xcb wmf wmflite>=7 \
2010-11-17 08:05:12 +00:00
xml2>=9
LIB_DEPENDS += graphics/libwmf \
textproc/libxml \
graphics/djvulibre
2010-11-17 08:05:12 +00:00
RUN_DEPENDS += print/ghostscript/gnu
RUN_DEPENDS += print/transfig
BUILD_DEPENDS += print/ghostscript/gnu
BUILD_DEPENDS += print/transfig
2010-11-09 09:14:31 +00:00
CONFIGURE_ARGS += --with-wmf
.endif
post-install:
@perl -pi -e s,'-L${WRKBUILD}/(magick|wand)/.libs','',g \
${PREFIX}/bin/Magick-config
.for f in Magick++ MagickCore MagickWand
@perl -pi -e s,'-L${WRKBUILD}/(magick|wand)/.libs','',g \
${PREFIX}/lib/lib${f}.la
.endfor
1998-05-23 19:00:10 +00:00
.include <bsd.port.mk>