pkgsrc/graphics/asymptote/Makefile

65 lines
1.9 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.11 2013/05/31 12:41:04 wiz Exp $
2009-08-22 01:02:29 +02:00
#
DISTNAME= asymptote-2.15
PKGREVISION= 3
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
2009-08-22 01:02:29 +02:00
HOMEPAGE= http://asymptote.sourceforge.net/
COMMENT= Powerful descriptive vector graphics language for technical drawings
LICENSE= gnu-gpl-v3 AND gnu-lgpl-v3
BUILD_DEPENDS+= dvipsk-[0-9]*:../../print/dvipsk
BUILD_DEPENDS+= tex-pdftex-[0-9]*:../../print/tex-pdftex
BUILD_DEPENDS+= tex-parskip-[0-9]*:../../print/tex-parskip
#BUILD_DEPENDS+=ghostscript-[0-9]*:../../print/ghostscript
USE_TOOLS+= gs
2009-08-22 01:02:29 +02:00
UNLIMIT_RESOURCES= datasize
2009-08-22 01:02:29 +02:00
GNU_CONFIGURE= yes
INFO_FILES= yes
USE_LANGUAGES= c c++
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= post-patch
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"
2009-08-22 01:02:29 +02:00
post-install:
${MV} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xasy.1x \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xasy.1
2009-08-27 15:08:54 +02:00
.include "../../mk/bsd.prefs.mk"
# DragonFly has stripped makeinfo in the base - without texi2dvi.
.if ${OPSYS} == "DragonFly"
BUILD_DEPENDS+= gtexinfo-[0-9]*:../../devel/gtexinfo
.endif
2009-08-22 01:02:29 +02:00
.include "../../devel/boehm-gc/buildlink3.mk"
.include "../../devel/readline/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"
# freeglut too old, not recognized
#.include "../../graphics/freeglut/buildlink3.mk"
# recognized, but makes asy dump core during creation of documentation
#.include "../../graphics/glut/buildlink3.mk"
.include "../../mk/tex.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"