1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/cad/sceptre/Makefile
Maho Nakata 1c3e8f43d7 Update to 2012.061.
This also removes one of the three remaining uses of lang/gcc34.

PR:		166565
Submitted by:	bf@
Feature safe:	yes
2012-04-02 03:33:09 +00:00

68 lines
1.6 KiB
Makefile

# New ports collection makefile for: sceptre
# Date created: 11 February 2001
# Whom: grog
#
# $FreeBSD$
#
PORTNAME= sceptre
PORTVERSION= 2012.061
CATEGORIES= cad
MASTER_SITES= http://alpha.fh-friedberg.de/iem/fileadmin/user_upload/novender/sceptre/
MAINTAINER= maho@FreeBSD.org
COMMENT= General-purpose circuit analysis program
LICENSE= GPLv2
USE_FORTRAN= yes
MAKE_JOBS_UNSAFE= yes
NO_WRKSUBDIR= yes
.include <bsd.port.pre.mk>
FFLAGS+= -fno-automatic
.if !defined(NOPORTDOCS)
PORTDOCS= doc_en.pdf doc_ger.pdf install.pdf
.endif
post-patch:
@${REINPLACE_CMD} -E \
-e '/^(FC|FFLAGS)[[:blank:]]*=/d' \
-e 's!/usr/local!${PREFIX}!' \
-e '/install.*BINDIR/{ s/install -s.*755/${INSTALL_PROGRAM}/ ; \
s/install -m.*755/${INSTALL_SCRIPT}/ ; }' \
-e '/install.*(ETCDIR|LIBDIR)/{ /install -d/d ; \
s/install.*644/${INSTALL_DATA}/ ; }' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -E \
-e '/^(FC|FFLAGS)[[:blank:]]*=/d' \
-e 's!ar rv!${AR} ${ARFLAGS}!' \
-e 's!ranlib!${RANLIB}!' \
${WRKSRC}/x[123]/Makefile
@${REINPLACE_CMD} \
-e 's!/usr/local!${PREFIX}!' \
${WRKSRC}/bin/ngp \
${WRKSRC}/bin/sceptre.inst
@${REINPLACE_CMD} -E \
-e 's!/usr/local!${PREFIX}!' \
-e "s!^(FC=')(.*)(')!\1${FC} ${FFLAGS}\3!" \
${WRKSRC}/bin/sceptre
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/install.pdf ${DOCSDIR}
cd ${WRKSRC}/doc ; ${INSTALL_DATA} ${PORTDOCS:Mdoc_*} ${DOCSDIR}
.endif
.if !defined(BATCH)
check test: install
cd ${WRKSRC}/samples; for s in ${WRKSRC}/samples/*.d ; \
do ${WRKSRC}/bin/sceptre $${s%.d} ; done
.endif
.include <bsd.port.post.mk>