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
|
2008-06-13 08:00:45 +00:00
|
|
|
PORTREVISION= 4
|
2004-01-02 21:54:30 +00:00
|
|
|
CATEGORIES= math science
|
2010-01-26 18:10:30 +00:00
|
|
|
MASTER_SITES= http://pauillac.inria.fr/cdrom_a_graver/ftp/bamg/ \
|
|
|
|
http://pauillac.inria.fr/cdrom/ftp/bamg/ \
|
2006-02-07 23:13:15 +00:00
|
|
|
http://www-rocq1.inria.fr/gamma/cdrom/ftp/bamg/ \
|
|
|
|
http://ftp.tuniv.szczecin.pl/pub/Linux/Scilab/INRIA/Gamma/bamg/
|
2008-06-13 08:00:45 +00:00
|
|
|
DISTFILES= ${PORTNAME}${EXTRACT_SUFX}
|
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
DISTFILES+= ${PORTNAME}.ps.gz
|
2005-02-02 08:28:15 +00:00
|
|
|
EXTRACT_ONLY= ${PORTNAME}${EXTRACT_SUFX}
|
2004-01-02 21:54:30 +00:00
|
|
|
.endif
|
|
|
|
|
2009-04-05 20:50:49 +00:00
|
|
|
MAINTAINER= stephen@missouri.edu
|
2004-01-02 21:54:30 +00:00
|
|
|
COMMENT= Bidimensional Anisotrope Mesh Generator
|
|
|
|
|
|
|
|
RESTRICTED= No resale, contact author for commercial usage
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
USE_XORG= x11
|
2004-01-02 21:54:30 +00:00
|
|
|
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>
|
|
|
|
|
2008-06-13 08:00:45 +00:00
|
|
|
.pre-configure:
|
|
|
|
HOSTTYPE= ${UNAME} -s
|
2008-07-25 12:24:09 +00:00
|
|
|
MAKE_ENV= HOSTTYPE=${${HOSTTYPE}}
|
2004-01-02 21:54:30 +00:00
|
|
|
|
|
|
|
post-patch:
|
2008-06-13 08:00:45 +00:00
|
|
|
@${MV} ${WRKSRC}/FLAG.linux ${WRKSRC}/FLAG.${${HOSTTYPE}}
|
2004-01-02 21:54:30 +00:00
|
|
|
@${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}
|
2008-06-13 08:00:45 +00:00
|
|
|
@${GZCAT} ${DISTDIR}/${PORTNAME}.ps.gz > ${DOCSDIR}/${PORTNAME}.ps
|
2004-01-02 21:54:30 +00:00
|
|
|
@${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>
|