Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Sep 2013 06:15:48 GMT
From:      Han Frederic <han@math.jussieu.fr>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/182431: [Maintainer] math/giacxcas fixes for FreeBSD 10
Message-ID:  <201309270615.r8R6Fm6H022489@oldred.freebsd.org>
Resent-Message-ID: <201309270620.r8R6K2LV073187@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         182431
>Category:       ports
>Synopsis:       [Maintainer] math/giacxcas fixes for FreeBSD 10
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 27 06:20:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Han Frederic
>Release:        FreeBSD 10 and FreeBSD 8.2
>Organization:
Universite Paris 7
>Environment:
FreeBSD bsd10amd64 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r255342: Sat Sep  7 07:34:47 UTC 2013     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
I was reported the followinf pkg-fallout:
http://beefy2.isc.freebsd.org/bulk/head-amd64-default/2013-09-26_00h44m15s/logs/giacxcas-1.1.0.log

-add USE_GCC, and some other dependancies.
-Then, there was problems with NTL 6.0. I asked upstream and was reported that they didn't try this version yet so I have disable NTL for freebsd10 only.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN giacxcas/Makefile giacxcas.new/Makefile
--- giacxcas/Makefile	2013-09-20 22:55:04.000000000 +0200
+++ giacxcas.new/Makefile	2013-09-26 23:01:22.000000000 +0200
@@ -1,8 +1,9 @@
 # Created by: Frederic Han <han@math.jussieu.fr>
-# $FreeBSD: math/giacxcas/Makefile 327746 2013-09-20 20:55:04Z bapt $
+# $FreeBSD: math/giacxcas/Makefile 326854 2013-09-10 01:23:13Z wg $
 
 PORTNAME=	giacxcas
 PORTVERSION=	1.1.0
+PORTREVISION=	1
 CATEGORIES=	math
 MASTER_SITES=	http://www-fourier.ujf-grenoble.fr/~parisse/giac/freebsd/ \
 		http://www.math.jussieu.fr/~han/xcas/sources/
@@ -17,6 +18,8 @@
 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 \
@@ -30,7 +33,7 @@
 USE_TEX=	latex:build dvipsk:build
 USE_LDCONFIG=	yes
 USES=		gettext gmake
-
+USE_GCC=	yes
 DOCSDIR=	${PREFIX}/share/doc/giac
 PORTDOCS=	*
 DATADIR=	${PREFIX}/share/giac
@@ -47,18 +50,28 @@
 INFO=		giac_es giac_us
 
 NO_STAGE=	yes
+
+.include <bsd.port.pre.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 && \
+	./configure --with-libgmp=${LOCALBASE}/lib/libgmp.a --with-cxx=${CXX}&& \
 	${GMAKE} library && \
 	cd ${FLTKDEV-GIAC} && \
 	./configure --prefix=${FLTKDEV-GIAC} \
 	&& ${MAKE}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309270615.r8R6Fm6H022489>