blob: 6953e9cd25bad8e6e0dd137aaba564150c3c5adf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
|
############################################################################
# Ports collection Makefile for: afni
# Date created: 11 Jan 2005
# Whom: bacon@smithers.neuro.mcw.edu
#
# $FreeBSD$
#
############################################################################
# www.neuro.mcw.edu has the latest source distribution from which this port
# is built. It will be updated as time permits.
#
# 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,
# you can download the latest sources and build manually using
# Makefile.BSD, which is included in the source distribution.
PORTNAME= afni
PORTVERSION= 2006.06.30.1332
CATEGORIES= science biology graphics
MASTER_SITES= http://www.neuro.mcw.edu/~bacon/Ports/distfiles/AFNI/${PORTVERSION}/ \
http://afni.nimh.nih.gov/pub/dist/tgz/
DISTFILES= afni_src.tgz afni_doc.tgz afni.1 \
TTatlas+tlrc.BRIK.gz TTatlas+tlrc.HEAD CA_EZ_v1.3c-May0806.tgz
DIST_SUBDIR= AFNI-${PORTVERSION}
EXTRACT_ONLY= afni_src.tgz afni_doc.tgz CA_EZ_v1.3c-May0806.tgz
MAINTAINER= bacon@smithers.neuro.mcw.edu
COMMENT= Advanced Functional Neuro Imaging
RUN_DEPENDS= cjpeg:${PORTSDIR}/graphics/jpeg \
mpeg_encode:${PORTSDIR}/multimedia/mpeg_encode \
whirlgif:${PORTSDIR}/graphics/whirlgif \
ppmtogif:${PORTSDIR}/graphics/netpbm
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
BROKEN= Does not compile on sparc64: "undefined reference to `_mcount'"
.endif
USE_GETTEXT= yes
USE_GMAKE= yes
USE_ICONV= yes
USE_MOTIF= yes
MAKE_ENV= CC="${CC}"
WRKSRC= ${WRKDIR}/afni_src
MAKEFILE= Makefile.FreeBSD_PORT
ALL_TARGET= vastness suma
###########################################################################
# Install parameters
MAN1= afni.1
# these need not to be stripped
SCRIPTS=\
@2dwarper \
@4Daverage \
@AfniOrient2RAImap \
@AfniOrientSign \
@Align_Centers \
@Center_Distance \
@CheckForAfniDset \
@CommandGlobb \
@DoPerRoi.py \
@DTI_studio_reposition \
@FromRAI \
@GetAfniOrient \
@GetAfniPrefix \
@GetAfniView \
@IsoMasks \
@NoExt \
@Purify_1D \
@RenamePanga \
@SUMA_AlignToExperiment \
@SUMA_Make_Spec_Caret \
@SUMA_Make_Spec_FS \
@SUMA_Make_Spec_SF \
@ToRAI \
@UpdateAfni \
@VolCenter \
@align_partial_oblique \
@auto_align \
@auto_tlrc \
@clip_volume \
@fix_FSsphere \
@make_stim_file \
@np \
@parse_afni_name \
@parse_name \
afni_base.py \
3dMax \
suma_change_spec
PLIST_FILES+= ${SCRIPTS:S|^|bin/|}
INSTALL_WRKSRC= ${WRKSRC}/BSD
INSTALL_TEMP= ${WRKSRC}/Backup.BSD
post-extract:
${CP} -f ${FILESDIR}/Makefile.FreeBSD_PORT ${WRKSRC}
${CP} ${DISTDIR}/${DIST_SUBDIR}/afni.1 ${WRKDIR}
${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKDIR}/afni.1
@${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/Makefile.FreeBSD_PORT
do-install:
${MKDIR} ${DATADIR} ${INSTALL_TEMP} \
${PREFIX}/lib/afni ${PREFIX}/include/afni
@${MV} ${INSTALL_WRKSRC}/libf2c.a ${INSTALL_TEMP}
${INSTALL_DATA} ${INSTALL_WRKSRC}/*.so ${INSTALL_WRKSRC}/*.a \
${PREFIX}/lib/afni
${INSTALL_DATA} ${INSTALL_WRKSRC}/*.h \
${PREFIX}/include/afni
${INSTALL_DATA} ${INSTALL_WRKSRC}/*.jpg ${INSTALL_WRKSRC}/*.txt \
${DATADIR}
@${MV} ${INSTALL_WRKSRC}/*.so \
${INSTALL_WRKSRC}/*.a \
${INSTALL_WRKSRC}/*.h \
${INSTALL_WRKSRC}/*.jpg \
${INSTALL_WRKSRC}/*.txt \
${INSTALL_WRKSRC}/cjpeg \
${INSTALL_WRKSRC}/djpeg \
${INSTALL_WRKSRC}/mpeg_encode \
${INSTALL_WRKSRC}/whirlgif \
${INSTALL_TEMP}
.for f in ${SCRIPTS}
${INSTALL_SCRIPT} ${INSTALL_WRKSRC}/${f} ${PREFIX}/bin
@${MV} ${INSTALL_WRKSRC}/${f} ${INSTALL_TEMP}
.endfor
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/* ${PREFIX}/bin
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/TTatlas* ${DATADIR}
${INSTALL_DATA} ${WRKDIR}/CA_EZ_v1.3c-May0806/* ${DATADIR}
${INSTALL_MAN} ${WRKDIR}/afni.1 ${PREFIX}/man/man1
@${MV} ${INSTALL_TEMP}/* ${INSTALL_WRKSRC}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/afni_doc/* ${DOCSDIR}
.endif
post-install:
@${CAT} pkg-message
.include <bsd.port.post.mk>
|