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
|
2007-03-21 10:35:38 +01:00
|
|
|
PORTVERSION= 1.23
|
2005-07-29 17:27:25 +02:00
|
|
|
CATEGORIES= math
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
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
|
2007-03-21 10:35:38 +01:00
|
|
|
BUILD_DEPENDS= 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
|
2005-10-03 01:09:50 +02:00
|
|
|
RUN_DEPENDS= ggv:${PORTSDIR}/print/ggv \
|
|
|
|
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
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2007-03-21 10:35:38 +01:00
|
|
|
CONFIGURE_ARGS= --with-latex=${LOCALBASE}/share/texmf-local/tex/latex --enable-gc=system
|
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}"
|
|
|
|
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)
|
|
|
|
LIB_DEPENDS+= gsl.9:${PORTSDIR}/math/gsl
|
|
|
|
.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
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 500000
|
2006-05-28 23:42:30 +02:00
|
|
|
BROKEN= depends on net/avahi
|
2005-07-29 17:27:25 +02:00
|
|
|
.endif
|
|
|
|
|
2007-03-21 10:35:38 +01:00
|
|
|
.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
|
|
|
|
|
2005-11-18 18:49:19 +01:00
|
|
|
pre-configure:
|
2007-03-21 10:35:38 +01:00
|
|
|
cd ${WRKSRC}; \
|
|
|
|
${LN} ${LN_OPTS} ${DISTDIR}/${GC_DISTNAME} ${GC_DISTNAME};
|
|
|
|
.endif
|
2005-11-18 18:49:19 +01:00
|
|
|
|
2006-05-28 23:42:30 +02:00
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2005-07-29 17:27:25 +02:00
|
|
|
.include <bsd.port.post.mk>
|