freebsd-ports/net/coda6_server/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

97 lines
2.1 KiB
Makefile

# New ports collection makefile for: coda-server-6
# Date created: 9 september 2003
# Whom: Tim Robbins
# $FreeBSD$
PORTNAME= coda
PORTVERSION= 6.9.3
PORTREVISION= 2
CATEGORIES= net
# as of 5 Oct 2006 the archive is not present on ftp.wu-wien.ac.at
# but maybe it'll appear there soon
MASTER_SITES= ftp://ftp.coda.cs.cmu.edu/pub/coda/src/ \
ftp://ftp.planetmirror.com/pub/coda/src/ \
ftp://ftp.nctu.edu.tw/mirror/Coda/src/ \
ftp://ftp.wu-wien.ac.at/pub/systems/coda/src/
PKGNAMESUFFIX= -${CODA_SUITE}
MAINTAINER= clsung@FreeBSD.org
COMMENT= Server programs for a replicated high-performance network file system
LIB_DEPENDS= lwp.2:${PORTSDIR}/devel/lwp \
rpc2.9:${PORTSDIR}/devel/rpc2 \
rvmlwp.3:${PORTSDIR}/devel/rvm
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-${CODA_SUITE}
CODA_SUITE?= server
.if ${CODA_SUITE} == server
MAN5= backuplogs.5 \
dumpfile.5 \
dumplist.5 \
maxgroupid.5 \
passwd.coda.5 \
servers.5 \
vicetab.5 \
volumelist.5 \
vrdb.5
MAN8= auth2.8 \
backup.8 \
bldvldb.sh.8 \
codasrv.8 \
createvol_rep.8 \
initpw.8 \
merge.8 \
norton.8 \
pdbtool.8 \
purgevol_rep.8 \
readdump.8 \
startserver.8 \
updateclnt.8 \
updatesrv.8 \
vice-setup.8 \
volutil.8
.else
MAN1= au.1 \
cfs.1 \
clog.1 \
cmon.1 \
coda_replay.1 \
cpasswd.1 \
ctokens.1 \
cunlog.1 \
hoard.1 \
mkcodabf.1 \
repair.1 \
spy.1
MAN8= venus-setup.8 \
venus.8 \
volmunge.8 \
vutil.8
.endif
.include <bsd.port.pre.mk>
.if ${CODA_SUITE} == client
.if ${OSVERSION} < 501106
IGNORE= lacks kernel support on this version of FreeBSD
.endif
# this needs testing with the new version (6.1.1)
#.if ${OSVERSION} >= 600000
#IGNORE= makes a kernel panic on this version of FreeBSD
#.endif
pre-everything::
@${ECHO_CMD} ""
@${ECHO_CMD} "WARNING:"
@${ECHO_CMD} "This version ${PORTVERSION} of the coda client has not been tested at all under FreeBSD."
@${ECHO_CMD} "Previous version 6.0.7 was known to cause a kernel panic."
@${ECHO_CMD} "If you make some tests, please send the results to ports@FreeBSD.org"
@${ECHO_CMD} ""
.endif
.include <bsd.port.post.mk>