diff options
author | matthew <matthew@FreeBSD.org> | 2014-02-03 06:31:11 +0800 |
---|---|---|
committer | matthew <matthew@FreeBSD.org> | 2014-02-03 06:31:11 +0800 |
commit | ff4b1d97b0645eaea1803c885faa8b87585cc675 (patch) | |
tree | fc257ab59b382ca9d9c41314dde9066a965ff32c /math | |
parent | 2a036dd8032f095c577923b5e3b5ae37f7b24d11 (diff) | |
download | freebsd-ports-gnome-ff4b1d97b0645eaea1803c885faa8b87585cc675.tar.gz freebsd-ports-gnome-ff4b1d97b0645eaea1803c885faa8b87585cc675.tar.zst freebsd-ports-gnome-ff4b1d97b0645eaea1803c885faa8b87585cc675.zip |
Fix build on 10.x
While here:
* Stagify
* stage-qa fixes: USE shebangfix desktop-file-utils
PR: 182431
Submitted by: Han Frederic (maintainer)
Diffstat (limited to 'math')
-rw-r--r-- | math/giacxcas/Makefile | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/math/giacxcas/Makefile b/math/giacxcas/Makefile index c2fcff3f087e..03a50a0631a1 100644 --- a/math/giacxcas/Makefile +++ b/math/giacxcas/Makefile @@ -3,7 +3,7 @@ PORTNAME= giacxcas PORTVERSION= 1.1.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math MASTER_SITES= http://www-fourier.ujf-grenoble.fr/~parisse/giac/freebsd/ \ http://www.math.jussieu.fr/~han/xcas/sources/ @@ -18,6 +18,8 @@ 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 \ @@ -30,12 +32,13 @@ USE_GL= gl USE_XORG= xcursor xft xi USE_TEX= latex:build dvipsk:build USE_LDCONFIG= yes -USES= gettext gmake - +USES= gettext gmake shebangfix desktop-file-utils +USE_GCC= yes DOCSDIR= ${PREFIX}/share/doc/giac PORTDOCS= * DATADIR= ${PREFIX}/share/giac PORTDATA= * +SHEBANG_FILES= src/pgiac CPPFLAGS+= -I${FLTKDEV-GIAC} -I${COCOALIB-GIAC}/include -I${LOCALBASE}/include LDFLAGS+= -L${FLTKDEV-GIAC}/lib -L${COCOALIB-GIAC}/lib -L${LOCALBASE}/lib @@ -47,19 +50,27 @@ COCOALIB-GIAC= ${WRKDIR}/CoCoALib-0.9950 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> |