aboutsummaryrefslogtreecommitdiffstats
path: root/lang/p5-ExtUtils-F77/Makefile
blob: b1300ecd037504265306b63c2df75d2ba66cbbf2 (plain) (blame)
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
# New ports collection makefile for:    p5-ExtUtils-F77
# Date created:             December 7 1999
# Whom:                     jmz
#
# $FreeBSD$
#

PORTNAME=   ExtUtils-F77
PORTVERSION=    1.13
CATEGORIES= lang perl5
MASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= ExtUtils
PKGNAMEPREFIX=  p5-

MAINTAINER= jmz@FreeBSD.org

PERL_CONFIGURE= yes

MANPREFIX=  ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3=       ExtUtils::F77.3

.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 400005
F2CLIB= -lg2c
.else
F2CLIB= -lf2c
.endif

post-patch:
    @cd ${WRKSRC}; ${PERL5} -i.orig -pe \
        's/(.*Freebsd.*lib )(-lf2c)(.*)/$$1 ${F2CLIB} $$3/' F77.pm

.include <bsd.port.post.mk>