aboutsummaryrefslogtreecommitdiff
path: root/graphics/autotrace/Makefile
blob: 2cf10079b1505fbd28a17fd1a6aef5c0128f3a92 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# New ports collection makefile for:	autotrace
# Date created:		12 April 2001
# Whom:			KANOU Hiroki <kanou@mil.allnet.ne.jp>
#
# $FreeBSD$
#

PORTNAME=	autotrace
PORTVERSION=	0.31.1
PORTREVISION=	22
CATEGORIES=	graphics
MASTER_SITES=	SF/${PORTNAME}/AutoTrace/${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Convert bitmap to vector graphics

LIB_DEPENDS=	png15:${PORTSDIR}/graphics/png \
    		MagickWand.5:${PORTSDIR}/graphics/ImageMagick

USE_AUTOTOOLS=	libtool
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
CPPFLAGS+=	-I${LOCALBASE}/include/libpng15

MAN1=		autotrace.1

OPTIONS_DEFINE=	MING PSTOEDIT
OPTIONS_DEFAULT=	PSTOEDIT
MING_DESC=	Enable swf interface
PSTOEDIT_DESC=	Convert postscript to other formats

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MMING}
LIB_DEPENDS+=	ming.5:${PORTSDIR}/graphics/ming
CPPFLAGS+=	-I${LOCALBASE}/include -I${LOCALBASE}/include/ming
.endif

.if ${PORT_OPTIONS:MPSTOEDIT}
LIB_DEPENDS+=	pstoedit.0:${PORTSDIR}/graphics/pstoedit
.endif

post-patch:
	@${REINPLACE_CMD} -e \
		's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|' \
		${WRKSRC}/Makefile.in

.if ${PORT_OPTIONS:MPSTOEDIT}
	@${REINPLACE_CMD} -e '/$$PSTOEDIT_CONFIG/  s|--version|--modversion| ; \
		s|$$PSTOEDIT_CONFIG $$pstoedit_args|pkg-config pstoedit| ; \
		/^PSTOEDIT_CONFIG=/ s|=.*$$|=pkg-config| ' ${WRKSRC}/configure
.endif

.include <bsd.port.mk>