39fc32e828
a zeising, kwm production, with help from dumbbell, bdrewery: NEW XORG ON FREEBSD 9-STABLE AND 10-STABLE This update switches over to use the new xorg stack by default on FreeBSD 9 and 10 stable, on osversions where vt(9) is available. It is still possible to use the old stack by specifying WITHOUT_NEW_XORG in /etc/make.conf . FreeBSD 8-STABLE and released versions of FreeBSD still use the old version. A package repository with binary packages for new xorg will be available soon. This patch also contains updates of libxcb and related ports, pixman, as well as some drivers and utilities. Bump portrevisions for xf86-* ports, as well as virtualbox-ose-additions due to xserver version change. Apart from these updates, the way shared libraries are handled has been changed for all xorg ports, as well as libxml2 and freetype, which means ltverhack is gone and as a consequence shared libraries have been bumped. The plan is that this change will make library bumps less likely in the future. All affected ports have had their portrevisions bumped as a consequence of this. Fix some issues where WITH_NEW_XORG weren't detected properly on CURRENT. Update instructions, hardware support, and more notes can be found on https://wiki.freebsd.org/Graphics Thanks to: all testers, bdrewery and the FreeBSD x11@ team exp-run by: bdrewery [1] PR: ports/187602 [1] Approved by: portmgr (bdrewery), core (jhb)
118 lines
2.8 KiB
Makefile
118 lines
2.8 KiB
Makefile
# Created by: Nicola Vitale <nivit@email.it>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= asymptote
|
|
PORTVERSION= 2.16
|
|
PORTREVISION= 4
|
|
CATEGORIES= math
|
|
MASTER_SITES= SF
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTVERSION}
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
|
COMMENT= A powerful script-based vector graphics language
|
|
|
|
LICENSE= GPLv3 LGPL3
|
|
LICENSE_COMB= dual
|
|
|
|
RUN_DEPENDS= gv:${PORTSDIR}/print/gv \
|
|
${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter \
|
|
${PYTHON_PKGNAMEPREFIX}imaging>=1.1.6_3:${PORTSDIR}/graphics/py-imaging
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
# it requires boehm-gc 7.X with Pthread enabled
|
|
CONFIGURE_ARGS= --disable-gc
|
|
|
|
USE_GHOSTSCRIPT=yes
|
|
USE_TEX= latex
|
|
USE_GL= glut
|
|
USES= gmake perl5
|
|
USE_PERL5= build
|
|
USE_PYTHON= yes
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+=--with-latex=${LOCALBASE}/share/texmf/tex/latex \
|
|
--with-context=${LOCALBASE}/share/texmf/tex/context/third
|
|
CONFIGURE_ENV= LFLAGS="-L${LOCALBASE}/lib $${LFLAGS}"
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
MAKE_ENV+= ${CONFIGURE_ENV}
|
|
|
|
MKTEXLSR= ${LOCALBASE}/bin/mktexlsr
|
|
PLIST_SUB= MKTEXLSR=${MKTEXLSR}
|
|
|
|
ALL_TARGET= asy asy-keywords.el
|
|
INSTALL_TARGET= install-asy install-texhash
|
|
|
|
# Options
|
|
OPTIONS_DEFINE= EXAMPLES GSL FFTW READLINE #DOCS MANPAGES
|
|
OPTIONS_DEFAULT= EXAMPLES GSL FFTW READLINE #MANPAGES
|
|
|
|
GSL_DESC= Enable GNU Scientific library
|
|
FFTW_DESC= Use FFTW to compute the Discrete Fourier Transform
|
|
READLINE_DESC= ${LIBEDIT_DESC}
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
# Documentation
|
|
#.if ${PORT_OPTIONS:MDOCS}
|
|
# teTeX is too old to compile the asymptote documentation
|
|
.if 0
|
|
ALL_TARGET+= html
|
|
CONFIGURE_ARGS+= --with-docdir=${DOCSDIR}
|
|
INSTALL_TARGET+= install-html
|
|
.endif
|
|
|
|
#.if ${PORT_OPTIONS:MMANPAGES}
|
|
# teTeX is too old to compile the asymptote documentation
|
|
.if 0
|
|
MAN1= asy.1 xasy.1x
|
|
INFO= asy-faq
|
|
ALL_TARGET+= man
|
|
INSTALL_TARGET+= install-man
|
|
.endif
|
|
|
|
#.if ${PORT_OPTIONS:MMANPAGES} || ${PORT_OPTIONS:MDOCS}
|
|
# teTeX is too old to compile the asymptote documentation
|
|
.if 0
|
|
USE_TEX+= dvipsk:build
|
|
BUILD_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick \
|
|
makeinfo:${PORTSDIR}/textproc/texi2html \
|
|
svn:${PORTSDIR}/devel/subversion \
|
|
texi2dvi:${PORTSDIR}/print/texinfo
|
|
.endif
|
|
|
|
# Examples
|
|
.if !${PORT_OPTIONS:MEXAMPLES}
|
|
post-install:
|
|
@${RM} -R ${EXAMPLESDIR}
|
|
.endif
|
|
|
|
# Optimizations
|
|
.if ${PORT_OPTIONS:MGSL}
|
|
LIB_DEPENDS+= gsl:${PORTSDIR}/math/gsl
|
|
CONFIGURE_ARGS+= --enable-gsl
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-gsl
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MFFTW}
|
|
LIB_DEPENDS+= fftw3:${PORTSDIR}/math/fftw3
|
|
CONFIGURE_ARGS+= --enable-fftw
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-fftw
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MREADLINE}
|
|
CONFIGURE_ARGS+= --enable-readline
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-readline
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|