1 # $NetBSD: Makefile,v 1.3 2009/12/07 13:00:56 tnn Exp $
3 DISTNAME= libf2c-20090201
6 MASTER_SITES= ${MASTER_SITE_LOCAL} # see notes below
8 MAINTAINER= pkgsrc-users@NetBSD.org
9 HOMEPAGE= http://www.netlib.org/f2c/index.html
10 COMMENT= f2c Fortran support library
12 PKG_DESTDIR_SUPPORT= user-destdir
14 CONFLICTS= egcs-current-19980608 \
17 EXTRACT_DIR= ${WRKDIR}/libf2c
18 WRKSRC= ${EXTRACT_DIR}
22 MAKE_FLAGS= LIBF2CSRCDIR=. MKLTARCHIVE=yes
24 INSTALLATION_DIRS= lib include
29 @cd ${WRKDIR} && ${MKDIR} ${EXTRACT_DIR}
32 @${CP} ${FILESDIR:Q}/libf2c.mk ${WRKSRC}/Makefile
33 @${CP} ${FILESDIR:Q}/ltlib.mk ${WRKSRC}/ltlib.mk
34 @${CP} ${FILESDIR:Q}/bsd.init.mk ${WRKSRC}/bsd.init.mk # pkgsrc lossage
35 @${RM} -f ${WRKSRC}/ctype.h # don't mess with system ctype.h
36 @${CP} ${FILESDIR:Q}/chktypes.c ${WRKDIR}
39 @cd ${WRKDIR} && ${CC} -I libf2c -o chktypes chktypes.c
44 # Original distfile doesn't carry version information,
45 # This makes it difficult at best to use the real master site.
46 # We create our local the distfile:
47 # ftp http://www.netlib.org/f2c/libf2c.zip
48 # unzip -d tmp libf2c.zip
49 # (cd tmp; ls | pax -zwf ../libf2c-yyyymmdd.tar.gz)
51 # Date corresponds to the last libf2c change from:
52 # http://www.netlib.org/f2c/changes
54 .include "../../mk/bsd.pkg.mk"