2005-07-29 17:27:25 +02:00
|
|
|
# New ports collection makefile for: asymptote
|
|
|
|
# Date created: 2005-07-22
|
|
|
|
# Whom: Nicola Vitale <nivit@email.it>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= asymptote
|
2008-03-03 11:45:11 +01:00
|
|
|
PORTVERSION= 1.42
|
2008-06-06 16:17:21 +02:00
|
|
|
PORTREVISION= 2
|
2005-07-29 17:27:25 +02:00
|
|
|
CATEGORIES= math
|
2008-01-30 11:47:16 +01:00
|
|
|
MASTER_SITES= SF
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
|
|
|
|
EXTRACT_SUFX= .tgz
|
2005-07-29 17:27:25 +02:00
|
|
|
|
2006-12-10 02:21:51 +01:00
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
2005-07-29 17:27:25 +02:00
|
|
|
COMMENT= A powerful script-based vector graphics language
|
|
|
|
|
2006-05-11 17:12:06 +02:00
|
|
|
LIB_DEPENDS= fftw3.4:${PORTSDIR}/math/fftw3
|
2008-01-30 11:47:16 +01:00
|
|
|
BUILD_DEPENDS= boehm-gc>=6.8:${PORTSDIR}/devel/boehm-gc \
|
|
|
|
convert:${PORTSDIR}/graphics/ImageMagick \
|
2005-07-29 17:27:25 +02:00
|
|
|
latex:${PORTSDIR}/print/teTeX \
|
|
|
|
makeinfo:${PORTSDIR}/textproc/texi2html \
|
|
|
|
${MKTEXLSR}:${PORTSDIR}/print/teTeX \
|
|
|
|
texi2dvi:${PORTSDIR}/print/teTeX
|
2008-01-30 11:47:16 +01:00
|
|
|
RUN_DEPENDS= boehm-gc>=6.8:${PORTSDIR}/devel/boehm-gc \
|
|
|
|
ggv:${PORTSDIR}/print/ggv \
|
2005-10-03 01:09:50 +02:00
|
|
|
latex:${PORTSDIR}/print/teTeX \
|
2005-07-29 17:27:25 +02:00
|
|
|
${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
|
|
|
|
|
2005-09-04 23:53:12 +02:00
|
|
|
# devel/boehm-gc
|
2007-03-21 10:35:38 +01:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
2005-07-29 17:27:25 +02:00
|
|
|
|
2005-09-04 23:53:12 +02:00
|
|
|
USE_GCC= 3.3+
|
2006-01-02 21:44:59 +01:00
|
|
|
USE_GHOSTSCRIPT=yes
|
2005-07-29 17:27:25 +02:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_PYTHON= yes
|
|
|
|
|
2008-01-30 11:47:16 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
2005-07-29 17:27:25 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2008-01-30 11:47:16 +01:00
|
|
|
CONFIGURE_ARGS= --enable-gc=system --with-latex=${LOCALBASE}/share/texmf-local/tex/latex
|
2005-07-29 17:27:25 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include $${CPPFLAGS}" LFLAGS="-L${LOCALBASE}/lib $${LFLAGS}" CFLAGS="-I${LOCALBASE}/include $${CFLAGS}" LDFLAGS="-L${LOCALBASE}/lib $${LDFLAGS}"
|
2007-04-10 17:28:24 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2005-07-29 17:27:25 +02:00
|
|
|
MAKE_ENV+= ${CONFIGURE_ENV}
|
|
|
|
|
|
|
|
MKTEXLSR= ${LOCALBASE}/bin/mktexlsr
|
|
|
|
PLIST_SUB= MKTEXLSR=${MKTEXLSR}
|
|
|
|
|
|
|
|
ALL_TARGET= asy
|
|
|
|
INSTALL_TARGET= install-asy
|
|
|
|
|
2006-06-08 20:37:46 +02:00
|
|
|
.if defined(WITH_GSL)
|
2008-04-08 15:53:22 +02:00
|
|
|
LIB_DEPENDS+= gsl.12:${PORTSDIR}/math/gsl
|
2006-06-08 20:37:46 +02:00
|
|
|
.endif
|
|
|
|
|
2005-07-29 17:27:25 +02:00
|
|
|
# Documentation
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
MAN1= asy.1 xasy.1x
|
2006-09-08 14:20:03 +02:00
|
|
|
INFO= ${PORTNAME} asy-faq
|
2005-07-29 17:27:25 +02:00
|
|
|
|
2005-10-03 01:09:50 +02:00
|
|
|
ALL_TARGET+= doc
|
2007-03-21 10:35:38 +01:00
|
|
|
CONFIGURE_ARGS+= --with-docdir=${DOCSDIR}
|
2005-10-03 01:09:50 +02:00
|
|
|
INSTALL_TARGET+= install-doc
|
2005-07-29 17:27:25 +02:00
|
|
|
.endif
|
|
|
|
|
2006-05-28 23:42:30 +02:00
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2008-01-30 11:47:16 +01:00
|
|
|
.include <bsd.port.mk>
|