54a0b86543
in bsd.autotools.mk essentially makes this a no-op given that all the old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in exactly the same way as USE_AUTOTOOLS itself. Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME team -- all GNOME 2.12.x ports use it. Preliminary documentation can be found at: http://people.FreeBSD.org/~ade/autotools.txt which is in the process of being SGMLized before introduction into the Porters Handbook. Light blue touch-paper. Run.
61 lines
1.5 KiB
Makefile
61 lines
1.5 KiB
Makefile
# New ports collection makefile for: med
|
|
# Date created: Thu Jun 26 2003
|
|
# Whom: thierry@pompo.net
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= med
|
|
PORTVERSION= 2.2.2
|
|
CATEGORIES= french cad converters
|
|
MASTER_SITES= http://www.code-aster.org/FICHIERS/
|
|
DISTNAME= ${PORTNAME}_fichier${PORTVERSION}.src
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Modélisation et Échanges de Données
|
|
|
|
BUILD_DEPENDS= wish${TK_VER}:${PORTSDIR}/x11-toolkits/tk${SHORT_TK_VER}
|
|
LIB_DEPENDS= hdf5.0:${PORTSDIR}/science/hdf5
|
|
|
|
TK_VER?= 8.4
|
|
SHORT_TK_VER= ${TK_VER:S/.//}
|
|
|
|
#CONFIGURE_ARGS= --disable-shared
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
CONFIGURE_ENV= HDF5HOME=${LOCALBASE} CPPFLAGS="${PTHREAD_CFLAGS}" \
|
|
LDFLAGS="${PTHREAD_LIBS}"
|
|
USE_AUTOTOOLS= libtool:15
|
|
USE_GMAKE= yes
|
|
INSTALLS_SHLIB= yes
|
|
USE_REINPLACE= yes
|
|
|
|
DOC2FIX= . gif html jpg png tests
|
|
TST2FIX= c f
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !${OSVERSION} < 500039
|
|
F77?= f77
|
|
.endif
|
|
FFLAGS?= -O2
|
|
|
|
pre-configure:
|
|
.if defined(NOPORTDOCS)
|
|
@${REINPLACE_CMD} -e 's|SUBDIRS = src tests tools doc|SUBDIRS = src tests tools|' \
|
|
${WRKSRC}/Makefile.in
|
|
.endif
|
|
.for dd in ${DOC2FIX}
|
|
@${REINPLACE_CMD} -e 's|docdir = $$(datadir)/doc|docdir = $$(datadir)/doc/@PACKAGE@|' \
|
|
${WRKSRC}/doc/${dd}/Makefile.in
|
|
.endfor
|
|
.for dd in ${TST2FIX}
|
|
@${REINPLACE_CMD} -e 's|test${dd}dir = $$(bindir)/test|test${dd}dir = ${EXAMPLESDIR}/test|' \
|
|
${WRKSRC}/tests/${dd}/Makefile.in
|
|
.endfor
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|