1 # Contributor: Jens Staal <staal1978@gmail.com>
5 url="http://pubs.opengroup.org/onlinepubs/007908799/xcu/fort77.html"
6 license=("public domain")
7 pkgdesc="Compile Fortran code with your favourite C compiler (set CC)."
11 source=('ftp://ftp.netbsd.org/pub/pkgsrc/packages/QNX/i386/6.4.0_head_20081005/All/fort77-1.18.tgz')
12 md5sums=('15c529d1b671736191d0a910db535422')
14 # Designed for gcc, but should work for others. Comment on build to expand list.
19 rm -rf $srcdir/build # start fresh
20 mkdir -p $srcdir/build/bin
21 cp -a $srcdir/bin/fort77 $srcdir/build/bin/
22 cp -ar $srcdir/man $srcdir/build/
25 sed -e 's~#!/usr/pkg/bin/perl -w~#!/usr/bin/perl -w~' \
26 -i $srcdir/build/bin/fort77
30 mkdir -p "$pkgdir/usr/bin"
31 mkdir -p "$pkgdir/usr/share/man/man1"
33 install -m755 $srcdir/build/bin/fort77 $pkgdir/usr/bin/fort77
34 install -m644 $srcdir/build/man/man1/fort77.1 $pkgdir/usr/share/man/man1/fort77.1