From owner-svn-ports-head@FreeBSD.ORG Wed Dec 18 16:23:09 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AE9003CF; Wed, 18 Dec 2013 16:23:09 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 99EA41CD1; Wed, 18 Dec 2013 16:23:09 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBIGN9XI070610; Wed, 18 Dec 2013 16:23:09 GMT (envelope-from tijl@svn.freebsd.org) Received: (from tijl@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBIGN943070608; Wed, 18 Dec 2013 16:23:09 GMT (envelope-from tijl@svn.freebsd.org) Message-Id: <201312181623.rBIGN943070608@svn.freebsd.org> From: Tijl Coosemans Date: Wed, 18 Dec 2013 16:23:09 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r336845 - in head/biology/psi88: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Dec 2013 16:23:09 -0000 Author: tijl Date: Wed Dec 18 16:23:08 2013 New Revision: 336845 URL: http://svnweb.freebsd.org/changeset/ports/336845 Log: USES=fortran, staging, miscellaneous cleanups. Modified: head/biology/psi88/Makefile (contents, props changed) head/biology/psi88/files/patch-aa (contents, props changed) Modified: head/biology/psi88/Makefile ============================================================================== --- head/biology/psi88/Makefile Wed Dec 18 16:05:42 2013 (r336844) +++ head/biology/psi88/Makefile Wed Dec 18 16:23:08 2013 (r336845) @@ -12,41 +12,30 @@ EXTRACT_SUFX= .tar.Z MAINTAINER= ports@FreeBSD.org COMMENT= Plotting wavefunctions (molecular orbitals) in 3D -PLIST_FILES+= bin/PSI1 bin/PSICON bin/PSI2CT bin/PSI2HP bin/PSI2PS bin/PSI2 \ +USES= fortran +MAKE_ARGS= BIN=${STAGEDIR}${PREFIX}/bin +PLIST_FILES= bin/PSI1 bin/PSICON bin/PSI2CT bin/PSI2HP bin/PSI2PS bin/PSI2 \ bin/PREPLOT bin/preplot bin/rpsi1 bin/rpsi2 bin/rpsicon PORTDOCS= README psi88.doc PORTEXAMPLES= * OPTIONS_DEFINE= DOCS EXAMPLES -NO_STAGE= yes -.include - -USE_FORTRAN= yes - -pre-patch: - ${MV} ${WRKSRC}/src/makefile ${WRKSRC}/src/Makefile - post-patch: - @${REINPLACE_CMD} -e 's+%%FC%%+${FC}+g' -e 's+%%FFLAGS%%+${FFLAGS}+g' -e 's+%%LOCALBASE%%+${LOCALBASE}+g' -e 's+%%PREFIX%%+${PREFIX}+g' ${WRKSRC}/src/Makefile - -pre-build: - ${CP} ${FILESDIR}/Makefile.top ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e 's/f77/$${FC}/' -e 's/LFLAGS/LDFLAGS/' \ + ${WRKSRC}/src/makefile + @${CP} ${FILESDIR}/Makefile.top ${WRKSRC}/Makefile post-install: - ${LN} -s ${PREFIX}/bin/PSI2PS ${PREFIX}/bin/PSI2 - ${INSTALL_SCRIPT} ${WRKDIR}/${DISTNAME}/unix/preplot ${PREFIX}/bin/ - ${INSTALL_SCRIPT} ${WRKDIR}/${DISTNAME}/unix/rpsi1 ${PREFIX}/bin/ - ${INSTALL_SCRIPT} ${WRKDIR}/${DISTNAME}/unix/rpsi2 ${PREFIX}/bin/ - ${INSTALL_SCRIPT} ${WRKDIR}/${DISTNAME}/unix/rpsicon ${PREFIX}/bin/ -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/README ${DOCSDIR} - ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/psi88.doc ${DOCSDIR} -.endif -.if ${PORT_OPTIONS:MEXAMPLES} - @${MKDIR} ${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/examples/* ${EXAMPLESDIR} -.endif + ${LN} -s PSI2PS ${STAGEDIR}${PREFIX}/bin/PSI2 + ${INSTALL_SCRIPT} ${WRKSRC}/unix/preplot ${STAGEDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/unix/rpsi1 ${STAGEDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/unix/rpsi2 ${STAGEDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/unix/rpsicon ${STAGEDIR}${PREFIX}/bin + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/psi88.doc ${STAGEDIR}${DOCSDIR} + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} -.include +.include Modified: head/biology/psi88/files/patch-aa ============================================================================== --- head/biology/psi88/files/patch-aa Wed Dec 18 16:05:42 2013 (r336844) +++ head/biology/psi88/files/patch-aa Wed Dec 18 16:23:08 2013 (r336845) @@ -1,42 +1,28 @@ ---- src/Makefile.orig Sat May 25 04:04:15 1991 -+++ src/Makefile Tue Jan 9 11:30:09 2007 -@@ -27,11 +27,11 @@ - # level and when it is working, increase the optimization level. So far - # optimization has never caused problems with this program. +--- src/makefile.orig ++++ src/makefile +@@ -29,9 +29,6 @@ # --# SGI 4D series flags -+# FreeBSD + # SGI 4D series flags # -f77 = f77 -FFLAGS = -w0 -O4 -G 64 -LFLAGS = -lfastm -lfpe -s -+FC = %%FC%% -+FFLAGS = %%FFLAGS%% -+#LFLAGS = -lfastm -lfpe -s # # SUN Sparc series flags version 1.3 or later compiler # -@@ -60,12 +60,12 @@ +@@ -60,7 +57,6 @@ # Place your G88/G90 util library definition here if you wish to # compile chk2psi # -G90LIB = /usr/people/frisch/g90/libg90.a -+#G90LIB = /usr/people/frisch/g90/libg90.a # # define the directory where the executables will reside # usually /usr/local/bin or ~/bin to put it in your own directory - # --BIN = /usr/local/bin -+BIN = %%PREFIX%%/bin - # - #**** Add PSI2 to this and the install lists if you have a user defined - # Plotting library to plot to the screen, also remove any which you -@@ -84,13 +84,15 @@ +@@ -84,13 +80,13 @@ ####################################################################### # - all: PSI1 PSICON PSI2CT PSI2HP PSI2PS PREPLOT chk2psi $(EXTRAS) -+# all: PSI1 PSICON PSI2CT PSI2HP PSI2PS PREPLOT chk2psi $(EXTRAS) + all: PSI1 PSICON PSI2CT PSI2HP PSI2PS PREPLOT $(EXTRAS) # @@ -44,88 +30,20 @@ # depending on where you decide to put it (/usr/local/bin for instance) # -install: PSI1 PSICON PSI2CT PSI2HP PSI2PS PREPLOT chk2psi $(EXTRAS) -+#install: PSI1 PSICON PSI2CT PSI2HP PSI2PS PREPLOT chk2psi $(EXTRAS) +install: PSI1 PSICON PSI2CT PSI2HP PSI2PS PREPLOT $(EXTRAS) mv PSI1 $(BIN) chmod +rx $(BIN)/PSI1 mv PSICON $(BIN) -@@ -99,71 +101,71 @@ +@@ -99,8 +95,6 @@ chmod +rx $(BIN)/PREPLOT mv PSI2* $(BIN) chmod +rx $(BIN)/PSI2* - mv chk2psi $(BIN) - chmod +rx $(BIN)/chk2psi -+# mv chk2psi $(BIN) -+# chmod +rx $(BIN)/chk2psi # # This is the Density matrix generation program (PSI1/88) - # - PSI1: psi1.f -- f77 $(FFLAGS) psi1.f -o PSI1 $(LFLAGS) -+ %%FC%% $(FFLAGS) psi1.f -o PSI1 $(LFLAGS) - - # - # This is the contour generation program (PSICON/88) - # - PSICON: psicon.f -- f77 $(FFLAGS) psicon.f -o PSICON $(LFLAGS) -+ %%FC%% $(FFLAGS) psicon.f -o PSICON $(LFLAGS) - - # - # This is for the plotting routine (PSI2/88) to a user defined graphics lib - # - PSI2: psi2.f -- f77 $(FFLAGS) psi2.f -o PSI2 $(GRLIBS) $(LFLAGS) -+ %%FC%% $(FFLAGS) psi2.f -o PSI2 $(GRLIBS) $(LFLAGS) - - # - # This is for the plotting routine set up to plot to a GKS device - # gksplot.f is a gks library that SHOULD work on any machine..... - # - PSI2GKS: psi2.f gksplot.f -- f77 $(FFLAGS) psi2.f gksplot.f -o PSI2GKS $(LFLAGS) $(GKSLIB) -+ %%FC%% $(FFLAGS) psi2.f gksplot.f -o PSI2GKS $(LFLAGS) $(GKSLIB) - - # - # This is for the plotting routine set up to plot to a ChemText Metafile - # - PSI2CT: psi2.f ctplot.f -- f77 $(FFLAGS) psi2.f ctplot.f -o PSI2CT $(LFLAGS) -+ %%FC%% $(FFLAGS) psi2.f ctplot.f -o PSI2CT $(LFLAGS) - - # - # This is for the plotting routine set up to plot to a PostScript device - # psplot.f is a postscript library that SHOULD work on any machine..... - # - PSI2PS: psi2.f psplot.f -- f77 $(FFLAGS) psi2.f psplot.f -o PSI2PS $(LFLAGS) -+ %%FC%% $(FFLAGS) psi2.f psplot.f -o PSI2PS $(LFLAGS) - - # - # This is for the plotting routine set up to plot to a HP plotter - # hpplot.f is a HP plotter library that SHOULD work on any machine..... - # - PSI2HP: psi2.f hpplot.f -- f77 $(FFLAGS) psi2.f hpplot.f -o PSI2HP $(LFLAGS) -+ %%FC%% $(FFLAGS) psi2.f hpplot.f -o PSI2HP $(LFLAGS) - - # - # This is a program to convert MOPAC .GPT files (using the graph keyword) - # to PSI/88 input files. - # - PREPLOT: preplot.f -- f77 $(FFLAGS) preplot.f -o PREPLOT $(LFLAGS) -+ %%FC%% $(FFLAGS) preplot.f -o PREPLOT $(LFLAGS) - - # - # This is a program to read checkpoint files - - # - chk2psi: chk2psi.f $(G90LIB) -- f77 $(FFLAGS) chk2psi.f $(G90LIB) -o chk2psi $(LFLAGS) -+ %%FC%% $(FFLAGS) chk2psi.f $(G90LIB) -o chk2psi $(LFLAGS) - - # +@@ -164,6 +158,6 @@ # Clean up when done # clean :