aboutsummaryrefslogtreecommitdiffstats
path: root/math/yacas/Makefile
blob: 71f327813483a70f7b9e51afb7e077e68520c34f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# ex:ts=8
# New ports collection makefile for:    yacas
# Date created:         Jun 21, 2001
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   yacas
PORTVERSION=    1.0.56
PORTREVISION=   1
CATEGORIES= math
MASTER_SITES=   http://yacas.sourceforge.net/backups/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Yet Another Computer Algebra System

LIB_DEPENDS=    gsl.5:${PORTSDIR}/math/gsl

USE_PERL5_BUILD=    yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
INSTALLS_SHLIB= yes

.include <bsd.port.pre.mk>

.if defined(WITH_GMP)
LIB_DEPENDS+=   gmp.6:${PORTSDIR}/math/libgmp4
CONFIGURE_ARGS+=    --with-numlib=gmp
PLIST_SUB+= GMP="" NOGMP="@comment "
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
.    if ${OSVERSION} >= 500035
BROKEN=     "Does not compile on 5.x with libgmp"
.    endif
.else
CONFIGURE_ARGS+=    --with-numlib=native
PLIST_SUB+= GMP="@comment " NOGMP=""
.endif

.if defined(WITH_X11)
USE_GL=     yes
CONFIGURE_ARGS+=--with-x
PLIST_SUB+= X11=""
CPPFLAGS+=  -I${X11BASE}/include
LDFLAGS+=   -L${X11BASE}/lib
.else
CONFIGURE_ARGS+=    --without-x
PLIST_SUB+= X11="@comment "
.endif

.include <bsd.port.post.mk>