diff options
author | dholland <dholland@pkgsrc.org> | 2015-12-26 22:36:07 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2015-12-26 22:36:07 +0000 |
commit | f312d36c80f26ae8a22c4dc1a68f9137963a6035 (patch) | |
tree | f5e3c5102f7058581c834df0d477c222f1c271c2 /biology | |
parent | 2b74d6b85de288f78644a0c208cace6654b9ca1f (diff) | |
download | pkgsrc-f312d36c80f26ae8a22c4dc1a68f9137963a6035.tar.gz |
Fix build.
1. Compile C code with the C compiler, not the fortran compiler.
2. Use f2c, not g95, as the fortran compiler.
XXX This package builds only with f2c, not g95.
XXX There does not appear to be any way to specify this other
XXX than by abusively setting PKGSRC_FORTRAN. So do that for now.
Diffstat (limited to 'biology')
-rw-r--r-- | biology/mopac/Makefile | 15 | ||||
-rw-r--r-- | biology/mopac/files/Makefile | 2 |
2 files changed, 7 insertions, 10 deletions
diff --git a/biology/mopac/Makefile b/biology/mopac/Makefile index bfc83e8aed6..fe6b3917a1b 100644 --- a/biology/mopac/Makefile +++ b/biology/mopac/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2015/06/27 07:08:13 dholland Exp $ +# $NetBSD: Makefile,v 1.9 2015/12/26 22:36:07 dholland Exp $ # DISTNAME= mopac7 @@ -20,15 +20,14 @@ COMMENT= Molecular energy calculation program WRKSRC= ${WRKDIR}/mopac7 BUILD_TARGET= MOPAC7 USE_TOOLS+= gmake pax -USE_LANGUAGES= fortran77 -PKG_FC= f2c-f77 +USE_LANGUAGES= c fortran77 INSTALLATION_DIRS= bin share/mopac7/sample -.include "../../mk/compiler.mk" -.if !empty(PKGSRC_COMPILER:Mclang) || !empty(PKGSRC_COMPILER:Mgcc) -ALL_ENV+= PKGSRC_FFLAGS=-freal-loops -.endif +# XXX This package builds only with f2c, not g95. +# XXX There does not appear to be any way to specify this other +# XXX than by abusively setting PKGSRC_FORTRAN. +PKGSRC_FORTRAN= f2c pre-build: cp ${WRKSRC}/esp.rof ${WRKSRC}/esp.f @@ -42,7 +41,5 @@ do-install: ${DESTDIR}${PREFIX}/share/mopac7/sample cd ${WRKDIR} && pax -wr mopac7-man ${DESTDIR}${PREFIX}/share/mopac7 -# "g77" can not be used for external function - .include "../../devel/libf2c/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/biology/mopac/files/Makefile b/biology/mopac/files/Makefile index 5833f384647..8fba65c3110 100644 --- a/biology/mopac/files/Makefile +++ b/biology/mopac/files/Makefile @@ -28,7 +28,7 @@ OWNER = root.bin .SUFFIXES: .o .c .c.o: - $(F77) $(FFLAGS) -c $< + $(CC) $(CFLAGS) -c $< $(MOPAC): SIZES $(OBJS) @echo -n "Loading $@ ... " |