freebsd-ports/math/bamg/Makefile
Ion-Mihai Tetcu 06fb6b7cc2 Fix MASTER_SITES.
PR:		143263
Submitted by:	Stephen Montgomery-Smith (maintainer)
Reported by:	QAT
2010-01-26 18:10:30 +00:00

65 lines
1.7 KiB
Makefile

# New ports collection makefile for: bamg
# Date created: 16 December 2003
# Whom: thierry@pompo.net
#
# $FreeBSD$
#
PORTNAME= bamg
PORTVERSION= 0.68
PORTREVISION= 4
CATEGORIES= math science
MASTER_SITES= http://pauillac.inria.fr/cdrom_a_graver/ftp/bamg/ \
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/
DISTFILES= ${PORTNAME}${EXTRACT_SUFX}
.ifndef(NOPORTDOCS)
DISTFILES+= ${PORTNAME}.ps.gz
EXTRACT_ONLY= ${PORTNAME}${EXTRACT_SUFX}
.endif
MAINTAINER= stephen@missouri.edu
COMMENT= Bidimensional Anisotrope Mesh Generator
RESTRICTED= No resale, contact author for commercial usage
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_XORG= x11
USE_GMAKE= yes
ALL_TARGET= world
INSTALL_TARGET= install-world
BINS= bamg bamg-g cvmsh2 drawbdmesh
EXDIRS= NACA012 quadloop square test
.include <bsd.port.pre.mk>
.pre-configure:
HOSTTYPE= ${UNAME} -s
MAKE_ENV= HOSTTYPE=${${HOSTTYPE}}
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}
@${GZCAT} ${DISTDIR}/${PORTNAME}.ps.gz > ${DOCSDIR}/${PORTNAME}.ps
@${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>