1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/cad/feappv/Makefile
Gerald Pfeifer 04d6f52202 Bump PORTREVISIONs for ports depending on the canonical version of GCC and
lang/gcc which have moved from GCC 4.9.4 to GCC 5.4 (at least under some
circumstances such as versions of FreeBSD or platforms).

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using using Mk/bsd.octave.mk which in turn has USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++14-lang,
   c++11-lang, c++0x, c11, or gcc-c++11-lib.

PR:		216707
2017-04-01 15:23:30 +00:00

51 lines
1.3 KiB
Makefile

# Created by: Pedro F. Giffuni <giffunip@asme.org>
# $FreeBSD$
PORTNAME= feappv
PORTVERSION= 3.1
PORTREVISION= 7
CATEGORIES= cad science
MASTER_SITES= http://www.ce.berkeley.edu/projects/feap/feappv/
DISTFILES= ${PORTNAME}${PORTVERSION:S/.//}${EXTRACT_SUFX} ${PORTDOCS}
DIST_SUBDIR= ${PORTNAME}${PORTVERSION:S/.//}
EXTRACT_ONLY= ${PORTNAME}${PORTVERSION:S/.//}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Finite element analysis program (personal version)
USES= fortran gmake localbase:ldflags zip
USE_XORG= x11
MAKEFILE= makefile
MAKE_ENV= FEAPPVHOME3_1="${WRKSRC}"
ALL_TARGET= install
WRKSRC= ${WRKDIR}/ver${PORTVERSION:S/.//}
LDFLAGS+= -lX11 -lm
PLIST_FILES= bin/feappv lib/libfeappv.a
PORTDOCS= manual.pdf
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e \
's| make | $$(MAKE) |' ${WRKSRC}/makefile
@${REINPLACE_CMD} -e \
'/^FF /s|=.*|= ${FC}| ; \
/^CC /s|=.*|= ${CC}| ; \
/^FFOPTFLAG /s|=.*|= ${FFLAGS}| ; \
/^CCOPTFLAG /s|=.*|= ${CFLAGS}| ; \
/^LDOPTIONS /s|=.*|= ${LDFLAGS}| ; \
s|Feappv.a|libfeappv.a|' ${WRKSRC}/makefile.in
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/main/feappv ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/libfeappv.a ${STAGEDIR}${PREFIX}/lib
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${_DISTDIR}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>