# 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 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