freebsd-ports/science/minc2/Makefile
Bryan Drewery 5b5a90256d Update USE_GITHUB so it does not require GH_COMMIT.
Using this new scheme allows only setting the _tag_ or _commit hash_ in
GH_TAGNAME and not having to know the hash for a tag.  This scheme will
download a tarball that has a different checksum than before due to a changed
directory name for extraction.

The following MASTER_SITES are provided to retain the old checksum and
directory structure (that require GH_COMMIT):
  GH -> GHL
  GITHUB -> GITHUB_LEGACY

Differential Revision:	https://reviews.freebsd.org/D748
Submitted by:	amdmi3
Reviewed by:	mat, swills, antoine, bdrewery
With hat:	portmgr
2015-03-19 16:44:57 +00:00

46 lines
1.1 KiB
Makefile

# Created by: jbacon
# $FreeBSD$
PORTNAME= minc
PORTVERSION= 2.2.00
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= science biology
MASTER_SITES= GHL
PKGNAMESUFFIX= 2
MAINTAINER= ports@FreeBSD.org
COMMENT= Medical Imaging NetCDF
LICENSE= MIT
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_AUTOTOOLS= libtoolize aclocal autoheader automake autoconf
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>