mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-25 21:07:40 +00:00
converted to new port layout,
changed the way it reference the second distfile. fixed install PR: 21389 Submitted by: hdcho@geni.knu.ac.kr Reviewed by: will
This commit is contained in:
parent
d6c0cb4ef6
commit
d24ccc1700
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=39388
61
lang/crossgo32-f77/Makefile
Normal file
61
lang/crossgo32-f77/Makefile
Normal file
@ -0,0 +1,61 @@
|
||||
# Ports collection makefile for: crossgo32-f77
|
||||
# Date created: 19 September 2000
|
||||
# Whom: Huidae Cho <hdcho@geni.knu.ac.kr>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= crossgo32-f77
|
||||
PORTVERSION= 2.95.2
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= ftp://troutmask.apl.washington.edu/pub/ \
|
||||
ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu
|
||||
DISTNAME= f77-freebsd.0.3
|
||||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} g772952b.zip
|
||||
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
||||
|
||||
MAINTAINER= hdcho@geni.knu.ac.kr
|
||||
|
||||
BUILD_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip
|
||||
.if !defined(GNU_CPP)
|
||||
RUN_DEPENDS+= ${LOCALBASE}/bin/fpp:${PORTSDIR}/devel/fpp
|
||||
.endif
|
||||
RUN_DEPENDS+= ${LOCALBASE}/bin/f2c:${PORTSDIR}/lang/f2c \
|
||||
${LOCALBASE}/i386-go32/bin/gcc:${PORTSDIR}/devel/crossgo32-djgpp2
|
||||
|
||||
# Set F77NAME to the name of the Fortran 77 wrapper.
|
||||
F77NAME= ftn77
|
||||
GCCVERSION= 2.952
|
||||
ONLY_FOR_ARCHS= i386
|
||||
|
||||
MAKE_ARGS+= CFLAGS+=" -DPP_COMMAND='\"/usr/bin/cpp\"' \
|
||||
-DF2C_COMMAND='\"${LOCALBASE}/bin/f2c\"'"
|
||||
.if !defined(GNU_CPP)
|
||||
MAKE_ARGS+= CFLAGS+=" -DSUN_FPP"
|
||||
.endif
|
||||
MAKE_ARGS+= -DF2C_INCLUDEDIR='\"-I${LOCALBASE}/i386-go32/include\"' \
|
||||
-DF2C_LIBDIR='\"-I${LOCALBASE}/i386-go32/lib\"' \
|
||||
-DCC_COMMAND='\"${LOCALBASE}/bin/i386-go32-gcc\"'
|
||||
|
||||
ALL_TARGET= depend all
|
||||
|
||||
post-extract:
|
||||
if ! (cd ${WRKDIR} && \
|
||||
unzip -q ${_DISTDIR}g772952b.zip -d ${WRKDIR} \
|
||||
lib/gcc-lib/djgpp/${GCCVERSION}/libg2c.a \
|
||||
lib/gcc-lib/djgpp/${GCCVERSION}/include/g2c.h);\
|
||||
then \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} \
|
||||
${WRKDIR}/lib/gcc-lib/djgpp/${GCCVERSION}/libg2c.a \
|
||||
${PREFIX}/i386-go32/lib/libf2c.a
|
||||
${INSTALL_DATA} \
|
||||
${WRKDIR}/lib/gcc-lib/djgpp/${GCCVERSION}/include/g2c.h \
|
||||
${PREFIX}/i386-go32/include/f2c.h
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/f77 ${PREFIX}/i386-go32/bin/f77
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/f77 ${PREFIX}/bin/i386-go32-f77
|
||||
|
||||
.include <bsd.port.mk>
|
2
lang/crossgo32-f77/distinfo
Normal file
2
lang/crossgo32-f77/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (f77-freebsd.0.3.tar.gz) = c5b7cc72f120c1ae2fe01e6628116f1a
|
||||
MD5 (g772952b.zip) = 66eaf1479778aa0aebaea882a914b286
|
1
lang/crossgo32-f77/pkg-comment
Normal file
1
lang/crossgo32-f77/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
G2c libraries and compatibility for DJGPP V2 crossgo32 crosscompiler
|
13
lang/crossgo32-f77/pkg-descr
Normal file
13
lang/crossgo32-f77/pkg-descr
Normal file
@ -0,0 +1,13 @@
|
||||
This package installs g2c libraries and f77 wrapper for DJGPP V2
|
||||
crossgo32 crosscompiler.
|
||||
|
||||
Simple usage:
|
||||
i386-go32-f77 -o fortran.exe fortran.f
|
||||
|
||||
The above command creates the MS-DOS executable fortran.exe file from
|
||||
fortran.f fortran77 source file.
|
||||
|
||||
Enjoy.
|
||||
|
||||
Huidae Cho
|
||||
hdcho@geni.knu.ac.kr
|
4
lang/crossgo32-f77/pkg-plist
Normal file
4
lang/crossgo32-f77/pkg-plist
Normal file
@ -0,0 +1,4 @@
|
||||
bin/i386-go32-f77
|
||||
i386-go32/bin/f77
|
||||
i386-go32/include/f2c.h
|
||||
i386-go32/lib/libf2c.a
|
Loading…
Reference in New Issue
Block a user