mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-13 07:34:50 +00:00
eccf5db03a
Maintainers for these ports have been notified on 5 separate occasions over the course of several months about pending actions required. We really appreciate the time and effort you put in to maintain these ports. If you are still interested in helping to maintain these ports just reply to me or file a PR and I will happily assign the port to you again. Approved by: portmgr (implicit)
79 lines
2.2 KiB
Makefile
79 lines
2.2 KiB
Makefile
# Created by: Frederic Han <han@math.jussieu.fr>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= giacxcas
|
|
PORTVERSION= 1.1.0
|
|
PORTREVISION= 4
|
|
CATEGORIES= math
|
|
MASTER_SITES= http://www-fourier.ujf-grenoble.fr/~parisse/giac/freebsd/ \
|
|
http://www.math.jussieu.fr/~han/xcas/sources/
|
|
DISTFILES= fltk-giac.tar.gz CoCoALib-0.9950.tgz giac-${PORTVERSION}.tar.gz
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Computer algebra system by Bernard Parisse
|
|
|
|
LICENSE= GPLv3
|
|
|
|
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \
|
|
${LOCALBASE}/lib/libntl.a:${PORTSDIR}/math/ntl
|
|
LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp \
|
|
libpng.so:${PORTSDIR}/graphics/png \
|
|
libjpeg.so:${PORTSDIR}/graphics/jpeg \
|
|
libpari.so:${PORTSDIR}/math/pari \
|
|
libmpfr.so:${PORTSDIR}/math/mpfr \
|
|
libgsl.so:${PORTSDIR}/math/gsl \
|
|
liblapack.so:${PORTSDIR}/math/lapack
|
|
|
|
NO_CDROM= French documentation is for non-commercial use only
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= desktop-file-utils gettext gmake libtool:keepla shebangfix
|
|
USE_GL= gl
|
|
USE_XORG= x11 xcursor xft xi
|
|
USE_TEX= latex:build dvipsk:build
|
|
USE_LDCONFIG= yes
|
|
USE_GCC= yes
|
|
DOCSDIR= ${PREFIX}/share/doc/giac
|
|
PORTDOCS= *
|
|
DATADIR= ${PREFIX}/share/giac
|
|
PORTDATA= *
|
|
SHEBANG_FILES= src/pgiac
|
|
|
|
CONFIGURE_ENV= X_LIBS=-lX11
|
|
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
|
|
|
|
WRKSRC= ${WRKDIR}/giac-${PORTVERSION}
|
|
FLTKDEV-GIAC= ${WRKDIR}/fltk-1.3.0
|
|
COCOALIB-GIAC= ${WRKDIR}/CoCoALib-0.9950
|
|
|
|
INFO= giac_es giac_us
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${OSVERSION} >= 1000000
|
|
CONFIGURE_ARGS+= --disable-ntl
|
|
.endif
|
|
|
|
post-patch:
|
|
@${GREP} -Rl --null /bin/bash ${COCOALIB-GIAC} | ${XARGS} -0 \
|
|
${REINPLACE_CMD} -e 's|/bin/bash|/usr/bin/env bash|'
|
|
@${REINPLACE_CMD} -e 's|/usr/bin|${LOCALBASE}/bin|' \
|
|
${WRKSRC}/xcas.applications ${WRKSRC}/xcas.desktop
|
|
.if ${OSVERSION} >= 1000000
|
|
@${REINPLACE_CMD} -e 's|friend class Fl_Group;|friend class Fl_Group;friend class Fl_X;|' \
|
|
${FLTKDEV-GIAC}/FL/Fl_Widget.H
|
|
.endif
|
|
|
|
pre-configure:
|
|
cd ${COCOALIB-GIAC} && \
|
|
./configure --with-libgmp=${LOCALBASE}/lib/libgmp.a --with-cxx=${CXX}&& \
|
|
${GMAKE} library && \
|
|
cd ${FLTKDEV-GIAC} && \
|
|
./configure --prefix=${FLTKDEV-GIAC} \
|
|
&& ${MAKE}
|
|
|
|
.include <bsd.port.mk>
|