2004-01-02 21:54:30 +00:00
|
|
|
# New ports collection makefile for: bamg
|
|
|
|
# Date created: 16 December 2003
|
|
|
|
# Whom: thierry@pompo.net
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= bamg
|
|
|
|
PORTVERSION= 0.68
|
2007-05-19 20:36:56 +00:00
|
|
|
PORTREVISION= 2
|
2004-01-02 21:54:30 +00:00
|
|
|
CATEGORIES= math science
|
2006-02-07 23:13:15 +00:00
|
|
|
MASTER_SITES= http://pauillac.inria.fr/cdrom/ftp/bamg/ \
|
|
|
|
http://www-rocq1.inria.fr/gamma/cdrom/ftp/bamg/ \
|
|
|
|
http://ftp.tuniv.szczecin.pl/pub/Linux/Scilab/INRIA/Gamma/bamg/
|
2004-01-02 21:54:30 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2005-02-02 08:28:15 +00:00
|
|
|
DISTFILES= ${PORTNAME}${EXTRACT_SUFX} ${PORTNAME}.ps.gz
|
|
|
|
EXTRACT_ONLY= ${PORTNAME}${EXTRACT_SUFX}
|
2004-01-02 21:54:30 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
COMMENT= Bidimensional Anisotrope Mesh Generator
|
|
|
|
|
|
|
|
RESTRICTED= No resale, contact author for commercial usage
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
|
|
|
USE_XLIB= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
|
|
|
ALL_TARGET= world
|
|
|
|
INSTALL_TARGET= install-world
|
|
|
|
|
|
|
|
MAKE_ENV= CXX=${CXX} HOSTTYPE=${HOSTTYPE}
|
|
|
|
|
|
|
|
BINS= bamg bamg-g cvmsh2 drawbdmesh
|
|
|
|
EXDIRS= NACA012 quadloop square test
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
HOSTTYPE!= ${UNAME} -s
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${MV} ${WRKSRC}/FLAG.linux ${WRKSRC}/FLAG.${HOSTTYPE}
|
|
|
|
@${MV} ${WRKSRC}/FLAG.linux.orig ${WRKSRC}/FLAG.linux
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.for bin in ${BINS}
|
|
|
|
@${STRIP_CMD} ${PREFIX}/bin/${bin}
|
|
|
|
.endfor
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${DISTDIR}/bamg.ps.gz ${DOCSDIR}
|
|
|
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
|
|
|
.for exdir in ${EXDIRS}
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}/${exdir}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/examples/${exdir}/* ${EXAMPLESDIR}/${exdir}
|
|
|
|
.endfor
|
|
|
|
@${FIND} ${EXAMPLESDIR} \( -name "*.pl" -or -name "*.sh" \) -exec ${CHMOD} a+x {} \;
|
|
|
|
@${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|