openbsd-ports/graphics/GraphicsMagick/Makefile

82 lines
2.2 KiB
Makefile
Raw Normal View History

2010-11-17 03:05:12 -05:00
# $OpenBSD: Makefile,v 1.17 2010/11/17 08:05:12 espie Exp $
COMMENT= image processing tools with stable ABI
2010-03-28 13:17:15 -04:00
DISTNAME= GraphicsMagick-1.3.8
CATEGORIES= graphics devel
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
HOMEPAGE= http://www.graphicsmagick.org/
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=graphicsmagick/}
# http://www.graphicsmagick.org/www/Copyright.html
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
2010-11-17 03:05:12 -05:00
LIB_DEPENDS = archivers/bzip2 \
graphics/jbigkit \
graphics/png \
graphics/tiff \
graphics/lcms \
graphics/jasper \
textproc/libxml
USE_LIBTOOL= Yes
2010-11-09 04:14:31 -05:00
USE_GROFF = Yes
CONFIGURE_STYLE= gnu
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 \
--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" \
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 \
--without-ttf \
--without-wmf
.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
.endif
# 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}
post-install:
2009-09-01 10:22:27 -04:00
@cd ${WRKBUILD}/PerlMagick && ${MAKE} ${MAKE_FLAGS} ${FAKE_TARGET}
.include <bsd.port.mk>