summaryrefslogtreecommitdiffstats
path: root/math/asymptote/Makefile
blob: 56b0934be1a79aa8c39725f42ea02b4540d55d7a (plain)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# New ports collection makefile for:	asymptote
# Date created:		2005-07-22
# Whom:			Nicola Vitale <nivit@email.it>
#
# $FreeBSD$
#

PORTNAME=	asymptote
PORTVERSION=	1.23
CATEGORIES=	math
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	nivit@FreeBSD.org
COMMENT=	A powerful script-based vector graphics language

LIB_DEPENDS=	fftw3.4:${PORTSDIR}/math/fftw3
BUILD_DEPENDS=	convert:${PORTSDIR}/graphics/ImageMagick \
		latex:${PORTSDIR}/print/teTeX \
		makeinfo:${PORTSDIR}/textproc/texi2html \
		${MKTEXLSR}:${PORTSDIR}/print/teTeX \
		texi2dvi:${PORTSDIR}/print/teTeX
RUN_DEPENDS=	ggv:${PORTSDIR}/print/ggv \
		latex:${PORTSDIR}/print/teTeX \
		${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter

# devel/boehm-gc
ONLY_FOR_ARCHS=	i386 amd64

USE_GCC=	3.3+
USE_GHOSTSCRIPT=yes
USE_GMAKE=	yes
USE_PYTHON=	yes

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-latex=${LOCALBASE}/share/texmf-local/tex/latex --enable-gc=system
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include $${CPPFLAGS}" LFLAGS="-L${LOCALBASE}/lib $${LFLAGS}" CFLAGS="-I${LOCALBASE}/include $${CFLAGS}" LDFLAGS="-L${LOCALBASE}/lib $${LDFLAGS}"
MAKE_ENV+=	${CONFIGURE_ENV}

MKTEXLSR=	${LOCALBASE}/bin/mktexlsr
PLIST_SUB=	MKTEXLSR=${MKTEXLSR}

ALL_TARGET=	asy
INSTALL_TARGET=	install-asy

.if defined(WITH_GSL)
LIB_DEPENDS+=	gsl.9:${PORTSDIR}/math/gsl
.endif

# Documentation
.if !defined(NOPORTDOCS)
MAN1=	asy.1 xasy.1x
INFO=	${PORTNAME} asy-faq

ALL_TARGET+=	doc
CONFIGURE_ARGS+=	--with-docdir=${DOCSDIR}
INSTALL_TARGET+=	install-doc
.endif

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
BROKEN=		depends on net/avahi
.endif

.if ( ${ARCH} == "amd64" )
BUILD_DEPENDS+=	boehm-gc=6.8:${PORTSDIR}/devel/boehm-gc
CONFIGURE_ARGS+=	--enable-gc=system
.else
BUILD_DEPENDS+=	${NOEXISTENT}:${PORTSDIR}/devel/boehm-gc:fetch
CONFIGURE_ARGS+=	--enable-gc=${GCVERSION}
GCVERSION=	6.8
GC_DISTNAME=	gc${GCVERSION}.tar.gz
LN_OPTS=	-sf

pre-configure:
	cd ${WRKSRC}; \
	${LN} ${LN_OPTS} ${DISTDIR}/${GC_DISTNAME} ${GC_DISTNAME};
.endif

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud