devel/cppunit misses a destructor declaration for one of its classes.
[pkgsrcv2.git] / devel / libf2c / Makefile
1 # $NetBSD: Makefile,v 1.3 2009/12/07 13:00:56 tnn Exp $
2
3 DISTNAME=       libf2c-20090201
4 PKGREVISION=    3
5 CATEGORIES=     lang
6 MASTER_SITES=   ${MASTER_SITE_LOCAL}    # see notes below
7
8 MAINTAINER=     pkgsrc-users@NetBSD.org
9 HOMEPAGE=       http://www.netlib.org/f2c/index.html
10 COMMENT=        f2c Fortran support library
11
12 PKG_DESTDIR_SUPPORT=    user-destdir
13
14 CONFLICTS=      egcs-current-19980608 \
15                 f2c<=20090411
16
17 EXTRACT_DIR=    ${WRKDIR}/libf2c
18 WRKSRC=         ${EXTRACT_DIR}
19
20 USE_BSD_MAKEFILE=       yes
21 USE_LIBTOOL=    yes
22 MAKE_FLAGS=     LIBF2CSRCDIR=. MKLTARCHIVE=yes
23
24 INSTALLATION_DIRS=      lib include
25
26 TEST_TARGET=    test
27
28 pre-extract:
29         @cd ${WRKDIR} && ${MKDIR} ${EXTRACT_DIR}
30
31 post-extract:
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}
37
38 do-test:
39         @cd ${WRKDIR} && ${CC} -I libf2c -o chktypes chktypes.c
40         ${WRKDIR}/chktypes -v
41
42 # Notes
43 #
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)
50 #
51 # Date corresponds to the last libf2c change from:
52 #   http://www.netlib.org/f2c/changes
53
54 .include "../../mk/bsd.pkg.mk"