aboutsummaryrefslogtreecommitdiff
path: root/graphics/autotrace/Makefile
blob: 17ff11e45c49d249e3fd95b2effae58a1727fd52 (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
# 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=	15
CATEGORIES=	graphics
MASTER_SITES=	SF

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

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

USE_AUTOTOOLS=	libtool:15
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
		CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/ming"

MAN1=		autotrace.1

OPTIONS=	MING "Enable swf interface" on \
		PSTOEDIT "Convert postscript to other formats" on

.include <bsd.port.pre.mk>

.if !defined (WITHOUT_MING)
LIB_DEPENDS+=	ming.4:${PORTSDIR}/graphics/ming
CONFIGURE_ENV?=	CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/ming"
.endif

.if !defined (WITHOUT_PSTOEDIT)
LIB_DEPENDS+=	pstoedit.0:${PORTSDIR}/graphics/pstoedit
.endif

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

.if defined (WITH_PSTOEDIT)
	@${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.post.mk>