pkgsrc/devel/cfitsio/Makefile
asau 6754aacfb8 Follow f2c/libf2c split: bump revision of all packages
that list Fortran in used languages.
2009-12-03 13:06:51 +00:00

40 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.24 2009/12/03 13:06:52 asau Exp $
DISTNAME= cfitsio3100
PKGNAME= cfitsio-3.100
PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html
COMMENT= FITS (flexible image transport system) file input and output
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV:C/-.*//}
GNU_CONFIGURE= YES
USE_LANGUAGES= c # fortran
USE_LIBTOOL= YES
MAKE_JOBS_SAFE= NO
PKGCONFIG_OVERRIDE+= cfitsio.pc.in
BUILD_TARGET= all testprog
INSTALLATION_DIRS= include lib lib/pkgconfig share/doc/cfitsio
post-build:
cd ${WRKSRC}; \
./testprog > /dev/null; \
${CMP} testprog.fit testprog.std
do-install:
cd ${WRKSRC}; \
${LIBTOOL} --mode=install ${INSTALL_DATA} libcfitsio.la ${DESTDIR}${PREFIX}/lib; \
${INSTALL_DATA} fitsio.h fitsio2.h longnam.h drvrsmem.h ${DESTDIR}${PREFIX}/include; \
${INSTALL_DATA} cfitsio.pc ${DESTDIR}${PREFIX}/lib/pkgconfig; \
${INSTALL_DATA} fitsio.doc ${DESTDIR}${PREFIX}/share/doc/cfitsio
.include "../../mk/bsd.pkg.mk"