Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # $OpenBSD: Makefile,v 1.32 2017/06/04 22:22:05 sthen Exp $
  2. NOT_FOR_ARCHS= ${CLANG_ARCHS} # hangs during build, while running
  3. # ../asy -dir ../base -config "" -render=0 -f pdf -noprc cube.asy
  4. # in WRKSRC/doc. run the abovef command with -vvv for more info.
  5. # this does not fail with ports clang, though.
  6. COMMENT= powerful descriptive vector graphics language
  7. BROKEN-hppa= ghostscript segfaults during build
  8. DISTNAME= asymptote-2.41.src
  9. PKGNAME= asymptote-2.41
  10. REVISION= 0
  11. CATEGORIES= graphics
  12. HOMEPAGE= http://asymptote.sourceforge.net/
  13. # LGPLv3
  14. PERMIT_PACKAGE_CDROM= Yes
  15. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=asymptote/}
  16. EXTRACT_SUFX= .tgz
  17. MODULES= lang/python
  18. WANTLIB += GL GLU OSMesa c fftw3 gc glut gsl gslcblas m ncurses pthread
  19. WANTLIB += readline sigsegv ${LIBCXX} z
  20. BUILD_DEPENDS= print/texlive/base \
  21. print/texinfo
  22. RUN_DEPENDS= graphics/py-Pillow \
  23. print/texlive/texmf,-full \
  24. ${MODPY_TKINTER_DEPENDS}
  25. LIB_DEPENDS= devel/boehm-gc \
  26. devel/gsl \
  27. devel/libsigsegv \
  28. graphics/freeglut \
  29. math/fftw3
  30. USE_GMAKE= Yes
  31. # XXX eats all memory
  32. .if ${MACHINE_ARCH:Msparc64}
  33. CFLAGS+= -O0
  34. .endif
  35. CONFIGURE_STYLE= gnu
  36. CONFIGURE_ARGS+= --enable-gc=${LOCALBASE} \
  37. --enable-fftw \
  38. --enable-gl \
  39. --enable-gsl \
  40. --with-latex=${LOCALBASE}/share/texmf-local/tex/latex \
  41. --with-context=${LOCALBASE}/share/texmf-local/tex/context/third
  42. CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
  43. LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib" \
  44. ac_cv_prog_kpsewhich="${LOCALBASE}/bin/kpsewhich"
  45. FAKE_FLAGS+= exampledir="${WRKINST}${PREFIX}/share/examples/asymptote"
  46. PORTHOME= ${WRKDIR}
  47. MODPY_ADJ_FILES= GUI/*.py
  48. WRKDIST= ${WRKDIR}/${DISTNAME:S/.src//g}
  49. post-install:
  50. mv ${PREFIX}/man/man1/xasy.1x ${PREFIX}/man/man1/xasy.1
  51. .include <bsd.port.mk>