blob: a410bc1f01d3d3676bbb2bd210f50419430760b4 (
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
63
64
65
66
67
68
69
70
71
72
73
|
# $NetBSD: Makefile,v 1.22 2002/08/25 19:23:02 jlam Exp $
DISTNAME= f2c-20001205
PKGREVISION= 5
WRKSRC= ${WRKDIR}/f2c
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_LOCAL}
# Note. the distfile is kept locally because it is
# created "on the fly" by the real master site with
# no version number included. This makes it difficult
# at best to use the real master site. The distfile
# was created by:
# ftp ftp://netlib.bell-labs.com/netlib/f2c.tar
# tar -xvf f2c.tar f2c/00lastchange.gz
# gzcat f2c/00lastchange.gz
#
#read what the last change date was.
#
# mv f2c.tar f2c-yyyymmdd.tar
# gzip f2c-yyyymmdd.tar
MAINTAINER= dmcmahill@netbsd.org
HOMEPAGE= http://www.netlib.org/f2c/index.html
COMMENT= Fortran to C compiler including a script to emulate f77
CONFLICTS= egcs-current-19980608
F2CMAJOR= 0
F2CMINOR= 0
MAKE_ENV+= F2CMAJOR=${F2CMAJOR} F2CMINOR=${F2CMINOR}
PLIST_SUBST+= F2CMAJOR=${F2CMAJOR} F2CMINOR=${F2CMINOR}
PLIST_SRC= ${WRKDIR}/PLIST
USE_BUILDLINK_ONLY= # defined
post-extract:
@${RM} ${WRKSRC}/index.html
@${GUNZIP_CMD} ${WRKSRC}/*.gz
@cd ${WRKSRC} ; ${SH} libf77 ; ${SH} libi77
@${RM} ${WRKSRC}/src/index.html
@${MV} ${WRKSRC}/src/.depend ${WRKSRC}/src/depend.orig
@${GUNZIP_CMD} ${WRKSRC}/src/*.gz
post-patch:
@cd ${WRKSRC} && ${CC} -o chktypes chktypes.c
${WRKSRC}/chktypes -v
@${CP} -f ${WRKSRC}/libF77/signal1.h0 ${WRKSRC}/libF77/signal1.h
@${CP} -f ${WRKSRC}/f2c.h ${WRKSRC}/libF77/f2c.h
@${CP} -f ${WRKSRC}/f2c.h ${WRKSRC}/libI77/f2c.h
@${ECHO} "major=${F2CMAJOR}" > ${WRKSRC}/libF77/shlib_version
@${ECHO} "minor=${F2CMINOR}" >> ${WRKSRC}/libF77/shlib_version
@${ECHO} "major=${F2CMAJOR}" > ${WRKSRC}/libI77/shlib_version
@${ECHO} "minor=${F2CMINOR}" >> ${WRKSRC}/libI77/shlib_version
# for OBJECT_FMT
.include "../../mk/bsd.prefs.mk"
MAKE_ENV+= MACHINE_ARCH=${MACHINE_ARCH}
pre-install:
.if (${MACHINE_ARCH} == "mipsel")
${SED} '/lib.*_pic/d' ${PKGDIR}/PLIST > ${PLIST_SRC}
.else
${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
.endif
.if (${OBJECT_FMT} == "ELF")
post-install:
cd ${PREFIX}/lib && ${LN} -fs libf2c.so.${F2CMAJOR}.${F2CMINOR} libf2c.so.${F2CMAJOR}
cd ${PREFIX}/lib && ${LN} -fs libf2c.so.${F2CMAJOR}.${F2CMINOR} libf2c.so
.endif
.include "../../mk/bsd.pkg.mk"
|