2013-01-04 17:51:39 +00:00
|
|
|
# Created by: Jason W. Bacon <jwbacon@tds.net>
|
2006-01-25 17:34:35 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
############################################################################
|
2008-01-28 16:42:02 +00:00
|
|
|
# http://www.neuro.mcw.edu/Ports has the latest source distribution from
|
|
|
|
# which this port is built. It will be updated as time permits.
|
2006-01-25 17:34:35 +00:00
|
|
|
#
|
|
|
|
# afni.nimh.nih.gov is the ultimate source for AFNI, and will always
|
|
|
|
# contain the latest source release. If this port is not up to date,
|
2008-01-28 16:42:02 +00:00
|
|
|
# you can download the latest sources and build manually.
|
2006-01-25 17:34:35 +00:00
|
|
|
|
|
|
|
PORTNAME= afni
|
2012-05-11 17:05:09 +00:00
|
|
|
PORTVERSION= 2012.04.17.2129
|
Update to libmpc version 1.0.1 which brings the following fixes:
- Switched to automake 1.11.6, see CVE-2012-3386.
- #14669: Fixed extraction of CC from gmp.h.
- Fixed case of intermediate zero real or imaginary part in mpc_fma,
found by hydra with GMP_CHECK_RANDOMIZE=1346362345.
This is on top of the following changes from version 1.0
- Licence change towards LGPLv3+ for the code and GFDLv1.3+ (with no
invariant sections) for the documentation.
- 100% of all lines are covered by tests
- Renamed functions
. mpc_mul_2exp to mpc_mul_2ui
. mpc_div_2exp to mpc_div_2ui
- 0^0, which returned (NaN,NaN) previously, now returns (1,+0).
- Removed compatibility with K&R compilers, which was untestable due
to lack of such compilers.
- New functions
. mpc_log10
. mpc_mul_2si, mpc_div_2si
- Speed-ups
. mpc_fma
- Bug fixes
. mpc_div and mpc_norm now return a value indicating the effective
rounding direction, as the other functions.
. mpc_mul, mpc_sqr and mpc_norm now return correct results even if
there are over- or underflows during the computation.
. mpc_asin, mpc_proj, mpc_sqr: Wrong result when input variable has
infinite part and equals output variable is corrected.
. mpc_fr_sub: Wrong return value for imaginary part is corrected.
Convert to the new LIB_DEPENDS standard and remove hard-coded
.so versions from a couple of dependent ports.
Bump PORTREVISIONS of all dependent ports.
PR: 183141
Approved by: portmgr (bdrewery)
2013-10-26 00:52:33 +00:00
|
|
|
PORTREVISION= 6
|
2006-01-25 17:34:35 +00:00
|
|
|
CATEGORIES= science biology graphics
|
2012-05-11 17:05:09 +00:00
|
|
|
MASTER_SITES= http://personalpages.tds.net/~jwbacon/Ports/distfiles/AFNI/${PORTVERSION}/ \
|
|
|
|
http://www.acadix.biz/Ports/distfiles/AFNI/${PORTVERSION}/
|
2008-01-28 16:42:02 +00:00
|
|
|
DISTFILES= afni_src.tgz afni.1 3dClustBust.c \
|
|
|
|
TTatlas+tlrc.BRIK.gz TTatlas+tlrc.HEAD CA_EZ_v1.5-July3107.tgz
|
2006-01-30 10:03:13 +00:00
|
|
|
DIST_SUBDIR= AFNI-${PORTVERSION}
|
2008-01-28 16:42:02 +00:00
|
|
|
EXTRACT_ONLY= afni_src.tgz CA_EZ_v1.5-July3107.tgz
|
2006-01-25 17:34:35 +00:00
|
|
|
|
2009-06-19 20:06:31 +00:00
|
|
|
MAINTAINER= jwbacon@tds.net
|
2006-01-25 17:34:35 +00:00
|
|
|
COMMENT= Advanced Functional Neuro Imaging
|
|
|
|
|
2013-07-10 07:00:44 +00:00
|
|
|
LIB_DEPENDS= R:${PORTSDIR}/math/R \
|
2012-05-11 17:05:09 +00:00
|
|
|
gsl:${PORTSDIR}/math/gsl
|
2006-05-25 14:23:50 +00:00
|
|
|
RUN_DEPENDS= cjpeg:${PORTSDIR}/graphics/jpeg \
|
|
|
|
mpeg_encode:${PORTSDIR}/multimedia/mpeg_encode \
|
|
|
|
whirlgif:${PORTSDIR}/graphics/whirlgif \
|
2007-04-21 13:37:39 +00:00
|
|
|
ppmtogif:${PORTSDIR}/graphics/netpbm \
|
|
|
|
endian:${PORTSDIR}/sysutils/endian
|
2006-05-25 14:23:50 +00:00
|
|
|
|
2013-07-10 07:00:44 +00:00
|
|
|
USES= gettext iconv gmake motif
|
|
|
|
|
2013-09-20 22:48:30 +00:00
|
|
|
NO_STAGE= yes
|
2013-11-13 08:19:34 +00:00
|
|
|
BROKEN= R_io.so fails to build with R-3.0.2
|
|
|
|
|
2006-02-13 10:24:18 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "sparc64"
|
2007-04-21 13:37:39 +00:00
|
|
|
BROKEN= Does not compile on sparc64: "undefined reference to '_mcount'"
|
2006-02-13 10:24:18 +00:00
|
|
|
.endif
|
2006-02-09 15:58:53 +00:00
|
|
|
|
2007-06-21 12:33:48 +00:00
|
|
|
USE_GL= glw glu
|
2009-01-24 10:02:09 +00:00
|
|
|
USE_XORG= xi
|
2012-05-11 17:05:09 +00:00
|
|
|
MAKE_ENV= CC="${CC}"
|
|
|
|
MAKE_JOBS_UNSAFE=yes
|
2006-01-25 17:34:35 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/afni_src
|
|
|
|
ALL_TARGET= vastness suma
|
|
|
|
|
|
|
|
###########################################################################
|
|
|
|
# Install parameters
|
|
|
|
|
2008-01-28 16:42:02 +00:00
|
|
|
MAN1= afni.1
|
2006-01-25 17:34:35 +00:00
|
|
|
|
2012-05-11 17:05:09 +00:00
|
|
|
SUB_FILES= pkg-message afni.cshrc afni.profile
|
|
|
|
|
2006-01-25 17:34:35 +00:00
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/BSD
|
2007-04-21 13:37:39 +00:00
|
|
|
STAGE= ${WRKSRC}/stage
|
|
|
|
|
|
|
|
X11R6_FILES= coxplot/Makefile \
|
|
|
|
coxplot/Makefile.f2c \
|
|
|
|
3DEdge/src/Makefile \
|
|
|
|
SUMA/SUMA_Makefile \
|
|
|
|
edt_blur.c \
|
|
|
|
suma_datasets.c \
|
|
|
|
SUMA/SUMA_Load_Surface_Object.c \
|
|
|
|
SUMA/SUMA_MiscFunc.c \
|
|
|
|
SUMA/SUMA_ParseCommands.c \
|
|
|
|
SUMA/GLUT/libglut/glut_event.c \
|
|
|
|
SUMA/SUMA_Surface_IO.c
|
2006-01-25 17:34:35 +00:00
|
|
|
|
|
|
|
post-extract:
|
2012-05-11 17:05:09 +00:00
|
|
|
@${CP} -f ${FILESDIR}/Makefile.FreeBSD_PORT ${WRKSRC}/Makefile
|
2007-04-21 13:37:39 +00:00
|
|
|
.for f in ${X11R6_FILES}
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/X11R6|$${LOCALBASE}|g' ${WRKSRC}/${f}
|
2007-04-21 13:37:39 +00:00
|
|
|
.endfor
|
2012-05-11 17:05:09 +00:00
|
|
|
@${REINPLACE_CMD} -E 's|AFNI_[0-9_]+|${PORTVERSION}|g' ${WRKSRC}/AFNI_label.h
|
2007-06-21 12:33:48 +00:00
|
|
|
@${CP} ${DISTDIR}/${DIST_SUBDIR}/afni.1 ${WRKDIR}
|
2008-01-28 16:42:02 +00:00
|
|
|
@${CP} ${DISTDIR}/${DIST_SUBDIR}/3dClustBust.c ${WRKSRC}
|
2007-06-21 12:33:48 +00:00
|
|
|
@${REINPLACE_CMD} "s|%%PREFIX%%|${PREFIX}|g" ${WRKDIR}/afni.1
|
2006-01-25 17:34:35 +00:00
|
|
|
|
2007-04-21 13:37:39 +00:00
|
|
|
post-build:
|
|
|
|
${MKDIR} ${STAGE}/bin \
|
|
|
|
${STAGE}/scripts \
|
|
|
|
${STAGE}/lib \
|
|
|
|
${STAGE}/include \
|
|
|
|
${STAGE}/trash \
|
|
|
|
${STAGE}/doc \
|
|
|
|
${STAGE}/share
|
|
|
|
${MV} ${INSTALL_WRKSRC}/libf2c.a \
|
|
|
|
${STAGE}/trash
|
|
|
|
${MV} ${INSTALL_WRKSRC}/*.a \
|
|
|
|
${INSTALL_WRKSRC}/*.so \
|
|
|
|
${STAGE}/lib
|
2012-05-11 17:05:09 +00:00
|
|
|
${MV} ${INSTALL_WRKSRC}/funstuff \
|
2007-04-21 13:37:39 +00:00
|
|
|
${INSTALL_WRKSRC}/AFNI.*rc \
|
2012-05-11 17:05:09 +00:00
|
|
|
${INSTALL_WRKSRC}/afnigui* \
|
2007-04-21 13:37:39 +00:00
|
|
|
${STAGE}/share
|
|
|
|
${MV} ${INSTALL_WRKSRC}/*.h \
|
|
|
|
${STAGE}/include
|
|
|
|
${MV} ${INSTALL_WRKSRC}/README* \
|
|
|
|
${STAGE}/doc
|
2007-06-21 12:33:48 +00:00
|
|
|
${MV} ${INSTALL_WRKSRC}/abut ${INSTALL_WRKSRC}/afni_abut
|
2012-05-11 17:05:09 +00:00
|
|
|
${MV} ${INSTALL_WRKSRC}/qhull ${INSTALL_WRKSRC}/afni_qhull
|
2007-04-21 13:37:39 +00:00
|
|
|
for binary in `${FILE} ${INSTALL_WRKSRC}/* | fgrep 'ELF' | ${AWK} -F ':' ' { print $$1 }'` ; do \
|
|
|
|
${MV} $${binary} ${STAGE}/bin ; \
|
|
|
|
done
|
|
|
|
${MV} ${INSTALL_WRKSRC}/* \
|
|
|
|
${STAGE}/scripts
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${DATADIR} ${PREFIX}/lib/afni ${PREFIX}/include/afni
|
|
|
|
${INSTALL_DATA} ${STAGE}/lib/* ${PREFIX}/lib/afni
|
|
|
|
${INSTALL_DATA} ${STAGE}/include/* ${PREFIX}/include/afni
|
2012-05-11 17:05:09 +00:00
|
|
|
${CP} -R ${STAGE}/share/* ${DATADIR}
|
2007-04-21 13:37:39 +00:00
|
|
|
${INSTALL_PROGRAM} ${STAGE}/bin/* ${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${STAGE}/scripts/* ${PREFIX}/bin
|
2006-01-25 17:34:35 +00:00
|
|
|
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/TTatlas* ${DATADIR}
|
2008-01-28 16:42:02 +00:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/CA_EZ_v1.5-July3107/* ${DATADIR}
|
|
|
|
${INSTALL_MAN} ${WRKDIR}/afni.1 ${MAN1PREFIX}/man/man1
|
2006-01-25 17:34:35 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2012-05-11 17:05:09 +00:00
|
|
|
${MKDIR} ${DOCSDIR} ${PREFIX}/etc/mri
|
2007-04-21 13:37:39 +00:00
|
|
|
${INSTALL_DATA} ${STAGE}/doc/* ${DOCSDIR}
|
2012-05-11 17:05:09 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/afni.cshrc ${WRKDIR}/afni.profile \
|
|
|
|
${PREFIX}/etc/mri
|
2006-01-25 17:34:35 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2012-05-11 17:05:09 +00:00
|
|
|
@${CAT} ${WRKDIR}/pkg-message
|
2006-01-25 17:34:35 +00:00
|
|
|
|
2006-02-13 10:24:18 +00:00
|
|
|
.include <bsd.port.post.mk>
|