aboutsummaryrefslogtreecommitdiffstats
path: root/science/minc2/Makefile
blob: ca729d91dec7dc0cd5a8839dcfe826ee3b18dc26 (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
# Created by: jbacon
# $FreeBSD$

PORTNAME=   minc
PORTVERSION=    2.2.00
PORTEPOCH=  1
CATEGORIES= science biology
MASTER_SITES=   GH
PKGNAMESUFFIX=  2

MAINTAINER= ports@FreeBSD.org
COMMENT=    Medical Imaging NetCDF

LICENSE=    BSD

LIB_DEPENDS=    libhdf5.so:${PORTSDIR}/science/hdf5 \
        libnetcdf.so:${PORTSDIR}/science/netcdf
RUN_DEPENDS=    bash:${PORTSDIR}/shells/bash

USE_GITHUB= yes
GH_ACCOUNT= BIC-MNI
GH_TAGNAME= release-${PORTVERSION}
GH_COMMIT=  6f2f5b9

USES=       bison gmake libtool perl5 shebangfix
SHEBANG_FILES=  progs/mincview/mincview
USE_PERL5=  build
USE_AUTOTOOLS=  libtoolize aclocal autoheader automake autoconf
LIBTOOLIZE_ARGS=--copy --force
ACLOCAL_ARGS=   -I m4 --automake-acdir=${ACLOCAL_DIR}
AUTOMAKE_ARGS=  --add-missing --copy --force-missing
CONFIGURE_ARGS= --enable-shared=yes --enable-static=yes
INSTALL_TARGET= install-strip
USE_LDCONFIG=   yes

CFLAGS+=    -Wno-error=return-type
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

CONFLICTS=  minc-1* zh-tk-[0-9]*

pre-patch:
    @${RM} -f ${WRKSRC}/ac_config_aux/*
    @${RM} -f ${WRKSRC}/progs/minccalc/gram.[ch]
    @${RM} -f ${WRKSRC}/progs/mincgen/ncgentab.[ch]

.include <bsd.port.mk>