2008-02-27 03:04:51 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.7 2008/02/27 08:04:51 bernd Exp $
|
2006-10-29 05:53:40 -05:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.graphicsmagick.org/
|
|
|
|
CATEGORIES= devel graphics
|
2007-09-15 16:09:40 -04:00
|
|
|
COMMENT= image processing tools with stable ABI
|
2008-02-26 13:45:28 -05:00
|
|
|
DISTNAME= GraphicsMagick-1.1.11
|
2008-02-27 03:04:51 -05:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
2006-10-29 05:53:40 -05:00
|
|
|
|
2008-02-27 03:04:51 -05:00
|
|
|
SHARED_LIBS += GraphicsMagick 0.2 # .1.11
|
2007-09-19 01:58:14 -04:00
|
|
|
SHARED_LIBS += GraphicsMagickWand 0.1 # .0.4
|
|
|
|
SHARED_LIBS += GraphicsMagick++ 0.1 # .1.3
|
2006-10-29 05:53:40 -05:00
|
|
|
|
2006-10-30 04:25:10 -05:00
|
|
|
MASTER_SITES= ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/ \
|
|
|
|
${MASTER_SITE_SOURCEFORGE:=graphicsmagick/}
|
2006-10-29 05:53:40 -05:00
|
|
|
|
|
|
|
# very detailed licence info on:
|
|
|
|
# http://www.graphicsmagick.org/www/Copyright.html
|
|
|
|
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
|
|
|
CONFIGURE_ARGS+= --with-quantum-depth=16 \
|
|
|
|
--without-dot \
|
|
|
|
--without-dps \
|
|
|
|
--without-fpx \
|
|
|
|
--without-modules \
|
|
|
|
--without-threads \
|
|
|
|
--without-perl \
|
|
|
|
--without-wmf \
|
|
|
|
--without-gslib \
|
|
|
|
--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" \
|
|
|
|
ac_cv_path_LaunchDelegate=no
|
|
|
|
|
|
|
|
FLAVORS= no_x11
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
CONFIGURE_STYLE= autoconf
|
2007-09-19 01:58:14 -04:00
|
|
|
AUTOCONF_VERSION= 2.61
|
2006-10-29 05:53:40 -05:00
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
|
|
|
|
WANTLIB+= c iconv jpeg m z
|
|
|
|
LIB_DEPENDS= bz2.>=10::archivers/bzip2 \
|
|
|
|
jbig.>=1.2::graphics/jbigkit \
|
|
|
|
png.>=4::graphics/png \
|
|
|
|
tiff.>=36::graphics/tiff \
|
|
|
|
xml2.>=9::textproc/libxml \
|
|
|
|
lcms.>=1::graphics/lcms \
|
|
|
|
jasper.>=1::graphics/jasper
|
|
|
|
|
|
|
|
|
|
|
|
.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
|
|
|
|
CONFIGURE_ENV+= ac_cv_path_FIGDecodeDelegate=no
|
|
|
|
.else
|
|
|
|
BUILD_DEPENDS+= :ghostscript-*:print/ghostscript/gnu
|
|
|
|
RUN_DEPENDS+= :ghostscript-*:print/ghostscript/gnu
|
|
|
|
USE_X11= Yes
|
|
|
|
RUN_DEPENDS+= :transfig-*:print/transfig
|
|
|
|
BUILD_DEPENDS+= :transfig-*:print/transfig
|
2007-09-19 01:58:14 -04:00
|
|
|
WANTLIB+= ICE SM X11 Xau Xdmcp Xext freetype
|
2006-10-29 05:53:40 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|