1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/math/giacxcas/Makefile
Max Brazhnikov 8fc31d32f0 - Add new mastersite and use original sources from author
- Fix build on pointyhat
- Fix runtime problem on amd64
- Use @dirrmtry for common directories

PR:		ports/150395
Submitted by:	Han Frederic (maintainer)
2010-10-09 22:26:00 +00:00

71 lines
2.0 KiB
Makefile

# New ports collection makefile for: giacxcas
# Date created: 2010-08-26
# Whom: Frederic Han <han@math.jussieu.fr>
#
# $FreeBSD$
#
PORTNAME= giacxcas
PORTVERSION= 0.9.0
PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= ftp://ftp-fourier.ujf-grenoble.fr/xcas/freebsd/ \
http://people.math.jussieu.fr/~han/xcas/sources/rev1/
DISTFILES= fltkdev.tgz CoCoALib.tgz giac-${PORTVERSION}.tar.gz
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= han@math.jussieu.fr
COMMENT= Computer algebra system by Bernard Parisse
BUILD_DEPENDS= hevea:${PORTSDIR}/textproc/hevea \
latex:${PORTSDIR}/print/teTeX-base \
dvips:${PORTSDIR}/print/dvipsk-tetex \
${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash \
gettext:${PORTSDIR}/devel/gettext \
${LOCALBASE}/lib/libntl.a:${PORTSDIR}/math/ntl
PATCH_DEPENDS= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
LIB_DEPENDS= gmp:${PORTSDIR}/math/gmp \
pari:${PORTSDIR}/math/pari \
mpfr:${PORTSDIR}/math/mpfr \
gsl:${PORTSDIR}/math/gsl
NO_CDROM= The french documentation is for non commercial only use
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_GL= gl
USE_XORG= xcursor xft xi
USE_LDCONFIG= yes
CPPFLAGS+= -I${FLTKDEV-GIAC} -I${COCOALIB-GIAC}/include -I${LOCALBASE}/include
LDFLAGS+= -L${FLTKDEV-GIAC}/lib -L${COCOALIB-GIAC}/lib -L${LOCALBASE}/lib
CXXFLAGS+= -I${LOCALBASE}/include
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64"
CXXFLAGS+= -DSMARTPTR64 -D_I386_ -fPIC
.endif
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
WRKSRC= ${WRKDIR}/giac-${PORTVERSION}
FLTKDEV-GIAC= ${WRKDIR}/fltk-1.3.x-r6916
COCOALIB-GIAC= ${WRKDIR}/CoCoALib-0.9937
INFO= giac_es giac_us
post-patch:
${REINPLACE_CMD} -e 's|make |${GMAKE} |g' `${GREP} -Rl 'make ' ${COCOALIB-GIAC}`;
${REINPLACE_CMD} -e 's|/bin/bash|${LOCALBASE}/bin/bash|g' `${GREP} -Rl '/bin/bash' ${COCOALIB-GIAC}`;
pre-configure:
cd ${COCOALIB-GIAC} && \
./configure --with-libgmp=${LOCALBASE}/lib/libgmp.a && \
${GMAKE} library && \
cd ${FLTKDEV-GIAC} && \
./configure --prefix=${FLTKDEV-GIAC} \
&& ${MAKE}
.include <bsd.port.post.mk>