if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}. This commit doesn't change any versions currently used; it may be that some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those should be cleaned up in the course of updating ports where possible. Python module ports providing py3-* packages should still use FLAVOR=python3 so that we don't have a mixture of dependencies some using ${MODPY_FLAVOR} and others not.
75 lines
1.9 KiB
Makefile
75 lines
1.9 KiB
Makefile
# $OpenBSD: Makefile,v 1.39 2021/02/23 19:39:24 sthen Exp $
|
|
|
|
NOT_FOR_ARCHS= ${CLANG_ARCHS} # hangs during build, while running
|
|
# ../asy -dir ../base -config "" -render=0 -f pdf -noprc cube.asy
|
|
# in WRKSRC/doc. run the above command with -vvv for more info.
|
|
# this does not fail with ports clang, though.
|
|
|
|
COMMENT= powerful descriptive vector graphics language
|
|
BROKEN-hppa= ghostscript segfaults during build
|
|
|
|
DISTNAME= asymptote-2.41.src
|
|
PKGNAME= asymptote-2.41
|
|
REVISION= 3
|
|
CATEGORIES= graphics
|
|
|
|
HOMEPAGE= http://asymptote.sourceforge.net/
|
|
|
|
# LGPLv3
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=asymptote/}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MODULES= lang/python
|
|
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2}
|
|
|
|
WANTLIB += GL GLU OSMesa c fftw3 gc glut gsl gslcblas m ncurses pthread
|
|
WANTLIB += readline sigsegv ${COMPILER_LIBCXX} z
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
BUILD_DEPENDS= print/texinfo \
|
|
print/texlive/base \
|
|
print/texlive/texmf,-main
|
|
RUN_DEPENDS= graphics/py2-Pillow \
|
|
print/texlive/texmf,-full \
|
|
${MODPY_TKINTER_DEPENDS}
|
|
|
|
LIB_DEPENDS= devel/boehm-gc \
|
|
devel/gsl \
|
|
devel/libsigsegv \
|
|
graphics/freeglut \
|
|
math/fftw3
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
# XXX eats all memory
|
|
.if ${MACHINE_ARCH:Msparc64}
|
|
CFLAGS+= -O0
|
|
.endif
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ARGS+= --enable-gc=${LOCALBASE} \
|
|
--enable-fftw \
|
|
--enable-gl \
|
|
--enable-gsl \
|
|
--with-latex=${LOCALBASE}/share/texmf-local/tex/latex \
|
|
--with-context=${LOCALBASE}/share/texmf-local/tex/context/third
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
|
|
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib" \
|
|
ac_cv_prog_kpsewhich="${LOCALBASE}/bin/kpsewhich"
|
|
|
|
FAKE_FLAGS+= exampledir="${WRKINST}${PREFIX}/share/examples/asymptote"
|
|
|
|
PORTHOME= ${WRKDIR}
|
|
|
|
MODPY_ADJ_FILES= GUI/*.py
|
|
|
|
WRKDIST= ${WRKDIR}/${DISTNAME:S/.src//g}
|
|
|
|
post-install:
|
|
mv ${PREFIX}/man/man1/xasy.1x ${PREFIX}/man/man1/xasy.1
|
|
|
|
.include <bsd.port.mk>
|