Lines 1-8
Link Here
|
1 |
# Created by: Frederic Han <han@math.jussieu.fr> |
1 |
# Created by: Frederic Han <han@math.jussieu.fr> |
2 |
# $FreeBSD: math/giacxcas/Makefile 327746 2013-09-20 20:55:04Z bapt $ |
2 |
# $FreeBSD: math/giacxcas/Makefile 326854 2013-09-10 01:23:13Z wg $ |
3 |
|
3 |
|
4 |
PORTNAME= giacxcas |
4 |
PORTNAME= giacxcas |
5 |
PORTVERSION= 1.1.0 |
5 |
PORTVERSION= 1.1.0 |
|
|
6 |
PORTREVISION= 1 |
6 |
CATEGORIES= math |
7 |
CATEGORIES= math |
7 |
MASTER_SITES= http://www-fourier.ujf-grenoble.fr/~parisse/giac/freebsd/ \ |
8 |
MASTER_SITES= http://www-fourier.ujf-grenoble.fr/~parisse/giac/freebsd/ \ |
8 |
http://www.math.jussieu.fr/~han/xcas/sources/ |
9 |
http://www.math.jussieu.fr/~han/xcas/sources/ |
Lines 17-22
Link Here
|
17 |
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \ |
18 |
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \ |
18 |
${LOCALBASE}/lib/libntl.a:${PORTSDIR}/math/ntl |
19 |
${LOCALBASE}/lib/libntl.a:${PORTSDIR}/math/ntl |
19 |
LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp \ |
20 |
LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp \ |
|
|
21 |
libpng.so:${PORTSDIR}/graphics/png \ |
22 |
libjpeg.so:${PORTSDIR}/graphics/jpeg \ |
20 |
libpari.so:${PORTSDIR}/math/pari \ |
23 |
libpari.so:${PORTSDIR}/math/pari \ |
21 |
libmpfr.so:${PORTSDIR}/math/mpfr \ |
24 |
libmpfr.so:${PORTSDIR}/math/mpfr \ |
22 |
libgsl.so:${PORTSDIR}/math/gsl \ |
25 |
libgsl.so:${PORTSDIR}/math/gsl \ |
Lines 30-36
Link Here
|
30 |
USE_TEX= latex:build dvipsk:build |
33 |
USE_TEX= latex:build dvipsk:build |
31 |
USE_LDCONFIG= yes |
34 |
USE_LDCONFIG= yes |
32 |
USES= gettext gmake |
35 |
USES= gettext gmake |
33 |
|
36 |
USE_GCC= yes |
34 |
DOCSDIR= ${PREFIX}/share/doc/giac |
37 |
DOCSDIR= ${PREFIX}/share/doc/giac |
35 |
PORTDOCS= * |
38 |
PORTDOCS= * |
36 |
DATADIR= ${PREFIX}/share/giac |
39 |
DATADIR= ${PREFIX}/share/giac |
Lines 47-64
Link Here
|
47 |
INFO= giac_es giac_us |
50 |
INFO= giac_es giac_us |
48 |
|
51 |
|
49 |
NO_STAGE= yes |
52 |
NO_STAGE= yes |
|
|
53 |
|
54 |
.include <bsd.port.pre.mk> |
55 |
.if ${OSVERSION} >= 1000000 |
56 |
CONFIGURE_ARGS+= --disable-ntl |
57 |
.endif |
58 |
|
50 |
post-patch: |
59 |
post-patch: |
51 |
@${GREP} -Rl --null /bin/bash ${COCOALIB-GIAC} | ${XARGS} -0 \ |
60 |
@${GREP} -Rl --null /bin/bash ${COCOALIB-GIAC} | ${XARGS} -0 \ |
52 |
${REINPLACE_CMD} -e 's|/bin/bash|/usr/bin/env bash|' |
61 |
${REINPLACE_CMD} -e 's|/bin/bash|/usr/bin/env bash|' |
53 |
@${REINPLACE_CMD} -e 's|/usr/bin|${LOCALBASE}/bin|' \ |
62 |
@${REINPLACE_CMD} -e 's|/usr/bin|${LOCALBASE}/bin|' \ |
54 |
${WRKSRC}/xcas.applications ${WRKSRC}/xcas.desktop |
63 |
${WRKSRC}/xcas.applications ${WRKSRC}/xcas.desktop |
|
|
64 |
.if ${OSVERSION} >= 1000000 |
65 |
@${REINPLACE_CMD} -e 's|friend class Fl_Group;|friend class Fl_Group;friend class Fl_X;|' \ |
66 |
${FLTKDEV-GIAC}/FL/Fl_Widget.H |
67 |
.endif |
55 |
|
68 |
|
56 |
pre-configure: |
69 |
pre-configure: |
57 |
cd ${COCOALIB-GIAC} && \ |
70 |
cd ${COCOALIB-GIAC} && \ |
58 |
./configure --with-libgmp=${LOCALBASE}/lib/libgmp.a && \ |
71 |
./configure --with-libgmp=${LOCALBASE}/lib/libgmp.a --with-cxx=${CXX}&& \ |
59 |
${GMAKE} library && \ |
72 |
${GMAKE} library && \ |
60 |
cd ${FLTKDEV-GIAC} && \ |
73 |
cd ${FLTKDEV-GIAC} && \ |
61 |
./configure --prefix=${FLTKDEV-GIAC} \ |
74 |
./configure --prefix=${FLTKDEV-GIAC} \ |
62 |
&& ${MAKE} |
75 |
&& ${MAKE} |
63 |
|
76 |
|
64 |
.include <bsd.port.mk> |
77 |
.include <bsd.port.post.mk> |