2010-11-17 03:05:12 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.17 2010/11/17 08:05:12 espie Exp $
|
2006-10-29 05:53:40 -05:00
|
|
|
|
2007-09-15 16:09:40 -04:00
|
|
|
COMMENT= image processing tools with stable ABI
|
2006-10-29 05:53:40 -05:00
|
|
|
|
2010-03-28 13:17:15 -04:00
|
|
|
DISTNAME= GraphicsMagick-1.3.8
|
2008-12-07 13:13:01 -05:00
|
|
|
CATEGORIES= graphics devel
|
2006-10-29 05:53:40 -05:00
|
|
|
|
2010-03-28 13:17:15 -04:00
|
|
|
SHARED_LIBS += GraphicsMagick 3.0 # .6.0
|
|
|
|
SHARED_LIBS += GraphicsMagick++ 3.0 # .6.0
|
|
|
|
SHARED_LIBS += GraphicsMagickWand 3.0 # .4.1
|
2006-10-29 05:53:40 -05:00
|
|
|
|
2008-12-07 13:13:01 -05:00
|
|
|
HOMEPAGE= http://www.graphicsmagick.org/
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=graphicsmagick/}
|
2006-10-29 05:53:40 -05:00
|
|
|
|
2008-12-07 13:13:01 -05:00
|
|
|
# http://www.graphicsmagick.org/www/Copyright.html
|
2006-10-29 05:53:40 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2010-11-17 03:05:12 -05:00
|
|
|
WANTLIB += c iconv jpeg m z bz2>=10 jbig>=1.2 png>=4 \
|
|
|
|
tiff>=36 lcms>=1 jasper>=1 xml2>=9
|
2008-12-07 13:13:01 -05:00
|
|
|
|
2010-11-17 03:05:12 -05:00
|
|
|
LIB_DEPENDS = archivers/bzip2 \
|
|
|
|
graphics/jbigkit \
|
|
|
|
graphics/png \
|
|
|
|
graphics/tiff \
|
|
|
|
graphics/lcms \
|
|
|
|
graphics/jasper \
|
|
|
|
textproc/libxml
|
2008-12-07 13:13:01 -05:00
|
|
|
|
|
|
|
USE_LIBTOOL= Yes
|
2010-11-09 04:14:31 -05:00
|
|
|
USE_GROFF = Yes
|
2009-01-08 14:57:36 -05:00
|
|
|
CONFIGURE_STYLE= gnu
|
2006-10-29 05:53:40 -05:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
|
|
|
CONFIGURE_ARGS+= --with-quantum-depth=16 \
|
|
|
|
--without-dps \
|
|
|
|
--without-fpx \
|
|
|
|
--without-modules \
|
|
|
|
--without-threads \
|
|
|
|
--without-gslib \
|
2009-09-01 10:22:27 -04:00
|
|
|
--with-perl \
|
2008-12-07 13:13:01 -05:00
|
|
|
--with-ltdl-include=${LOCALBASE}/include \
|
|
|
|
--with-ltdl-lib=${LOCALBASE}/lib \
|
2006-10-29 05:53:40 -05:00
|
|
|
--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?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
2010-11-17 03:05:12 -05:00
|
|
|
BUILD_DEPENDS += print/ghostscript/gnu,no_x11
|
|
|
|
RUN_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-12-07 13:13:01 -05:00
|
|
|
--without-ttf \
|
|
|
|
--without-wmf
|
2006-10-29 05:53:40 -05:00
|
|
|
.else
|
2010-11-09 04:14:31 -05:00
|
|
|
WANTLIB += ICE SM X11 Xau Xdmcp Xext freetype pthread-stubs xcb \
|
2010-11-17 03:05:12 -05:00
|
|
|
wmflite>=7
|
|
|
|
LIB_DEPENDS += graphics/libwmf
|
|
|
|
BUILD_DEPENDS += print/ghostscript/gnu
|
|
|
|
BUILD_DEPENDS += print/transfig
|
|
|
|
RUN_DEPENDS += print/ghostscript/gnu
|
|
|
|
RUN_DEPENDS += print/transfig
|
2010-11-09 04:14:31 -05:00
|
|
|
CONFIGURE_ARGS += --with-wmf
|
2006-10-29 05:53:40 -05:00
|
|
|
.endif
|
|
|
|
|
2008-12-07 13:13:01 -05:00
|
|
|
# with FLAVOR=no_x11, some regession tests do not pass
|
|
|
|
# due to the absence of freetype
|
|
|
|
|
2009-09-01 10:22:27 -04:00
|
|
|
post-build:
|
|
|
|
@cd ${WRKBUILD}/PerlMagick && perl Makefile.PL && ${MAKE} ${MAKE_FLAGS}
|
2008-12-07 13:13:01 -05:00
|
|
|
|
2009-01-08 14:57:36 -05:00
|
|
|
post-install:
|
2009-09-01 10:22:27 -04:00
|
|
|
@cd ${WRKBUILD}/PerlMagick && ${MAKE} ${MAKE_FLAGS} ${FAKE_TARGET}
|
2009-01-08 14:57:36 -05:00
|
|
|
|
2006-10-29 05:53:40 -05:00
|
|
|
.include <bsd.port.mk>
|