Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / graphics / asymptote / Makefile
bloba4d80461b79f6748b6f416c5121ff062396faf09
1 # $NetBSD: Makefile,v 1.9 2012/10/06 14:10:41 asau Exp $
4 DISTNAME= asymptote-2.15
5 PKGREVISION= 2
6 CATEGORIES= graphics
7 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=asymptote/}
8 EXTRACT_SUFX= .tgz
9 DISTFILES= ${DISTNAME}.src${EXTRACT_SUFX}
11 MAINTAINER= pkgsrc-users@NetBSD.org
12 HOMEPAGE= http://asymptote.sourceforge.net/
13 COMMENT= Powerful descriptive vector graphics language for technical drawings
14 LICENSE= gnu-gpl-v3 AND gnu-lgpl-v3
16 BUILD_DEPENDS+= dvipsk-[0-9]*:../../print/dvipsk
17 BUILD_DEPENDS+= tex-pdftex-[0-9]*:../../print/tex-pdftex
18 BUILD_DEPENDS+= tex-parskip-[0-9]*:../../print/tex-parskip
19 #BUILD_DEPENDS+=ghostscript-[0-9]*:../../print/ghostscript
20 USE_TOOLS+= gs
22 UNLIMIT_RESOURCES= datasize
24 GNU_CONFIGURE= yes
25 INFO_FILES= yes
26 USE_LANGUAGES= c c++
28 CONFIGURE_ARGS+= --enable-gc=system
29 CONFIGURE_ARGS+= --infodir=${PREFIX}/info
30 USE_TOOLS+= gmake makeinfo perl
31 CFLAGS+= -DGC_NO_THREAD_REDIRECTS
33 REPLACE_PYTHON+= GUI/*.py
35 SUBST_CLASSES+= python
36 SUBST_STAGE.python= post-patch
37 SUBST_FILES.python= Makefile.in
38 SUBST_MESSAGE.python= Fixing path to python interpreter.
39 SUBST_SED.python+= -e "s|/usr/bin/env python|${PYTHONBIN:Q}|g"
41 post-install:
42 ${MV} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xasy.1x \
43 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xasy.1
45 .include "../../mk/bsd.prefs.mk"
47 # DragonFly has stripped makeinfo in the base - without texi2dvi.
48 .if ${OPSYS} == "DragonFly"
49 BUILD_DEPENDS+= gtexinfo-[0-9]*:../../devel/gtexinfo
50 .endif
52 .include "../../devel/boehm-gc/buildlink3.mk"
53 .include "../../devel/readline/buildlink3.mk"
54 .include "../../lang/python/application.mk"
55 # next two could be split off into options
56 .include "../../math/fftw/buildlink3.mk"
57 .include "../../math/gsl/buildlink3.mk"
58 # freeglut too old, not recognized
59 #.include "../../graphics/freeglut/buildlink3.mk"
60 # recognized, but makes asy dump core during creation of documentation
61 #.include "../../graphics/glut/buildlink3.mk"
63 .include "../../mk/tex.buildlink3.mk"
64 .include "../../mk/bsd.pkg.mk"