freebsd-ports/graphics/autotrace/Makefile
Koop Mast bb89f80c35 Update ImageMagick to 6.9.0.4.
- Normalize the ImageMagick library name so it stays the same regardless of
  what the 16-bit and HDRI option are set to [1]. Teach cmake to look for
  the new name. Bump ports that link to the libraries due to this.
- As a result do away with the "HALFSUPPORTED" option block, and list
  16-bit and HDRI with the other options.
- ImageMagick ships a basic SVG plugin when not using librsvg2 for SVG
  support. This basic SVG plugin needs libxml2 to work [2]. Make libxml2
  a mandatory dependency (instead of only when the SVG option was selected).
- Don't touch .keep files in the modules directory, there files there so
  it useless.

PR:		194949 [1]
PR:		195227 [2]
Requested by:	many [1]
Submitted by:	software-freebsd@interfasys.ch [2]
2015-01-18 21:12:42 +00:00

47 lines
1.3 KiB
Makefile

# Created by: KANOU Hiroki <kanou@mil.allnet.ne.jp>
# $FreeBSD$
PORTNAME= autotrace
PORTVERSION= 0.31.1
PORTREVISION= 28
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/AutoTrace/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Convert bitmap to vector graphics
LICENSE= GPLv2 LGPL21
LICENSE_COMB= multi
LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png
USES= pathfix pkgconfig libtool
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CPPFLAGS+= $$(libpng-config --I_opts)
LDFLAGS+= $$(libpng-config --L_opts)
INSTALL_TARGET= install-strip
OPTIONS_DEFINE= IMAGEMAGICK MING PSTOEDIT
OPTIONS_DEFAULT=IMAGEMAGICK PSTOEDIT
MING_DESC= Enable swf interface
PSTOEDIT_DESC= Convert postscript to other formats
IMAGEMAGICK_LIB_DEPENDS= libMagickWand-6.so:${PORTSDIR}/graphics/ImageMagick
IMAGEMAGICK_CONFIGURE_OFF= --without-magick
MING_LIB_DEPENDS= libming.so:${PORTSDIR}/graphics/ming
MING_CPPFLAGS= -I${LOCALBASE}/include -I${LOCALBASE}/include/ming
MING_CONFIGURE_OFF= ac_cv_header_ming_h=no
PSTOEDIT_LIB_DEPENDS= libpstoedit.so:${PORTSDIR}/graphics/pstoedit
PSTOEDIT_CONFIGURE_OFF= --without-pstoedit
post-patch:
@${REINPLACE_CMD} -e \
's|Magick-config|MagickWand-config|g ; \
/$$PSTOEDIT_CONFIG/s|--version|--modversion| ; \
s|$$PSTOEDIT_CONFIG $$pstoedit_args|pkg-config pstoedit| ; \
/^PSTOEDIT_CONFIG=/s|=.*$$|=pkg-config|' ${WRKSRC}/configure
.include <bsd.port.mk>