pkgsrc/graphics/asymptote/Makefile

70 lines
2.5 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.36 2020/04/15 22:53:33 joerg Exp $
2009-08-22 01:02:29 +02:00
DISTNAME= asymptote-2.41
2019-08-11 15:17:48 +02:00
PKGREVISION= 4
2009-08-22 01:02:29 +02:00
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=asymptote/}
EXTRACT_SUFX= .tgz
DISTFILES= ${DISTNAME}.src${EXTRACT_SUFX}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://asymptote.sourceforge.io/
2009-08-22 01:02:29 +02:00
COMMENT= Powerful descriptive vector graphics language for technical drawings
LICENSE= gnu-gpl-v3 AND gnu-lgpl-v3
2020-03-27 04:41:20 +01:00
TOOL_DEPENDS+= dvipsk-[0-9]*:../../print/dvipsk
TOOL_DEPENDS+= makeindexk-[0-9]*:../../textproc/makeindexk
TOOL_DEPENDS+= tex-latex-bin-[0-9]*:../../print/tex-latex-bin
TOOL_DEPENDS+= tex-ec-[0-9]*:../../fonts/tex-ec
TOOL_DEPENDS+= tex-epsf-[0-9]*:../../print/tex-epsf
TOOL_DEPENDS+= tex-etoolbox-[0-9]*:../../devel/tex-etoolbox
2020-03-27 04:41:20 +01:00
TOOL_DEPENDS+= tex-pdftex-[0-9]*:../../print/tex-pdftex
TOOL_DEPENDS+= tex-parskip-[0-9]*:../../print/tex-parskip
TOOL_DEPENDS+= tex-texinfo-[0-9]*:../../print/tex-texinfo
TOOL_DEPENDS+= tex-tools-[0-9]*:../../print/tex-tools
TOOL_DEPENDS+= ghostscript-agpl>=9.16:../../print/ghostscript-agpl
2015-05-02 07:56:07 +02:00
DEPENDS+= tex-geometry-[0-9]*:../../print/tex-geometry
2009-08-22 01:02:29 +02:00
UNLIMIT_RESOURCES= datasize
MAKE_JOBS_SAFE= no # random failure during build as of 2.38
2009-08-22 01:02:29 +02:00
GNU_CONFIGURE= yes
INFO_FILES= yes
USE_LANGUAGES= c c++03
2009-08-22 01:02:29 +02:00
CONFIGURE_ARGS+= --enable-gc=system
CONFIGURE_ARGS+= --infodir=${PREFIX}/info
USE_TOOLS+= gmake makeinfo perl
CFLAGS+= -DGC_NO_THREAD_REDIRECTS
2011-07-04 02:18:07 +02:00
REPLACE_PYTHON+= GUI/*.py
SUBST_CLASSES+= python
SUBST_STAGE.python= pre-configure
2011-07-04 02:18:07 +02:00
SUBST_FILES.python= Makefile.in
SUBST_MESSAGE.python= Fixing path to python interpreter.
SUBST_SED.python+= -e "s|/usr/bin/env python|${PYTHONBIN:Q}|g"
2016-02-25 14:37:46 +01:00
# DragonFly has stripped makeinfo in the base - without texi2dvi.
2020-03-27 04:41:20 +01:00
OPSYSVARS+= TOOL_DEPENDS
TOOL_DEPENDS.DragonFly+= gtexinfo-[0-9]*:../../devel/gtexinfo
2016-02-25 14:37:46 +01:00
2009-08-22 01:02:29 +02:00
post-install:
${MV} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xasy.1x \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xasy.1
.include "../../devel/boehm-gc/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
2014-09-25 01:10:51 +02:00
.include "../../devel/zlib/buildlink3.mk"
2011-07-04 02:18:07 +02:00
.include "../../lang/python/application.mk"
2009-08-22 01:02:29 +02:00
# next two could be split off into options
.include "../../math/fftw/buildlink3.mk"
.include "../../math/gsl/buildlink3.mk"
# wants library called 'glut', but pkgsrc only provides 'freeglut'
#BUILDLINK_API_DEPENDS.freeglut+= freeglut>=3.0
2009-08-22 01:02:29 +02:00
#.include "../../graphics/freeglut/buildlink3.mk"
# recognized, but makes asy dump core during creation of documentation
#.include "../../graphics/glut/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"