View | Details | Raw Unified | Return to bug 246049
Collapse All | Expand All

(-)math/giacxcas/Makefile (-7 / +23 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	giacxcas
4
PORTNAME=	giacxcas
5
DISTVERSION=	1.5.0-87
5
DISTVERSION=	1.5.0-87
6
PORTREVISION=	1
6
CATEGORIES=	math
7
CATEGORIES=	math
7
MASTER_SITES=	http://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/:giac \
8
MASTER_SITES=	http://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/:giac \
8
		http://cocoa.dima.unige.it/cocoalib/tgz/:cocoa \
9
		http://cocoa.dima.unige.it/cocoalib/tgz/:cocoa \
Lines 25-31 Link Here
25
		libgsl.so:math/gsl \
26
		libgsl.so:math/gsl \
26
		libglpk.so:math/glpk \
27
		libglpk.so:math/glpk \
27
		libgmp.so:math/gmp \
28
		libgmp.so:math/gmp \
29
		libecm.so:math/gmp-ecm \
28
		libmpfr.so:math/mpfr \
30
		libmpfr.so:math/mpfr \
31
		libmpfi.so:math/mpfi \
29
		libpari.so:math/pari \
32
		libpari.so:math/pari \
30
		libpng.so:graphics/png \
33
		libpng.so:graphics/png \
31
		libsamplerate.so:audio/libsamplerate
34
		libsamplerate.so:audio/libsamplerate
Lines 34-47 Link Here
34
NO_CDROM=	French documentation is for non-commercial use only
37
NO_CDROM=	French documentation is for non-commercial use only
35
38
36
USES=		blaslapack desktop-file-utils fortran gettext gl gmake gnome jpeg \
39
USES=		blaslapack desktop-file-utils fortran gettext gl gmake gnome jpeg \
37
		libtool ncurses readline shebangfix xorg
40
		libtool localbase ncurses perl5 readline shebangfix xorg
38
GNU_CONFIGURE=	yes
41
GNU_CONFIGURE=	yes
39
USE_GL=		gl
42
USE_GL=		gl
40
USE_XORG=	x11 xcursor xext xft xi xinerama
43
USE_XORG=	x11 xcursor xext xft xi xinerama
41
USE_TEX=	latex:build dvipsk:build
44
USE_TEX=	latex:build dvipsk:build
45
USE_PERL5=	run
42
USE_LDCONFIG=	yes
46
USE_LDCONFIG=	yes
43
# Warning:  don't remove the USE_GCC without a runtime test *after* make install
47
# Warning:  don't remove the USE_GCC without a runtime test *after* make install
44
USE_GCC=	yes
48
#USE_GCC=	yes
45
CONFIGURE_ENV=	ac_cv_lib_X11_main=yes \
49
CONFIGURE_ENV=	ac_cv_lib_X11_main=yes \
46
		ac_cv_lib_cocoa_main=yes \
50
		ac_cv_lib_cocoa_main=yes \
47
		ac_cv_lib_fltk_gl_main=yes \
51
		ac_cv_lib_fltk_gl_main=yes \
Lines 54-70 Link Here
54
58
55
COCOA_LIB_VERSION=	0.99700
59
COCOA_LIB_VERSION=	0.99700
56
60
57
CXXFLAGS+=	-I${LOCALBASE}/include
58
CPPFLAGS+=	-I${COCOALIB-GIAC}/include \
61
CPPFLAGS+=	-I${COCOALIB-GIAC}/include \
59
		-I${FLTKDEV-GIAC} \
62
		-I${FLTKDEV-GIAC} \
60
		-I${LOCALBASE}/include
63
		-Wno-narrowing
61
LDFLAGS+=	-L${COCOALIB-GIAC}/lib \
64
LDFLAGS+=	-L${COCOALIB-GIAC}/lib \
62
		-L${FLTKDEV-GIAC}/lib \
65
		-L${FLTKDEV-GIAC}/lib
63
		-L${LOCALBASE}/lib
64
66
65
WRKSRC=		${WRKDIR}/giac-${DISTVERSION:C/-[0-9]*//}
67
WRKSRC=		${WRKDIR}/giac-${DISTVERSION:C/-[0-9]*//}
66
FLTKDEV-GIAC=	${WRKDIR}/fltk-1.3.0
68
FLTKDEV-GIAC=	${WRKDIR}/fltk-1.3.0
67
COCOALIB-GIAC=	${WRKDIR}/CoCoALib-${COCOA_LIB_VERSION}
69
COCOALIB-GIAC=	${WRKDIR}/CoCoALib-${COCOA_LIB_VERSION}
70
TEST_TARGET=	check
68
71
69
DATADIR=	${PREFIX}/share/giac
72
DATADIR=	${PREFIX}/share/giac
70
DOCSDIR=	${PREFIX}/share/doc/giac
73
DOCSDIR=	${PREFIX}/share/doc/giac
Lines 102-111 Link Here
102
		's|\($$(MAKE) \)-s |\1|; s|\([[:blank:]]\)@|\1|'
105
		's|\($$(MAKE) \)-s |\1|; s|\([[:blank:]]\)@|\1|'
103
	@${REINPLACE_CMD} -e '/.SILENT:/s|^|#|' \
106
	@${REINPLACE_CMD} -e '/.SILENT:/s|^|#|' \
104
		${FLTKDEV-GIAC}/makeinclude.in
107
		${FLTKDEV-GIAC}/makeinclude.in
108
	${SED} -i ".orig" -Ee 's|char \*last = style \+ strlen\(style\) - 2|char *last = pretty|' \
109
		-Ee 's|\*style = 0|last = style + strnlen(style, ENDOFBUFFER) - 2; *style = 0|' \
110
		${FLTKDEV-GIAC}/src/fl_set_fonts_xft.cxx
105
111
106
pre-configure:
112
pre-configure:
113
	${REINPLACE_CMD} -e 's|/usr/lib  /usr/lib64  /usr/lib32  /usr/local  /opt/local/lib  /sw/lib  /usr/sfw/lib|${LOCALBASE}/lib|' \
114
		-e '/libgmp.a/s|find|#find|' \
115
		-e 's|-name  libgmp.so|-type f -name "libgmp.so.*"|' \
116
		${COCOALIB-GIAC}/configuration/gmp-find.sh
117
	${REINPLACE_CMD} -e 's|^protected:|public:|' ${FLTKDEV-GIAC}/FL/Fl_Widget.H
118
.for f in icas.cc path.h
119
	${REINPLACE_CMD} -e 's|/usr/local/share/giac/doc|${DOCSDIR}|' \
120
		${WRKSRC}/src/${f}
121
.endfor
122
	${FIND} ${WRKSRC}/doc -type f | ${XARGS} ${GREP} -l 'share/giac/doc' | \
123
		${XARGS} ${REINPLACE_CMD} -e 's|/usr/local/share/giac/doc|${DOCSDIR}|'
107
	@(cd ${COCOALIB-GIAC} && ${SETENV} ${CONFIGURE_ENV} ./configure \
124
	@(cd ${COCOALIB-GIAC} && ${SETENV} ${CONFIGURE_ENV} ./configure \
108
		--with-libgmp=${LOCALBASE}/lib/libgmp.a \
109
		--with-cxx="${CXX}")
125
		--with-cxx="${CXX}")
110
	@(cd ${FLTKDEV-GIAC} && ${SETENV} ${CONFIGURE_ENV} ./configure \
126
	@(cd ${FLTKDEV-GIAC} && ${SETENV} ${CONFIGURE_ENV} ./configure \
111
		--prefix=${FLTKDEV-GIAC} \
127
		--prefix=${FLTKDEV-GIAC} \

Return to bug 246049