freebsd-ports/science/minc/Makefile
Rong-En Fan 741aa71483 Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.
Specifically, newer autoconf (> 2.13) has different semantic of the
configure target. In short, one should use --build=CONFIGURE_TARGET
instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning
and the old semantic may be removed in later autoconf releases.

To workaround this issue, many ports hack the CONFIGURE_TARGET variable
so that it contains the ``--build='' prefix.

To solve this issue, under the fact that some ports still have
configure script generated by the old autoconf, we use runtime detection
in the do-configure target so that the proper argument can be used.

Changes to Mk/*:
 - Add runtime detection magic in bsd.port.mk
 - Remove CONFIGURE_TARGET hack in various bsd.*.mk
 - USE_GNOME=gnometarget is now an no-op

Changes to individual ports, other than removing the CONFIGURE_TARGET hack:

= pkg-plist changed (due to the ugly CONFIGURE_TARGET prefix in * executables)
  - comms/gnuradio
  - science/abinit
  - science/elmer-fem
  - science/elmer-matc
  - science/elmer-meshgen2d
  - science/elmerfront
  - science/elmerpost

= use x86_64 as ARCH
  - devel/g-wrap

= other changes
  - print/magicfilter
    GNU_CONFIGURE -> HAS_CONFIGURE since it's not generated by autoconf

Total # of ports modified:  1,027
Total # of ports affected: ~7,000 (set GNU_CONFIGURE to yes)

PR:		126524 (obsoletes 52917)
Submitted by:	rafan
Tested on:	two pointyhat 7-amd64 exp runs (by pav)
Approved by:	portmgr (pav)
2008-08-21 06:18:49 +00:00

79 lines
1.9 KiB
Makefile

############################################################################
# New ports collection Makefile for: minc 1.x (Medical Imaging NetCDF)
# Date created: 21 Dec 2005
# Whom: jbacon
#
# $FreeBSD$
#
############################################################################
# http://www.bic.mni.mcgill.ca/software/minc/
# is the ultimate source for MINC, and will always contain the latest
# source release. If this port is not up to date enough for you,
# you can download the latest sources and build manually. On FreeBSD,
# you must configure with the environment variable LDFLAGS set to
# ${LOCALBASE}/lib so that the configure script will find libnetcdf.
# Of course, the netcdf port must be installed first.
PORTNAME= minc
PORTVERSION= 1.4
PORTREVISION= 2
CATEGORIES= science biology
MASTER_SITES= http://www.bic.mni.mcgill.ca/software/distribution/packages/ \
http://www.neuro.mcw.edu/~bacon/Ports/distfiles/
MAINTAINER= bacon@smithers.neuro.mcw.edu
COMMENT= Medical Imaging NetCDF
LIB_DEPENDS= netcdf.4:${PORTSDIR}/science/netcdf
USE_AUTOTOOLS= libtool:15
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
CONFIGURE_ARGS= --enable-static=yes --enable-shared=yes
CONFLICTS= minc-2*
MAN1= dcm2mnc.1 \
ecattominc.1 \
invert_raw_image.1 \
minc_modify_header.1 \
mincaverage.1 \
minccalc.1 \
mincconcat.1 \
minccopy.1 \
mincdiff.1 \
mincedit.1 \
mincexpand.1 \
mincextract.1 \
mincheader.1 \
mincinfo.1 \
minclookup.1 \
mincmakescalar.1 \
mincmakevector.1 \
mincmath.1 \
mincpik.1 \
mincresample.1 \
mincreshape.1 \
mincstats.1 \
minctoecat.1 \
minctoraw.1 \
mincview.1 \
mincwindow.1 \
mnc2nii.1 \
nii2mnc.1 \
rawtominc.1 \
transformtags.1 \
upet2mnc.1 \
voxeltoworld.1 \
xfmconcat.1 \
xfminvert.1
MAN3= ParseArgv.3
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>