blob: 0a2891baf1cfa8799b73253a3ed405f479d4a8bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# 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://geni.cemtlo.com/pub/FreeBSD/ports/distfiles/ \
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.cemtlo.com
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>
|