Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # $OpenBSD: Makefile,v 1.11 2016/03/10 21:58:52 naddy Exp $
  2. COMMENT= library for handling FITS data
  3. CATEGORIES= math graphics devel
  4. HOMEPAGE= http://heasarc.gsfc.nasa.gov/fitsio/fitsio.html
  5. DISTNAME= cfitsio3006
  6. WRKDIST= ${WRKDIR}/cfitsio
  7. PKGNAME= cfitsio-3.006
  8. REVISION= 1
  9. MASTER_SITES= ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/ \
  10. https://spacehopper.org/mirrors/
  11. CONFIGURE_STYLE=autoconf no-autoheader
  12. AUTOCONF_VERSION=2.13
  13. # Mostly BSD-style, with two chunks of GPL code
  14. PERMIT_PACKAGE_CDROM= Yes
  15. ALL_TARGET= all fitscopy imcopy listhead shared
  16. SHARED_LIBS= cfitsio 0.0
  17. SHLIB_SUFFIX= .so.${LIBcfitsio_VERSION}
  18. MAKE_FLAGS= SHLIB_SUFFIX=${SHLIB_SUFFIX}
  19. WANTLIB= c m
  20. DOCDIR=${PREFIX}/share/doc/cfitsio
  21. do-install:
  22. ${INSTALL_DATA} ${WRKDIST}/{fitsio.h,fitsio2.h,longnam.h,drvrsmem.h} ${PREFIX}/include
  23. ${INSTALL_DATA} ${WRKBUILD}/libcfitsio.a ${PREFIX}/lib
  24. -${INSTALL_DATA} ${WRKBUILD}/libcfitsio${SHLIB_SUFFIX} ${PREFIX}/lib
  25. ${INSTALL_DATA_DIR} ${DOCDIR}
  26. ${INSTALL_DATA} ${WRKDIST}/License.txt ${DOCDIR}
  27. ${INSTALL_DATA} ${WRKDIST}/README ${DOCDIR}
  28. ${INSTALL_DATA} ${WRKDIST}/*.doc ${DOCDIR}
  29. ${INSTALL_PROGRAM} ${WRKBUILD}/{fitscopy,imcopy,listhead} ${PREFIX}/bin
  30. ${INSTALL_DATA} ${WRKBUILD}/cookbook.c ${DOCDIR}
  31. TEST_DEPENDS=math/cfitsio
  32. do-test:
  33. cd ${WRKBUILD} && ${MAKE} testprog
  34. cd ${WRKBUILD} && ./testprog >testprog.lis
  35. diff ${WRKBUILD}/testprog.lis ${WRKBUILD}/testprog.out
  36. cmp ${WRKBUILD}/testprog.fit ${WRKBUILD}/testprog.std
  37. .include <bsd.port.mk>